4265 remove INTERNAL_RELEASE_BUILD
[illumos-gate.git] / usr / src / uts / sun4u / javelin / Makefile
blobf5fe9042a70f41c84e2ff836b1367c870fbf091e
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 # uts/sun4u/javelin/Makefile
24 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
27 #ident "%Z%%M% %I% %E% SMI"
29 # This makefile drives the production of all Javelin system
30 # dependent modules for the sun4u architecture.
34 # Path to the base of the uts directory tree (usually /usr/src/uts).
36 UTSBASE = ../..
39 # Include common rules.
41 include $(UTSBASE)/sun4u/javelin/Makefile.javelin
43 def := TARGET= def
44 all := TARGET= all
45 install := TARGET= install
46 install_h := TARGET= install_h
47 clean := TARGET= clean
48 clobber := TARGET= clobber
49 lint := TARGET= lint
50 lintlib := TARGET= lintlib
51 modlintlib := TARGET= modlintlib
52 modlist := TARGET= modlist
53 modlist := NO_STATE= -K $$MODSTATE$$$$
54 clean.lint := TARGET= clean.lint
55 check := TARGET= check
58 # Default build targets.
60 .KEEP_STATE:
62 def all clean.lint clean clobber modlist: $(JAVELIN_KMODS) \
63 $(CLOSED_JAVELIN_KMODS)
65 modlintlib: $(JAVELIN_KMODS) $(CLOSED_JAVELIN_KMODS)
67 install: $(ROOT_JAVELIN_DIR) $(USR_JAVELIN_DIR) \
68 $(USR_JAVELIN_INC_DIR) \
69 $(USR_JAVELIN_SBIN_DIR) \
70 $(USR_JAVELIN_LIB_DIR) \
71 .WAIT $(JAVELIN_KMODS) $(CLOSED_JAVELIN_KMODS)
73 install_h check:
75 lint: modlintlib
78 # The 'lint.platmod' target lints the javelin platform module against the sun4u
79 # kernel. This ends up doing all the kernel cross-checks, so it takes a couple
80 # of minutes. Due to the low ROI, it's not run by default, but it's a good
81 # idea to run this if you change os/javelin.c.
83 LINT_LIBS = $(LINT_LIB) \
84 -L$(JAVELIN_LINT_LIB_DIR) \
85 -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
86 $(CLOSED_LINT_KMODS:%=-l%) \
87 -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
89 lint.platmod: modlintlib
90 @-$(ECHO) "\nJavelin Platform-dependent module: global crosschecks:"
91 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
93 $(JAVELIN_KMODS): FRC
94 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
96 $(CLOSED_JAVELIN_KMODS): FRC
97 cd $(CLOSED)/uts/sun4u/javelin/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
100 # Include common targets.
102 include $(UTSBASE)/sun4u/javelin/Makefile.targ