8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / uts / sun4u / lw8 / Makefile
blob8b54a2bfd49d853b1ea202910cc5239a4cd7e0d1
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
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # This makefile drives the production of the sun4u lw8 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/lw8/Makefile.lw8
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: $(LW8_KMODS)
63 lintlib: unix
65 modlintlib: $(LW8_KMODS)
67 IMPLEMENTED_PLATFORM = SUNW,Netra-T12
68 LINKS2DESTDIR = ../../SUNW,Sun-Fire/kernel
69 LINKS3DESTDIR = ../../../../SUNW,Sun-Fire/kernel/drv/sparcv9
70 LINKS4DESTDIR = ../../../../SUNW,Sun-Fire/kernel/misc/sparcv9
71 LW8_LINKS_2 = SUNW,Netra-T12/kernel/cpu
72 LW8_LINKS_2 += SUNW,Netra-T12/kernel/sparcv9
73 LW8_LINKS_3 = SUNW,Netra-T12/kernel/drv/sparcv9/sgcn
74 LW8_LINKS_3 += SUNW,Netra-T12/kernel/drv/sparcv9/sgsbbc
75 LW8_LINKS_3 += SUNW,Netra-T12/kernel/drv/sparcv9/ssm
76 LW8_LINKS_4 = SUNW,Netra-T12/kernel/misc/sparcv9/sbdp
77 LW8_PLAT_LINKS_2 = $(LW8_LINKS_2:%=$(ROOT_PLAT_DIR)/%)
78 LW8_PLAT_LINKS_3 = $(LW8_LINKS_3:%=$(ROOT_PLAT_DIR)/%)
79 LW8_PLAT_LINKS_4 = $(LW8_LINKS_4:%=$(ROOT_PLAT_DIR)/%)
81 install: $(ROOT_LW8_DIR) $(USR_LW8_DIR) \
82 $(USR_LW8_INC_DIR) \
83 $(USR_LW8_SBIN_DIR) \
84 $(USR_LW8_LIB_DIR) \
85 .WAIT $(LW8_KMODS) \
86 $(LW8_PLAT_LINKS_2) \
87 $(LW8_PLAT_LINKS_3) \
88 $(LW8_PLAT_LINKS_4) \
89 $(LW8_CRYPTO_LINKS)
91 $(LW8_KMODS): FRC
92 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
94 install_h check: FRC
95 @cd sys; pwd; $(MAKE) $(TARGET)
98 lint: modlintlib
100 LINT_LIBS = $(LINT_LIB) \
101 -L$(LW8_LINT_LIB_DIR) \
102 -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
103 $(CLOSED_LINT_KMODS:%=-l%) \
104 -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
106 $(LW8_PLAT_LINKS_2): $(ROOT_LW8_MOD_DIR)
107 $(RM) $@; $(SYMLINK) $(LINKS2DESTDIR)/$(@F) $@
109 $(LW8_PLAT_LINKS_3): $(ROOT_LW8_DRV_DIR_64)
110 $(RM) $@; $(SYMLINK) $(LINKS3DESTDIR)/$(@F) $@
112 $(LW8_PLAT_LINKS_4): $(ROOT_LW8_DRV_DIR_64)
113 $(RM) $@; $(SYMLINK) $(LINKS4DESTDIR)/$(@F) $@
115 $(LW8_CRYPTO_LINKS): $(ROOT_LW8_CRYPTO_DIR_64)
116 -$(RM) $(ROOT_LW8_CRYPTO_DIR_64)/$@;
117 $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_LW8_CRYPTO_DIR_64)/$@
121 # Include common targets.
123 include $(UTSBASE)/sun4u/lw8/Makefile.targ