Print this page
| Split |
Close |
| Expand all |
| Collapse all |
--- /workspace/neilga/ohacds/webrev/usr/src/pkgdefs/Makefile-
+++ 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/CDDL.txt
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/CDDL.txt.
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 #
23 23 #ident "%Z%%M% %I% %E% SMI"
24 24 #
25 25 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
26 26 # Use is subject to license terms.
27 27 #
28 28 # pkgdefs/Makefile
29 29
30 30 include Makefile.com
31 31
32 32 sparc_NONSHIP_SUBDIRS =
33 33 i386_NONSHIP_SUBDIRS =
34 34
35 35 I18N_SUBDIRS = \
36 36 SUNW0scds
37 37
38 38 NONSHIP_SUBDIRS = \
39 39 $($(MACH)_NONSHIP_SUBDIRS)
40 40
41 41 PRODUCT_SUBDIRS = \
42 42 SUNWscdns \
43 43 SUNWscnfs \
44 44 SUNWschtt \
45 45 SUNWscapc \
46 46 SUNWscsap \
47 47 SUNWsclc \
48 48 SUNWscwls \
49 49 SUNWscs1as \
50 50 SUNWscs1mq \
51 51 SUNWscsapdb \
52 52 SUNWschadb \
53 53 SUNWscsapenq \
54 54 SUNWscsaprepl \
55 55 SUNWscsapwebas \
56 56 SUNWscsapscs \
57 57 SUNWscsge \
58 58 SUNWscPostgreSQL \
|
↓ open down ↓ |
58 lines elided |
↑ open up ↑ |
59 59 SUNWsc9ias \
60 60 SUNWscdhc \
61 61 SUNWscids \
62 62 SUNWscmqs \
63 63 SUNWscmys \
64 64 SUNWsctomcat \
65 65 SUNWscsps \
66 66 SUNWscmqi \
67 67 SUNWscsmb \
68 68 SUNWscsaa \
69 - SUNWscsag
69 + SUNWscsag \
70 + SUNWscxvm
70 71
71 72 $(CLOSED_BUILD)PRODUCT_SUBDIRS += \
72 73 SUNWscor \
73 74 SUNWscsyb
74 75
75 76 s9_PRODUCT_SUBDIRS += \
76 77 SUNWscpax
77 78
78 79 $(S9_BUILD)PRODUCT_SUBDIRS += $(s9_PRODUCT_SUBDIRS)
79 80
80 81 post_s9_PRODUCT_SUBDIRS += \
81 82 SUNWsckrb5 \
82 83 SUNWsczone
83 84
84 85 $(POST_S9_BUILD)PRODUCT_SUBDIRS += $(post_s9_PRODUCT_SUBDIRS)
85 86
86 87 sparc_PRODUCT_SUBDIRS += \
87 88 SUNWscebs \
88 89 SUNWscsbl
89 90
90 91 PRODUCT_SUBDIRS += $($(MACH)_PRODUCT_SUBDIRS)
91 92
92 93 SUBDIRS= \
93 94 $(PRODUCT_SUBDIRS) \
94 95 $(NONSHIP_SUBDIRS) \
95 96 $(I18N_SUBDIRS)
96 97
97 98 # Targetdirs needs to process all package subdirs, as we build all the code,
98 99 # even if the agent isn't supported/packaged on a particular platform
99 100 $(POST_S9_BUILD)ALLPKG_SUBDIRS += $(s9_PRODUCT_SUBDIRS)
100 101 $(S9_BUILD)ALLPKG_SUBDIRS += $(post_s9_PRODUCT_SUBDIRS)
101 102 i386_ALLPKG_SUBDIRS += $(sparc_PRODUCT_SUBDIRS)
102 103 sparc_ALLPKG_SUBDIRS += $(i386_PRODUCT_SUBDIRS)
103 104 ALLPKG_SUBDIRS += $(SUBDIRS) $($(MACH)_ALLPKG_SUBDIRS)
104 105
105 106 # Support for S11 is unknown at this time, so include all agents
106 107 $(S11_BUILD)SUBDIRS += $(s9_PRODUCT_SUBDIRS) $($(MACH)_ALLPKG_SUBDIRS)
107 108
108 109 sparc_XMODS=
109 110
110 111 # L10N support dropped from 3.2 due to resource constraints
111 112 # L10N support is included in open source builds
112 113 $(CLOSED_BUILD)$(S11_BUILD)L10N_XMODS= l10n
113 114
114 115 $(CLOSED_BUILD)DVDIMAGES_XMODS= \
115 116 dvdimages
116 117
117 118 XMODS= $($(MACH)_XMODS) $(L10N_XMODS) $(DVDIMAGES_XMODS)
118 119
119 120 DOT_FILES= dot.clustertoc dot.order
120 121
121 122 all := TARGET= all
122 123 install := TARGET= install
123 124 clean := TARGET= clean
124 125 clobber := TARGET= clobber
125 126 _msg := TARGET= _msg
126 127 patch_build := TARGET= patch_build
127 128
128 129 .KEEP_STATE:
129 130
130 131 .PARALLEL: $(SUBDIRS) $(XMODS)
131 132
132 133 install: awk_pkginfo $(SUBDIRS) $(XMODS)
133 134
134 135 _msg: ./parse_i18n_proto $(I18N_SUBDIRS)
135 136
136 137 all: awk_pkginfo $(SUBDIRS) $(XMODS) $(DOT_FILES)
137 138
138 139 clean clobber: $(SUBDIRS) $(XMODS)
139 140 $(RM) awk_pkginfo Targetdirs $(DOT_FILES)
140 141
141 142 patch_build: awk_pkginfo $(PRODUCT_SUBDIRS) patch_manpages
142 143
143 144 $(SUBDIRS): FRC
144 145 @cd $@; pwd; $(MAKE) $(TARGET)
145 146
146 147 $(XMODS): FRC
147 148 @if [ -f $@/Makefile ]; then \
148 149 cd $@; pwd; $(MAKE) $(TARGET); \
149 150 else \
150 151 true; \
151 152 fi
152 153
153 154 DOT_CLUSTERTOC_SRC = dot.clustertoc.sun_cluster_agents.$(NATIVE_MACH)
154 155 $(S9_BUILD)DOT_CLUSTERTOC_SRC = dot.clustertoc.sun_cluster_agents.$(NATIVE_MACH).Sol_9
155 156
156 157 DOT_ORDER_SRC= dot.order.sun_cluster_agents.$(NATIVE_MACH)
157 158 $(S9_BUILD)DOT_ORDER_SRC= dot.order.sun_cluster_agents.$(NATIVE_MACH).Sol_9
158 159
159 160 dot.clustertoc: $(DOT_CLUSTERTOC_SRC)
160 161 $(RM) $@
161 162 cp $(DOT_CLUSTERTOC_SRC) $@
162 163
163 164 dot.order: $(DOT_ORDER_SRC)
164 165 $(RM) $@
165 166 cp $(DOT_ORDER_SRC) $@
166 167
167 168 $(NOT_RELEASE_BUILD)AWK_PKGINFO_DFLAG= -d
168 169
169 170 awk_pkginfo: ./bld_awk_pkginfo
170 171 ./bld_awk_pkginfo -m $(MACH) -p "$(RELEASE)/$(VERSION)" ${AWK_PKGINFO_DFLAG} -o $@
171 172
172 173 # Copy the package contents to the proto area
173 174 patch_manpages: $(DOCS_DELIVERY)
174 175 for pkg in SUNWscdsman; \
175 176 do \
176 177 basedir=`$(EGREP) '^BASEDIR=' $(DOCS_DELIVERY)/$$pkg/pkginfo | $(SED) -e 's:.*=::'`; \
177 178 [ -d $(VROOT)$$basedir ] || /bin/mkdir -p $(VROOT)$$basedir; \
178 179 (cd $(DOCS_DELIVERY)/$$pkg/reloc && /bin/tar cf - .) | (cd $(VROOT)$$basedir && /bin/tar xf -); \
179 180 done
180 181
181 182 ALL_PROTOTYPES = $(ALLPKG_SUBDIRS:%=%/pkginfo.tmpl %/prototype_com) \
182 183 $(ALLPKG_SUBDIRS:%=%/pkginfo.tmpl %/prototype_$(MACH))
183 184
184 185 makefiles: Targetdirs parse_i18n_proto
185 186
186 187 # generate Targetdirs and use that to create all the proto directories
187 188 Targetdirs: ./pkgdefs_to_targetdirs $(ALL_PROTOTYPES)
188 189 ./pkgdefs_to_targetdirs $(ALL_PROTOTYPES) > Targetdirs
189 190
190 191 FRC:
|
↓ open down ↓ |
111 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX