Makefile
1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!smake
#ident "$Revision: 1.1.1.1 $
DEPTH?=..
include $(ROOT)/usr/include/make/kcommondefs
KPATH=$(TOP)/master.d
.PATH:$(KPATH)
# N.B. install rules below depend on $(MASTERS) == "" for non-u64 systems
MASTERS=
#if $(CPUBOARD) == "IP22"
MASTERS=u64
#endif
SYSTEMGEN=system.u64
DOTSMFILE=u64.sm
SYSTEMS=system.ship system.dl system.kdebug
TARGETS=$(SYSTEMS)
# Options passed to all versions
# SYSCONFIGDEFS can come from klocaldefs
# The -ICPUINSTDIR is for developers, the -I. is for production kernel
PRODOPTS= $(CDEFS) $(SYSCONFIGDEFS) -DDCCOPTS="$(CFLAGS)" -DDLDOPTS="$(LDFLAGS)" -DCPUINSTDIRINC="-I$(ROOT)/$(CPUINSTDIR) -I." -DGFXBOARD_"$(GFXBOARD)"
# Options on system.gen
SHIPOPTS= -Dship $(PRODOPTS)
MROPTS= -Dnoprobe -Dmr $(PRODOPTS)
KDEBUGOPTS= -Dkdebug -Dnoprobe $(PRODOPTS)
DLOPTS= -Ddiskless -Dnoprobe $(PRODOPTS)
INTDIRT=$(SYSTEMS)
INSTFILE= $(INSTALL) -m 444 -idb "config(update)"
INSTMAST= $(INSTFILE) -F $(MASTERDIR)
SHIP_INSTMAST= $(INSTFILE) -F $(SHIP_MASTERDIR)
#
# Rules
#
KCOMMONPREF=m
include $(ROOT)/usr/include/make/kcommonrules
$(KCOMMONPREF)default:$(TARGETS)
if test -n "$(MASTERS)"; then \
cd $(KPATH);\
RAWIDB= $(INSTALL) -F $(MASTERDIR) -m 444 $(MASTERS) ;\
fi
$(KCOMMONPREF)install: ksysinstall
if test -n "$(MASTERS)"; then \
cd $(KPATH) ;\
$(SHIP_INSTMAST) $(MASTERS) ;\
fi
mrmtargets!
rm -f $(TARGETS)
if test -d $(ROOT)/$(CPUINSTDIR); then \
cd $(ROOT)/$(CPUINSTDIR); \
rm -fr */u64.sm; \
fi
mclean!kclean
mclobber:kclobber
mlint!mlint