author | alanb |
Tue, 07 Sep 2010 08:36:10 +0100 | |
changeset 6532 | 46e43203603e |
parent 5506 | 202f599c92aa |
child 7668 | d4a77089c587 |
permissions | -rw-r--r-- |
2 | 1 |
# |
5506 | 2 |
# Copyright (c) 2004, 2008, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
# |
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
5506 | 21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
2 | 24 |
# |
25 |
||
26 |
# JDK Demo building jar file. |
|
27 |
||
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
1247
diff
changeset
|
28 |
MODULE = demos |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
1247
diff
changeset
|
29 |
|
2 | 30 |
# Some names are defined with LIBRARY inside the Defs.gmk file |
31 |
LIBRARY=$(DEMONAME) |
|
32 |
OBJDIR=$(TEMPDIR)/$(DEMONAME) |
|
33 |
||
34 |
# Input: |
|
35 |
# DEMONAME - name of the demo |
|
36 |
# DEMO_ROOT - path to root of all demo files |
|
37 |
# DEMO_DESTDIR - path to final demo destination directory |
|
38 |
# |
|
39 |
# Optional Input: |
|
40 |
# DEMO_SRCDIR - path to source if different from DEMO_ROOT |
|
41 |
# DEMO_PSRCDIR - path to additional platform specific source |
|
42 |
# DEMO_PKGDIR - sub directory of sources we want |
|
43 |
# DEMO_TOPFILES - names of top-level files relative to DEMO_ROOT |
|
44 |
# DEMO_MAINCLASS - name of the main class for the jar manifest |
|
45 |
# DEMO_NATIVECLASS - name of the class with native methods |
|
46 |
# DEMO_DESCRIPTOR - name of service file for jar (relative to DEMO_SRCDIR) |
|
47 |
# DEMO_EXTRA_SRCDIR - path to directory that holds extra sources to add |
|
48 |
# DEMO_EXTRA_FILES - extra sources relative to DEMO_EXTRA_SRCDIR |
|
49 |
# DEMO_OBJECTS - extra native object files needed |
|
50 |
# DEMO_MANIFEST_ATTR - extra line to add to the jar manifest file |
|
51 |
||
52 |
# Assume the source directory is the root directory if not set |
|
53 |
ifndef DEMO_SRCDIR |
|
54 |
DEMO_SRCDIR = $(DEMO_ROOT) |
|
55 |
endif |
|
56 |
ifndef DEMO_PKGDIR |
|
57 |
DEMO_PKGDIR = . |
|
58 |
endif |
|
59 |
||
60 |
# Some demos have special needs |
|
61 |
ifneq ($(DEMONAME),agent_util) |
|
62 |
DEMO_NEEDS_AGENT_UTIL = $(findstring agent_util,$(DEMO_OBJECTS)) |
|
63 |
endif |
|
64 |
ifneq ($(DEMONAME),java_crw_demo) |
|
65 |
DEMO_NEEDS_JAVA_CRW_DEMO = $(findstring java_crw_demo,$(DEMO_OBJECTS)) |
|
66 |
endif |
|
67 |
ifeq ($(DEMONAME),hprof) |
|
68 |
DEMO_NEEDS_NPT = true |
|
69 |
endif |
|
70 |
||
71 |
# Place to hold the build area (kind of a temp area) |
|
72 |
DEMO_BUILD_AREA = $(DEMOCLASSDIR)/$(PRODUCT)/$(DEMONAME) |
|
73 |
||
74 |
# Destination "src" directory |
|
75 |
DEMO_BUILD_SRCDIR = $(DEMO_BUILD_AREA)/src |
|
76 |
DEMO_BUILD_SRCZIP = $(DEMO_BUILD_AREA)/src.zip |
|
77 |
DEMO_SOURCE_ZIP = $(DEMO_DESTDIR)/src.zip |
|
78 |
||
79 |
# Place to hold the jar image we are creating |
|
80 |
DEMO_JAR_IMAGE = $(DEMO_BUILD_AREA)/jar_image |
|
81 |
||
82 |
# The jar manifest file we will create and use |
|
83 |
DEMO_MANIFEST = $(DEMO_BUILD_AREA)/manifest.mf |
|
84 |
||
85 |
# The list of source files or options we will supply to javac |
|
86 |
DEMO_JAVAC_INPUT = $(DEMO_BUILD_AREA)/javac_input.txt |
|
87 |
||
88 |
# Any name of javah file |
|
89 |
DEMO_JAVAH_FILE = $(DEMO_NATIVECLASS:%=$(DEMO_BUILD_SRCDIR)/%.h) |
|
90 |
||
91 |
# Get complete list of files for this demo |
|
92 |
ifdef DEMO_PSRCDIR |
|
93 |
DEMO_ALL_FILES2 := $(shell ( $(CD) $(DEMO_PSRCDIR) \ |
|
94 |
&& $(FIND) $(DEMO_PKGDIR) $(SCM_DIRS_prune) -o -type f -print ) \ |
|
95 |
| $(SED) 's@^\./@@' ) |
|
96 |
DEMO_ALL_FILES += $(DEMO_ALL_FILES2) |
|
97 |
endif |
|
98 |
ifdef DEMO_EXTRA_SRCDIR |
|
99 |
DEMO_ALL_FILES += $(DEMO_EXTRA_FILES) |
|
100 |
endif |
|
101 |
DEMO_ALL_FILES1 := $(shell ( $(CD) $(DEMO_SRCDIR) \ |
|
102 |
&& $(FIND) $(DEMO_PKGDIR) $(SCM_DIRS_prune) -o -type f -print ) \ |
|
103 |
| $(SED) 's@^\./@@' ) |
|
104 |
DEMO_ALL_FILES += $(DEMO_ALL_FILES1) |
|
105 |
||
106 |
# Just the java sources |
|
107 |
DEMO_JAVA_SOURCES = $(filter %.java,$(DEMO_ALL_FILES)) |
|
108 |
||
109 |
# Just the C and C++ sources |
|
110 |
DEMO_C_SRC_FILES = $(filter %.c,$(DEMO_ALL_FILES)) |
|
111 |
DEMO_CPP_SRC_FILES = $(filter %.cpp,$(DEMO_ALL_FILES)) |
|
112 |
||
113 |
# All the native source files |
|
114 |
DEMO_ALL_NATIVE_SOURCES = $(DEMO_C_SRC_FILES) |
|
115 |
DEMO_ALL_NATIVE_SOURCES += $(DEMO_CPP_SRC_FILES) |
|
116 |
DEMO_ALL_NATIVE_SOURCES += $(filter %.h,$(DEMO_ALL_FILES)) |
|
117 |
DEMO_ALL_NATIVE_SOURCES += $(filter %.hpp,$(DEMO_ALL_FILES)) |
|
118 |
||
119 |
# If we have java sources, then define the jar file we will create |
|
120 |
ifneq ($(strip $(DEMO_JAVA_SOURCES)),) |
|
121 |
DEMO_JAR = $(DEMO_DESTDIR)/$(DEMONAME).jar |
|
122 |
endif |
|
123 |
||
124 |
# If we have native sources, define the native library we will create |
|
125 |
ifneq ($(strip $(DEMO_ALL_NATIVE_SOURCES)),) |
|
126 |
# Path to native library we will create |
|
127 |
DEMO_LIBRARY = \ |
|
128 |
$(DEMO_DESTDIR)/lib$(ISA_DIR)/$(LIB_PREFIX)$(DEMONAME).$(LIBRARY_SUFFIX) |
|
129 |
# C and C++ compiler flags we need to add to standard flags |
|
130 |
DEMO_CPPFLAGS += -I$(DEMO_BUILD_SRCDIR) |
|
131 |
# If the npt library is used we need to find the npt.h file |
|
132 |
ifneq ($(DEMO_NEEDS_NPT),) |
|
133 |
# The npt library is delivered as part of the JRE |
|
134 |
DEMO_CPPFLAGS += -I$(SHARE_SRC)/npt -I$(PLATFORM_SRC)/npt |
|
135 |
endif |
|
136 |
# Is the shared agent_util code needed |
|
137 |
ifneq ($(DEMO_NEEDS_AGENT_UTIL),) |
|
138 |
DEMO_FULL_SOURCES += $(DEMO_BUILD_SRCDIR)/agent_util.c |
|
139 |
DEMO_FULL_SOURCES += $(DEMO_BUILD_SRCDIR)/agent_util.h |
|
140 |
endif |
|
141 |
# Is the shared java_crw_demo code needed |
|
142 |
ifneq ($(DEMO_NEEDS_JAVA_CRW_DEMO),) |
|
143 |
DEMO_FULL_SOURCES += $(DEMO_BUILD_SRCDIR)/java_crw_demo.c |
|
144 |
DEMO_FULL_SOURCES += $(DEMO_BUILD_SRCDIR)/java_crw_demo.h |
|
145 |
endif |
|
146 |
# All the native object files we need to build the library |
|
147 |
DEMO_OBJECTS += $(DEMO_C_SRC_FILES:%.c=%.$(OBJECT_SUFFIX)) \ |
|
148 |
$(DEMO_CPP_SRC_FILES:%.cpp=%.$(OBJECT_SUFFIX)) |
|
149 |
# Linking is special depending on whether we had C++ code or on windows |
|
150 |
DEMO_NEEDS_CPP = $(strip $(DEMO_CPP_SRC_FILES)) |
|
151 |
CPPFLAGS += $(DEMO_CPPFLAGS) |
|
152 |
ifeq ($(PLATFORM),windows) |
|
153 |
# Note: This is a link with cl.exe, not link.exe, options differ quite |
|
154 |
# bit between them. |
|
155 |
LINK.demo = $(LINK.c) |
|
156 |
LDLIBS.demo = $(EXTRA_LIBS) $(LFLAGS_$(COMPILER_VERSION)) |
|
157 |
else |
|
158 |
ifneq ($(DEMO_NEEDS_CPP),) |
|
159 |
LINK.demo = $(LINK.cpp) |
|
160 |
LDLIBS.demo = $(LIBCXX) |
|
161 |
ifeq ($(PLATFORM),solaris) |
|
162 |
LDLIBS.demo += -lc |
|
163 |
endif |
|
164 |
else |
|
165 |
LINK.demo = $(LINK.c) |
|
166 |
LDLIBS.demo = $(LDLIBS) |
|
167 |
endif |
|
168 |
endif |
|
169 |
endif |
|
170 |
||
171 |
# Files that are considered resources (need to be in the jar file) |
|
172 |
DEMO_RESOURCES += $(filter-out %.java,$(DEMO_ALL_FILES)) |
|
173 |
||
174 |
# All destination files (top level readme files and all sources) |
|
175 |
# Note: We exclude the topfiles from the src tree. |
|
176 |
DEMO_DEST_TOPFILES = $(DEMO_TOPFILES:%=$(DEMO_DESTDIR)/%) |
|
177 |
DEMO_FILTERED_SOURCES = $(filter-out $(DEMO_TOPFILES),$(DEMO_ALL_FILES)) |
|
178 |
DEMO_FULL_SOURCES += $(DEMO_FILTERED_SOURCES:%=$(DEMO_BUILD_SRCDIR)/%) |
|
179 |
||
180 |
# Default rule |
|
181 |
all: build demo_info |
|
182 |
||
183 |
# Used to populate the destination directories |
|
184 |
$(DEMO_DESTDIR)/%: $(DEMO_ROOT)/% |
|
185 |
$(install-file) |
|
186 |
ifneq ($(DEMO_SRCDIR),$(DEMO_ROOT)) |
|
187 |
$(DEMO_DESTDIR)/%: $(DEMO_SRCDIR)/% |
|
188 |
$(install-file) |
|
189 |
endif |
|
190 |
$(DEMO_BUILD_SRCDIR)/%: $(DEMO_SRCDIR)/% |
|
191 |
$(install-file) |
|
192 |
ifdef DEMO_PSRCDIR |
|
193 |
$(DEMO_BUILD_SRCDIR)/%: $(DEMO_PSRCDIR)/% |
|
194 |
$(install-file) |
|
195 |
endif |
|
196 |
ifdef DEMO_EXTRA_SRCDIR |
|
197 |
$(DEMO_BUILD_SRCDIR)/%: $(DEMO_EXTRA_SRCDIR)/% |
|
198 |
$(install-file) |
|
199 |
endif |
|
200 |
ifneq ($(DEMO_NEEDS_AGENT_UTIL),) |
|
201 |
$(DEMO_BUILD_SRCDIR)/%: $(DEMO_SRCDIR)/../agent_util/% |
|
202 |
$(install-file) |
|
203 |
endif |
|
204 |
ifneq ($(DEMO_NEEDS_JAVA_CRW_DEMO),) |
|
205 |
$(DEMO_BUILD_SRCDIR)/%: $(DEMO_SRCDIR)/../java_crw_demo/% |
|
206 |
$(install-file) |
|
207 |
endif |
|
208 |
||
209 |
# Jar manifest file |
|
210 |
$(DEMO_MANIFEST): |
|
211 |
@$(prep-target) |
|
212 |
$(ECHO) "Main-Class: $(DEMO_MAINCLASS)" > $@ |
|
213 |
ifdef DEMO_MANIFEST_ATTR |
|
214 |
$(ECHO) "$(DEMO_MANIFEST_ATTR)" >> $@ |
|
215 |
endif |
|
216 |
||
217 |
# Populating the jar image directory |
|
218 |
$(DEMO_JAR_IMAGE)/%: $(DEMO_SRCDIR)/% |
|
219 |
$(install-file) |
|
220 |
ifdef DEMO_PSRCDIR |
|
221 |
$(DEMO_JAR_IMAGE)/%: $(DEMO_PSRCDIR)/% |
|
222 |
$(install-file) |
|
223 |
endif |
|
224 |
ifdef DEMO_EXTRA_SRCDIR |
|
225 |
$(DEMO_JAR_IMAGE)/%: $(DEMO_EXTRA_SRCDIR)/% |
|
226 |
$(install-file) |
|
227 |
endif |
|
228 |
ifdef DEMO_DESCRIPTOR |
|
229 |
$(DEMO_JAR_IMAGE)/META-INF/services/$(DEMO_DESCRIPTOR): \ |
|
230 |
$(DEMO_SRCDIR)/$(DEMO_DESCRIPTOR) |
|
231 |
$(install-file) |
|
232 |
endif |
|
233 |
||
234 |
# If we are creating a jar file (we have java code) |
|
235 |
ifdef DEMO_JAR |
|
236 |
||
237 |
# Input file for javac |
|
238 |
$(DEMO_JAVAC_INPUT): $(DEMO_JAVA_SOURCES:%=$(DEMO_BUILD_SRCDIR)/%) |
|
239 |
@$(prep-target) |
|
240 |
@for i in $(DEMO_JAVA_SOURCES) ; do \ |
|
241 |
$(ECHO) "$(DEMO_BUILD_SRCDIR)/$$i" >> $@ ; \ |
|
242 |
done |
|
243 |
||
244 |
# Jar file creation |
|
245 |
$(DEMO_JAR): \ |
|
246 |
$(DEMO_JAVAC_INPUT) \ |
|
247 |
$(DEMO_MANIFEST) \ |
|
248 |
$(DEMO_DESCRIPTOR:%=$(DEMO_JAR_IMAGE)/META-INF/services/%) \ |
|
249 |
$(DEMO_RESOURCES:%=$(DEMO_JAR_IMAGE)/%) |
|
250 |
@$(prep-target) |
|
251 |
$(MKDIR) -p $(DEMO_JAR_IMAGE) |
|
252 |
$(JAVAC_CMD) -d $(DEMO_JAR_IMAGE) -sourcepath $(DEMO_BUILD_SRCDIR) \ |
|
253 |
@$(DEMO_JAVAC_INPUT) |
|
254 |
$(BOOT_JAR_CMD) -cfm $@ $(DEMO_MANIFEST) \ |
|
255 |
-C $(DEMO_JAR_IMAGE) . \ |
|
916
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
2
diff
changeset
|
256 |
$(BOOT_JAR_JFLAGS) |
2 | 257 |
@$(java-vm-cleanup) |
258 |
||
259 |
endif |
|
260 |
||
261 |
# Create a src.zip file |
|
262 |
$(DEMO_BUILD_SRCZIP): $(DEMO_FULL_SOURCES) |
|
263 |
@$(prep-target) |
|
264 |
$(CD) $(DEMO_BUILD_AREA)/src && $(ZIPEXE) -q -r ../$(@F) . |
|
265 |
||
266 |
# Install the destination src.zip file and create the src tree |
|
267 |
$(DEMO_SOURCE_ZIP): $(DEMO_BUILD_SRCZIP) |
|
268 |
$(install-file) |
|
269 |
||
270 |
# Native library building |
|
271 |
ifdef DEMO_LIBRARY |
|
272 |
||
273 |
# Full paths to object files |
|
274 |
DEMO_FULL_OBJECTS = $(DEMO_OBJECTS:%=$(OBJDIR)/%) |
|
275 |
VPATH= |
|
276 |
||
277 |
# Native compile rules |
|
278 |
$(OBJDIR)/%.$(OBJECT_SUFFIX): $(DEMO_BUILD_SRCDIR)/%.c |
|
279 |
@$(prep-target) |
|
280 |
$(COMPILE.c) $(CC_OBJECT_OUTPUT_FLAG)$@ $< |
|
281 |
ifneq ($(DEMO_NEEDS_CPP),) |
|
282 |
$(OBJDIR)/%.$(OBJECT_SUFFIX): $(DEMO_BUILD_SRCDIR)/%.cpp |
|
283 |
@$(prep-target) |
|
284 |
$(COMPILE.cpp) $(CC_OBJECT_OUTPUT_FLAG)$@ $< |
|
285 |
endif |
|
286 |
||
287 |
# Actual creation of the native shared library (C++ and C are different) |
|
288 |
$(DEMO_LIBRARY): $(DEMO_FULL_OBJECTS) |
|
289 |
@$(prep-target) |
|
290 |
$(LINK.demo) $(SHARED_LIBRARY_FLAG) $(CC_PROGRAM_OUTPUT_FLAG)$@ \ |
|
291 |
$(DEMO_FULL_OBJECTS) $(LDLIBS.demo) |
|
292 |
||
293 |
# Generation of any javah include file, make sure objects are dependent on it |
|
294 |
ifdef DEMO_NATIVECLASS |
|
295 |
$(DEMO_JAVAH_FILE): $(DEMO_JAR) |
|
296 |
@$(prep-target) |
|
297 |
$(JAVAH_CMD) -d $(DEMO_BUILD_SRCDIR) -classpath $(DEMO_JAR) \ |
|
298 |
$(DEMO_NATIVECLASS) |
|
299 |
@$(java-vm-cleanup) |
|
300 |
$(DEMO_FULL_OBJECTS): $(DEMO_JAVAH_FILE) |
|
301 |
endif |
|
302 |
||
303 |
endif |
|
304 |
||
305 |
# Build involves populating the destination "src" tree, building the jar and |
|
306 |
# native library, and creating a source bundle |
|
307 |
||
308 |
sources: $(DEMO_FULL_SOURCES) |
|
309 |
@$(ECHO) "Created $@" |
|
310 |
||
311 |
objects: |
|
312 |
@$(ECHO) "Created $@" |
|
313 |
||
314 |
# Why the nested make here? It only works this way, don't know why. |
|
315 |
bundles: $(DEMO_BUILD_SRCZIP) |
|
316 |
$(RM) -r $(DEMO_DESTDIR) |
|
317 |
$(MKDIR) -p $(DEMO_DESTDIR) |
|
318 |
$(MAKE) $(DEMO_LIBRARY) $(DEMO_JAR) $(DEMO_SOURCE_ZIP) $(DEMO_DEST_TOPFILES) |
|
319 |
# Applets are special, no jar file, no src.zip, everything expanded. |
|
320 |
ifdef DEMO_IS_APPLET |
|
321 |
@$(ECHO) "Expanding jar file into demos area at $(DEMO_DESTDIR)" |
|
916
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
2
diff
changeset
|
322 |
( $(CD) $(DEMO_DESTDIR) && \ |
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
2
diff
changeset
|
323 |
$(BOOT_JAR_CMD) -xfv $(DEMONAME).jar \ |
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
2
diff
changeset
|
324 |
$(BOOT_JAR_JFLAGS) && \ |
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
2
diff
changeset
|
325 |
$(RM) -r META-INF $(DEMONAME).jar && \ |
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
2
diff
changeset
|
326 |
$(java-vm-cleanup) ) |
2 | 327 |
@( $(CD) $(DEMO_DESTDIR) && $(java-vm-cleanup) ) |
328 |
@$(ECHO) "Expanding source into demos area at $(DEMO_DESTDIR)" |
|
329 |
( $(CD) $(DEMO_DESTDIR) && $(UNZIP) -o src.zip && $(RM) src.zip ) |
|
330 |
endif |
|
331 |
||
332 |
build: sources bundles |
|
333 |
||
334 |
# Printing out a demo information line |
|
335 |
define printDemoSetting |
|
336 |
if [ "$2" != "" ] ; then $(PRINTF) "%-20s %s\n" "$1:" "$2"; fi |
|
337 |
endef |
|
338 |
||
339 |
# Print out the demo information |
|
340 |
demo_info: |
|
341 |
@$(ECHO) "=========================================================" |
|
342 |
@$(call printDemoSetting,DEMONAME,$(DEMONAME)) |
|
343 |
@$(call printDemoSetting,DEMO_ROOT,$(DEMO_ROOT)) |
|
344 |
@$(call printDemoSetting,DEMO_SRCDIR,$(DEMO_SRCDIR)) |
|
345 |
@$(call printDemoSetting,DEMO_DESTDIR,$(DEMO_DESTDIR)) |
|
346 |
@$(call printDemoSetting,DEMO_JAR,$(DEMO_JAR)) |
|
347 |
@$(call printDemoSetting,DEMO_MANIFEST_ATTR,$(DEMO_MANIFEST_ATTR)) |
|
348 |
@$(call printDemoSetting,DEMO_PSRCDIR,$(DEMO_PSRCDIR)) |
|
349 |
@$(call printDemoSetting,DEMO_EXTRA_SRCDIR,$(DEMO_EXTRA_SRCDIR)) |
|
350 |
@$(call printDemoSetting,DEMO_EXTRA_FILES,$(DEMO_EXTRA_FILES)) |
|
351 |
@$(call printDemoSetting,DEMO_TOPFILES,$(DEMO_TOPFILES)) |
|
352 |
@$(call printDemoSetting,DEMO_MAINCLASS,$(DEMO_MAINCLASS)) |
|
353 |
@$(call printDemoSetting,DEMO_DESCRIPTOR,$(DEMO_DESCRIPTOR)) |
|
354 |
@$(call printDemoSetting,DEMO_NATIVECLASS,$(DEMO_NATIVECLASS)) |
|
355 |
@$(call printDemoSetting,DEMO_LIBRARY,$(DEMO_LIBRARY)) |
|
356 |
@$(call printDemoSetting,DEMO_OBJECTS,$(DEMO_OBJECTS)) |
|
357 |
@$(call printDemoSetting,DEMO_SOURCE_ZIP,$(DEMO_SOURCE_ZIP)) |
|
358 |
@$(ECHO) "=========================================================" |
|
359 |
||
360 |
# Clean rule |
|
361 |
clean clobber: |
|
362 |
$(RM) -r $(DEMO_BUILD_AREA) |
|
363 |
$(RM) -r $(DEMO_DESTDIR) |
|
364 |
||
365 |
# This should not be needed, but some versions of GNU amke have a bug that |
|
366 |
# sometimes deleted these files for some strange and unknown reason |
|
367 |
# (GNU make version 3.78.1 has the problem, GNU make version 3.80 doesn't?) |
|
368 |
.PRECIOUS: $(DEMO_FULL_SOURCES) $(DEMO_BUILD_SRCZIP) $(DEMO_SOURCE_ZIP) |
|
369 |
||
370 |
# List phony targets |
|
371 |
.PHONY: all build clean clobber demo_info \ |
|
372 |
sources bundles |
|
373 |