Print this page
first pass
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4v/montoya/Makefile
+++ new/usr/src/uts/sun4v/montoya/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # uts/sun4v/montoya/Makefile
23 23 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26 #ident "%Z%%M% %I% %E% SMI"
27 27 #
28 28 # This makefile drives the production of the sun4v montoya platform
29 29 # modules.
30 30 #
31 31 # sun4v montoya implementation architecture dependent
32 32 #
33 33
34 34 #
35 35 # Path to the base of the uts directory tree (usually /usr/src/uts).
36 36 #
37 37 UTSBASE = ../..
38 38
39 39 #
40 40 # Include common rules.
41 41 #
42 42 include $(UTSBASE)/sun4v/montoya/Makefile.montoya
43 43
44 44 def := TARGET= def
45 45 all := TARGET= all
46 46 install := TARGET= install
47 47 install_h := TARGET= install_h
48 48 clean := TARGET= clean
49 49 clobber := TARGET= clobber
50 50 lint := TARGET= lint
51 51 lintlib := TARGET= lintlib
52 52 modlintlib := TARGET= modlintlib
53 53 modlist := TARGET= modlist
54 54 modlist := NO_STATE= -K $$MODSTATE$$$$
55 55 clean.lint := TARGET= clean.lint
56 56 check := TARGET= check
57 57
58 58 #
59 59 # Default build targets.
60 60 #
61 61 .KEEP_STATE:
62 62
63 63 def all clean clobber clean.lint modlist: $(MONTOYA_KMODS)
64 64
65 65 lintlib: unix
66 66
67 67 modlintlib: $(MONTOYA_KMODS)
68 68
69 69 IMPLEMENTED_PLATFORM = SUNW,Netra-CP3060
70 70
71 71 install: $(ROOT_MONTOYA_DIR) $(USR_MONTOYA_DIR) \
72 72 $(USR_MONTOYA_LIB_DIR) \
73 73 $(ROOT_MONTOYA_LIB_DIR) \
74 74 $(USR_MONTOYA_SBIN_DIR) \
75 75 $(USR_MONTOYA_SBIN_LINKS) \
76 76 .WAIT $(MONTOYA_KMODS)
77 77
78 78 $(MONTOYA_KMODS): FRC
79 79 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
80 80
81 81 install_h check: FRC
82 82
83 83 lint: modlintlib .WAIT $(LINT_DEPS)
84 84
↓ open down ↓ |
84 lines elided |
↑ open up ↑ |
85 85 LINT_LIBS = $(LINT_LIB) \
86 86 -L$(MONTOYA_LINT_LIB_DIR) \
87 87 -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
88 88 $(CLOSED_LINT_KMODS:%=-l%) \
89 89 -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
90 90
91 91 lint.platmod: modlintlib
92 92 @-$(ECHO) "\n$(IMPLEMENTED_PLATFORM) platform-dependent module: global crosschecks:"
93 93 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
94 94
95 -EXPORT_SRC:
96 - $(RM) Makefile+
97 - sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
98 - < Makefile > Makefile+
99 - $(MV) Makefile+ Makefile
100 - $(CHMOD) 444 Makefile
101 -# EXPORT DELETE END
102 -
103 95 #
104 96 # Include common targets.
105 97 #
106 98 include $(UTSBASE)/$(PLATFORM)/montoya/Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX