8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / uts / sun4u / starfire / Makefile
blob7a08af878a122a07e14f4669149f57a8d704eb14
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License, Version 1.0 only
6 # (the "License"). You may not use this file except in compliance
7 # with the License.
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
20 # CDDL HEADER END
23 #ident "%Z%%M% %I% %E% SMI"
25 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
26 # Use is subject to license terms.
28 # This makefile drives the production of the sun4u starfire platform
29 # module.
31 # sun4u starfire implementation architecture dependent
35 # Path to the base of the uts directory tree (usually /usr/src/uts).
37 UTSBASE = ../..
39 include $(UTSBASE)/sun4u/starfire/Makefile.starfire
42 # The following are SPARC specific (rather than sun4u) specific modules
43 # which are required for the sun4u kernel to completely lint. They are
44 # not involved in the build in any other way. In order to minimize
45 # build time, it is assumed that they are up to date. But since sun4u
46 # is really a separate architecture we cannot use the v7 sparc modules.
48 SPARC_LIB_DIR = $(UTSBASE)/sparc/lint-libs/$(OBJS_DIR)
50 SPARC_LINTS =
52 SUN4U_LIB_DIR = $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)
57 LINT_LIBS = $(LINT_LIB) \
58 $(SPARC_LINTS:%=$(SPARC_LIB_DIR)/llib-l%.ln) \
59 $(LINT_KMODS:%=$(SUN4U_LIB_DIR)/llib-l%.ln) \
60 $(CLOSED_LINT_KMODS:%=$(SUN4U_LIB_DIR)/llib-l%.ln)
62 def := TARGET= def
63 all := TARGET= all
64 install := TARGET= install
65 install_h := TARGET= install_h
66 clean := TARGET= clean
67 clobber := TARGET= clobber
68 lint := TARGET= lint
69 lintlib := TARGET= lintlib
70 modlintlib := TARGET= modlintlib
71 modlist := TARGET= modlist
72 modlist := NO_STATE= -K $$MODSTATE$$$$
73 clean.lint := TARGET= clean.lint
74 check := TARGET= check
76 IMPLEMENTED_PLATFORM = SUNW,Ultra-Enterprise-10000
79 # Default build targets.
81 .KEEP_STATE:
83 .PARALLEL: $(STARFIRE_KMODS)
85 .NO_PARALLEL: $(STARFIRE_CPU_KMODS)
87 def all clean clobber clean.lint: genassym unix .WAIT \
88 $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
90 modlist: unix $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
92 install: $(ROOT_STARFIRE_DIR) $(USR_STARFIRE_DIR) \
93 $(USR_STARFIRE_INC_DIR) \
94 $(USR_STARFIRE_SBIN_DIR) \
95 $(USR_STARFIRE_LIB_DIR) \
96 genassym unix .WAIT $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
98 lintlib: unix
100 modlintlib: $(STARFIRE_KMODS) $(STARFIRE_CPU_KMODS)
102 genassym unix $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS): FRC
103 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
105 install_h check: FRC
106 @cd sys; pwd; $(MAKE) $(TARGET)
109 # Full kernel lint target.
111 LINT_TARGET = globallint
113 globallint:
114 @-$(ECHO) "\nStarfire KERNEL: global crosschecks:"
115 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
117 lint: lintlib .WAIT modlintlib .WAIT $(LINT_DEPS)
120 # Include common targets.
122 include $(UTSBASE)/sun4u/starfire/Makefile.targ