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
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]
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
31 # sun4u starfire implementation architecture dependent
35 # Path to the base of the uts directory tree (usually /usr/src/uts).
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
)
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
)
64 install := TARGET
= install
65 install_h
:= TARGET
= install_h
66 clean := TARGET
= clean
67 clobber := TARGET
= clobber
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.
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
)
100 modlintlib
: $(STARFIRE_KMODS
) $(STARFIRE_CPU_KMODS
)
102 genassym unix
$(STARFIRE_CPU_KMODS
) $(STARFIRE_KMODS
): FRC
103 @cd
$@
; pwd
; $(MAKE
) $(NO_STATE
) $(TARGET
)
106 @cd sys
; pwd
; $(MAKE
) $(TARGET
)
109 # Full kernel lint target.
111 LINT_TARGET
= 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