23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 #
26
27 include ../Makefile.master
28
29 # Bootstrap problem --
30 # 'cw' must be built before anything else can be built.
31
32 BOOT_SUBDIRS= \
33 cw
34
35 COMMON_SUBDIRS= \
36 codereview \
37 codesign \
38 cscope-fast \
39 ctf \
40 depcheck \
41 env \
42 findunref \
43 ndrgen \
44 onbld \
45 pmodes \
46 gk \
47 install.bin \
48 lintdump \
49 protocmp \
50 protolist \
51 scripts
52
53 #
54 # special versions of commands for use only in build
55 #
56 UNSHIPPED_SUBDIRS = \
57 elfsign \
58 mandoc
59
60 sparc_SUBDIRS= \
61 chk4ubin \
62 stabs \
63 tokenize
64
65 i386_SUBDIRS= \
66 aw \
67 elfextract \
68 mbh_patch
74 findunref \
75 lintdump \
76 ndrgen \
77 protocmp \
78 protolist
79
80 SUBDIRS= \
81 $($(MACH)_SUBDIRS) \
82 $(COMMON_SUBDIRS) \
83 $(UNSHIPPED_SUBDIRS)
84
85 include Makefile.tools
86
87 ROOTDIRS= \
88 $(ROOTOPT) \
89 $(ROOTONBLD) \
90 $(ROOTONBLD)/bin \
91 $(ROOTONBLD)/bin/$(MACH) \
92 $(ROOTONBLD)/lib \
93 $(ROOTONBLD)/lib/$(MACH) \
94 $(ROOTONBLD)/lib/perl \
95 $(ROOTONBLD)/lib/python2.6 \
96 $(ROOTONBLD)/lib/python2.6/onbld \
97 $(ROOTONBLD)/lib/python2.6/onbld/Checks \
98 $(ROOTONBLD)/lib/python2.6/onbld/hgext \
99 $(ROOTONBLD)/lib/python2.6/onbld/Scm \
100 $(ROOTONBLD)/env \
101 $(ROOTONBLD)/etc \
102 $(ROOTONBLD)/etc/exception_lists \
103 $(ROOTONBLD)/gk \
104 $(ROOTONBLD)/man \
105 $(ROOTONBLD)/man/man1
106
107 all := TARGET= install
108 install := TARGET= install
109 clean := TARGET= clean
110 clobber := TARGET= clobber
111 lint := TARGET= lint
112 _msg := TARGET= _msg
113
114 .KEEP_STATE:
115
116 #
117 # Only create directories in the tools proto area when doing an actual
118 # build, not a clean or clobber.
119 #
120 DOROOTDIRS= $(ROOTDIRS)
121 clobber:= DOROOTDIRS=
122 clean:= DOROOTDIRS=
128 clobber: $(SUBDIRS)
129 $(RM) -rf $(TOOLS_PROTO)
130
131 lint: $(LINTSUBDIRS)
132
133 _msg: $(MSGSUBDIRS)
134
135 .PARALLEL: $(SUBDIRS) $(CLOSED_SUBDIRS)
136
137 $(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS)
138
139 $(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $(ROOTONBLDLIBPY) FRC
140 @cd $@; pwd; $(MAKE) $(TARGET)
141
142 $(ROOTDIRS):
143 $(INS.dir)
144
145 $(ROOTONBLDLIBPY): $(ROOTDIRS)
146 $(RM) -r $@; $(SYMLINK) python2.6 $@
147
148 FRC:
|
23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 #
26
27 include ../Makefile.master
28
29 # Bootstrap problem --
30 # 'cw' must be built before anything else can be built.
31
32 BOOT_SUBDIRS= \
33 cw
34
35 COMMON_SUBDIRS= \
36 codereview \
37 codesign \
38 cscope-fast \
39 ctf \
40 depcheck \
41 env \
42 findunref \
43 gk \
44 install.bin \
45 lintdump \
46 make \
47 ndrgen \
48 onbld \
49 pmodes \
50 protocmp \
51 protolist \
52 scripts
53
54 #
55 # special versions of commands for use only in build
56 #
57 UNSHIPPED_SUBDIRS = \
58 elfsign \
59 mandoc
60
61 sparc_SUBDIRS= \
62 chk4ubin \
63 stabs \
64 tokenize
65
66 i386_SUBDIRS= \
67 aw \
68 elfextract \
69 mbh_patch
75 findunref \
76 lintdump \
77 ndrgen \
78 protocmp \
79 protolist
80
81 SUBDIRS= \
82 $($(MACH)_SUBDIRS) \
83 $(COMMON_SUBDIRS) \
84 $(UNSHIPPED_SUBDIRS)
85
86 include Makefile.tools
87
88 ROOTDIRS= \
89 $(ROOTOPT) \
90 $(ROOTONBLD) \
91 $(ROOTONBLD)/bin \
92 $(ROOTONBLD)/bin/$(MACH) \
93 $(ROOTONBLD)/lib \
94 $(ROOTONBLD)/lib/$(MACH) \
95 $(ROOTONBLD)/lib/$(MACH)/64 \
96 $(ROOTONBLD)/lib/perl \
97 $(ROOTONBLD)/lib/python2.6 \
98 $(ROOTONBLD)/lib/python2.6/onbld \
99 $(ROOTONBLD)/lib/python2.6/onbld/Checks \
100 $(ROOTONBLD)/lib/python2.6/onbld/hgext \
101 $(ROOTONBLD)/lib/python2.6/onbld/Scm \
102 $(ROOTONBLD)/env \
103 $(ROOTONBLD)/etc \
104 $(ROOTONBLD)/etc/exception_lists \
105 $(ROOTONBLD)/share \
106 $(ROOTONBLD)/gk \
107 $(ROOTONBLD)/man \
108 $(ROOTONBLD)/man/man1
109
110 all := TARGET= install
111 install := TARGET= install
112 clean := TARGET= clean
113 clobber := TARGET= clobber
114 lint := TARGET= lint
115 _msg := TARGET= _msg
116
117 .KEEP_STATE:
118
119 #
120 # Only create directories in the tools proto area when doing an actual
121 # build, not a clean or clobber.
122 #
123 DOROOTDIRS= $(ROOTDIRS)
124 clobber:= DOROOTDIRS=
125 clean:= DOROOTDIRS=
131 clobber: $(SUBDIRS)
132 $(RM) -rf $(TOOLS_PROTO)
133
134 lint: $(LINTSUBDIRS)
135
136 _msg: $(MSGSUBDIRS)
137
138 .PARALLEL: $(SUBDIRS) $(CLOSED_SUBDIRS)
139
140 $(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS)
141
142 $(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $(ROOTONBLDLIBPY) FRC
143 @cd $@; pwd; $(MAKE) $(TARGET)
144
145 $(ROOTDIRS):
146 $(INS.dir)
147
148 $(ROOTONBLDLIBPY): $(ROOTDIRS)
149 $(RM) -r $@; $(SYMLINK) python2.6 $@
150
151 make: ctf
152
153 FRC:
|