8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / uts / sun4u / mpxu / Makefile
blobe7170e8e2d22debe920274576ec019c513cc09d5
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 (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
26 # This makefile drives the production of the sun4u mpxu platform
27 # module.
29 # sun4u implementation architecture dependent
33 # Path to the base of the uts directory tree (usually /usr/src/uts).
35 UTSBASE = ../..
38 # Include common rules.
40 include $(UTSBASE)/sun4u/mpxu/Makefile.mpxu
42 def := TARGET= def
43 all := TARGET= all
44 install := TARGET= install
45 install_h := TARGET= install_h
46 clean := TARGET= clean
47 clobber := TARGET= clobber
48 lint := TARGET= lint
49 lintlib := TARGET= lintlib
50 modlintlib := TARGET= modlintlib
51 modlist := TARGET= modlist
52 modlist := NO_STATE= -K $$MODSTATE$$$$
53 clean.lint := TARGET= clean.lint
54 check := TARGET= check
57 # Default build targets.
59 .KEEP_STATE:
61 def all clean clean.lint clobber modlist: $(MPXU_KMODS) $(CLOSED_MPXU_KMODS)
63 lintlib: unix
65 modlintlib: $(MPXU_KMODS) $(CLOSED_MPXU_KMODS)
67 IMPLEMENTED_PLATFORM = SUNW,Sun-Fire-V240
69 LINKED_PLATFORMS = SUNW,Sun-Fire-V210
70 LINKED_PLATFORMS += SUNW,Netra-240
71 LINKED_PLATFORMS += SUNW,Netra-210
74 install: $(ROOT_MPXU_DIR) $(USR_MPXU_DIR) \
75 $(USR_MPXU_INC_DIR) \
76 $(USR_MPXU_SBIN_PRTDIAG) \
77 $(USR_MPXU_SBIN_FRUADM) \
78 $(USR_MPXU_LIB_DIR) \
79 $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) \
80 $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%) \
81 $(MPXU_CRYPTO_LINKS) \
82 $(CLOSED_MPXU_KMODS) \
83 .WAIT $(MPXU_KMODS)
85 $(MPXU_KMODS): FRC
86 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
88 $(CLOSED_MPXU_KMODS): FRC
89 cd $(CLOSED)/uts/sun4u/mpxu/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
91 $(MPXU_CRYPTO_LINKS): $(ROOT_MPXU_CRYPTO_DIR_64)
92 -$(RM) $(ROOT_MPXU_CRYPTO_DIR_64)/$@;
93 $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_MPXU_CRYPTO_DIR_64)/$@
95 install_h check: FRC
96 @cd sys; pwd; $(MAKE) $(TARGET)
99 lint: modlintlib
101 LINT_LIBS = $(LINT_LIB) \
102 -L$(MPXU_LINT_LIB_DIR) \
103 -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
104 $(CLOSED_LINT_KMODS:%=-l%) \
105 -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
107 lint.platmod: modlintlib
108 @-$(ECHO) "\nMPXU Platform-dependent module: global crosschecks:"
109 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
113 # Include common targets.
115 include $(UTSBASE)/sun4u/mpxu/Makefile.targ