48 HDRSUBDIRS= uts head lib cmd
49
50 # UCB headers are bug-for-bug compatible and not checkable against the header
51 # standards.
52 #
53 CHKHDRSUBDIRS= head uts lib
54
55 #
56 # Headers that can be built in parallel
57 #
58 PARALLEL_HEADERS = sysheaders userheaders libheaders cmdheaders
59
60 #
61 # Directories that can be built in parallel
62 #
63 PARALLEL_DIRS = uts lib man
64
65 # The check target also causes smf(5) service manifests to be validated.
66 CHKMFSTSUBDIRS= cmd
67
68 MSGSUBDIRS= cmd ucbcmd lib
69 DOMAINS= \
70 SUNW_OST_ADMIN \
71 SUNW_OST_NETRPC \
72 SUNW_OST_OSCMD \
73 SUNW_OST_OSLIB \
74 SUNW_OST_UCBCMD \
75 SUNW_OST_ZONEINFO
76
77 MSGDDIRS= $(DOMAINS:%=$(MSGROOT)/%)
78 MSGDIRS= $(MSGROOT) $(MSGDDIRS) $(MSGROOT)/LC_TIME
79
80 all := TARGET= all
81 install := TARGET= install
82 install1 := TARGET= install
83 install2 := TARGET= install
84 install_h := TARGET= install_h
85 clean := TARGET= clean
86 clobber := TARGET= clobber
87 check := TARGET= check
188 $(MAKE) -f Makefile.lint
189
190 _msgdirs: $(MSGDIRS)
191
192 $(ROOTDIRS) $(MSGDIRS):
193 $(INS.dir)
194
195 userheaders: FRC
196 @cd head; pwd; $(MAKE) install_h
197
198 libheaders: bldtools
199 @cd lib; pwd; $(MAKE) install_h
200
201 sysheaders: FRC
202 @cd uts; pwd; $(MAKE) install_h
203
204 cmdheaders: FRC
205 @cd cmd/fm; pwd; $(MAKE) install_h
206 @cd cmd/mdb; pwd; $(MAKE) install_h
207
208 check: $(CHKHDRSUBDIRS) $(CHKMFSTSUBDIRS)
209
210 #
211 # Cross-reference customization: skip all of the subdirectories that
212 # don't contain actual source code.
213 #
214 XRPRUNE = pkg prototypes
215 XRINCDIRS = uts/common head ucbhead
216
217 cscope.out tags: FRC
218 $(XREF) -f -x $@
219
220 FRC:
221
222 #
223 # Targets for reporting compiler versions; nightly uses these.
224 #
225
226 cc-version:
227 @if $($(MACH)_CC) -_versions >/dev/null 2>/dev/null; then \
228 $(ECHO) 32-bit compiler; \
|
48 HDRSUBDIRS= uts head lib cmd
49
50 # UCB headers are bug-for-bug compatible and not checkable against the header
51 # standards.
52 #
53 CHKHDRSUBDIRS= head uts lib
54
55 #
56 # Headers that can be built in parallel
57 #
58 PARALLEL_HEADERS = sysheaders userheaders libheaders cmdheaders
59
60 #
61 # Directories that can be built in parallel
62 #
63 PARALLEL_DIRS = uts lib man
64
65 # The check target also causes smf(5) service manifests to be validated.
66 CHKMFSTSUBDIRS= cmd
67
68 # And man page formats
69 CHKMANSUBDIRS = man
70
71 MSGSUBDIRS= cmd ucbcmd lib
72 DOMAINS= \
73 SUNW_OST_ADMIN \
74 SUNW_OST_NETRPC \
75 SUNW_OST_OSCMD \
76 SUNW_OST_OSLIB \
77 SUNW_OST_UCBCMD \
78 SUNW_OST_ZONEINFO
79
80 MSGDDIRS= $(DOMAINS:%=$(MSGROOT)/%)
81 MSGDIRS= $(MSGROOT) $(MSGDDIRS) $(MSGROOT)/LC_TIME
82
83 all := TARGET= all
84 install := TARGET= install
85 install1 := TARGET= install
86 install2 := TARGET= install
87 install_h := TARGET= install_h
88 clean := TARGET= clean
89 clobber := TARGET= clobber
90 check := TARGET= check
191 $(MAKE) -f Makefile.lint
192
193 _msgdirs: $(MSGDIRS)
194
195 $(ROOTDIRS) $(MSGDIRS):
196 $(INS.dir)
197
198 userheaders: FRC
199 @cd head; pwd; $(MAKE) install_h
200
201 libheaders: bldtools
202 @cd lib; pwd; $(MAKE) install_h
203
204 sysheaders: FRC
205 @cd uts; pwd; $(MAKE) install_h
206
207 cmdheaders: FRC
208 @cd cmd/fm; pwd; $(MAKE) install_h
209 @cd cmd/mdb; pwd; $(MAKE) install_h
210
211 check: $(CHKHDRSUBDIRS) $(CHKMFSTSUBDIRS) $(CHKMANSUBDIRS)
212
213 #
214 # Cross-reference customization: skip all of the subdirectories that
215 # don't contain actual source code.
216 #
217 XRPRUNE = pkg prototypes
218 XRINCDIRS = uts/common head ucbhead
219
220 cscope.out tags: FRC
221 $(XREF) -f -x $@
222
223 FRC:
224
225 #
226 # Targets for reporting compiler versions; nightly uses these.
227 #
228
229 cc-version:
230 @if $($(MACH)_CC) -_versions >/dev/null 2>/dev/null; then \
231 $(ECHO) 32-bit compiler; \
|