8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / uts / sun4u / montecarlo / Makefile
blobee28e01cbcf814ef9203aeb93e77caa14a4bc790
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # This makefile drives the production of all MonteCarlo system
26 # dependent modules for the sun4u architecture.
30 # Path to the base of the uts directory tree (usually /usr/src/uts).
32 UTSBASE = ../..
35 # Include common rules.
37 include $(UTSBASE)/sun4u/montecarlo/Makefile.montecarlo
39 def := TARGET= def
40 all := TARGET= all
41 install := TARGET= install
42 install_h := TARGET= install_h
43 clean := TARGET= clean
44 clobber := TARGET= clobber
45 lint := TARGET= lint
46 #lintlib := TARGET= lintlib
47 modlintlib := TARGET= modlintlib
48 modlist := TARGET= modlist
49 modlist := NO_STATE= -K $$MODSTATE$$$$
50 clean.lint := TARGET= clean.lint
51 check := TARGET= check
54 # Default build targets.
56 .KEEP_STATE:
58 def all clean.lint clean clobber modlist: $(MONTECARLO_KMODS)
60 modlintlib: $(MONTECARLO_KMODS)
62 install: $(ROOT_MONTECARLO_DIR) $(USR_MONTECARLO_DIR) \
63 $(USR_MONTECARLO_INC_DIR) \
64 $(USR_MONTECARLO_SBIN_DIR) \
65 $(USR_MONTECARLO_LIB_DIR) \
66 .WAIT $(MONTECARLO_KMODS) \
67 se.conf ttymux.conf
69 se.conf: $(ROOT_MONTECARLO_DRV_DIR)
70 -@$(RM) $(ROOT_MONTECARLO_DRV_DIR)/$@
71 $(CP) $(UTSBASE)/sun4u/montecarlo/io/$@ \
72 $(ROOT_MONTECARLO_DRV_DIR)/$@
73 $(CHMOD) $(CFILEMODE) $(ROOT_MONTECARLO_DRV_DIR)/$@
75 ttymux.conf: $(ROOT_MONTECARLO_DRV_DIR)
76 -@$(RM) $(ROOT_MONTECARLO_DRV_DIR)/$@
77 $(CP) $(UTSBASE)/sun4u/montecarlo/io/$@ \
78 $(ROOT_MONTECARLO_DRV_DIR)/$@
79 $(CHMOD) $(CFILEMODE) $(ROOT_MONTECARLO_DRV_DIR)/$@
81 install_h check: FRC
82 @cd sys; pwd; $(MAKE) $(TARGET)
84 lint: modlintlib
87 # The 'lint.platmod' target lints the montecarlo platform module against
88 # the sun4u kernel. This ends up doing all the kernel cross-checks,
89 # so it takes a couple of minutes.
90 # Due to the low ROI, it's not run by default, but it's a good
91 # idea to run this if you change os/montecarlo.c.
93 LINT_LIBS = $(LINT_LIB) \
94 -L$(MONTECARLO_LINT_LIB_DIR) \
95 -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
96 $(CLOSED_LINT_KMODS:%=-l%) \
97 -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
99 lint.platmod: modlintlib
100 @-$(ECHO) "\nMonteCarlo Platform-dependent module: global crosschecks:"
101 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
103 $(MONTECARLO_KMODS): FRC
104 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
107 # Include common targets.
109 include $(UTSBASE)/sun4u/montecarlo/Makefile.targ