franta-hg@55
|
1 |
#
|
franta-hg@55
|
2 |
# Generated Makefile - do not edit!
|
franta-hg@55
|
3 |
#
|
franta-hg@55
|
4 |
# Edit the Makefile in the project folder instead (../Makefile). Each target
|
franta-hg@55
|
5 |
# has a pre- and a post- target defined where you can add customization code.
|
franta-hg@55
|
6 |
#
|
franta-hg@55
|
7 |
# This makefile implements macros and targets common to all configurations.
|
franta-hg@55
|
8 |
#
|
franta-hg@55
|
9 |
# NOCDDL
|
franta-hg@55
|
10 |
|
franta-hg@55
|
11 |
|
franta-hg@55
|
12 |
# Building and Cleaning subprojects are done by default, but can be controlled with the SUB
|
franta-hg@55
|
13 |
# macro. If SUB=no, subprojects will not be built or cleaned. The following macro
|
franta-hg@55
|
14 |
# statements set BUILD_SUB-CONF and CLEAN_SUB-CONF to .build-reqprojects-conf
|
franta-hg@55
|
15 |
# and .clean-reqprojects-conf unless SUB has the value 'no'
|
franta-hg@55
|
16 |
SUB_no=NO
|
franta-hg@55
|
17 |
SUBPROJECTS=${SUB_${SUB}}
|
franta-hg@55
|
18 |
BUILD_SUBPROJECTS_=.build-subprojects
|
franta-hg@55
|
19 |
BUILD_SUBPROJECTS_NO=
|
franta-hg@55
|
20 |
BUILD_SUBPROJECTS=${BUILD_SUBPROJECTS_${SUBPROJECTS}}
|
franta-hg@55
|
21 |
CLEAN_SUBPROJECTS_=.clean-subprojects
|
franta-hg@55
|
22 |
CLEAN_SUBPROJECTS_NO=
|
franta-hg@55
|
23 |
CLEAN_SUBPROJECTS=${CLEAN_SUBPROJECTS_${SUBPROJECTS}}
|
franta-hg@55
|
24 |
|
franta-hg@55
|
25 |
|
franta-hg@55
|
26 |
# Project Name
|
franta-hg@55
|
27 |
PROJECTNAME=jvm-jni-starter
|
franta-hg@55
|
28 |
|
franta-hg@55
|
29 |
# Active Configuration
|
franta-hg@55
|
30 |
DEFAULTCONF=Debug
|
franta-hg@55
|
31 |
CONF=${DEFAULTCONF}
|
franta-hg@55
|
32 |
|
franta-hg@55
|
33 |
# All Configurations
|
franta-hg@55
|
34 |
ALLCONFS=Debug Release
|
franta-hg@55
|
35 |
|
franta-hg@55
|
36 |
|
franta-hg@55
|
37 |
# build
|
franta-hg@55
|
38 |
.build-impl: .build-pre .validate-impl .depcheck-impl
|
franta-hg@55
|
39 |
@#echo "=> Running $@... Configuration=$(CONF)"
|
franta-hg@55
|
40 |
"${MAKE}" -f nbproject/Makefile-${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .build-conf
|
franta-hg@55
|
41 |
|
franta-hg@55
|
42 |
|
franta-hg@55
|
43 |
# clean
|
franta-hg@55
|
44 |
.clean-impl: .clean-pre .validate-impl .depcheck-impl
|
franta-hg@55
|
45 |
@#echo "=> Running $@... Configuration=$(CONF)"
|
franta-hg@55
|
46 |
"${MAKE}" -f nbproject/Makefile-${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .clean-conf
|
franta-hg@55
|
47 |
|
franta-hg@55
|
48 |
|
franta-hg@55
|
49 |
# clobber
|
franta-hg@55
|
50 |
.clobber-impl: .clobber-pre .depcheck-impl
|
franta-hg@55
|
51 |
@#echo "=> Running $@..."
|
franta-hg@55
|
52 |
for CONF in ${ALLCONFS}; \
|
franta-hg@55
|
53 |
do \
|
franta-hg@55
|
54 |
"${MAKE}" -f nbproject/Makefile-$${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .clean-conf; \
|
franta-hg@55
|
55 |
done
|
franta-hg@55
|
56 |
|
franta-hg@55
|
57 |
# all
|
franta-hg@55
|
58 |
.all-impl: .all-pre .depcheck-impl
|
franta-hg@55
|
59 |
@#echo "=> Running $@..."
|
franta-hg@55
|
60 |
for CONF in ${ALLCONFS}; \
|
franta-hg@55
|
61 |
do \
|
franta-hg@55
|
62 |
"${MAKE}" -f nbproject/Makefile-$${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .build-conf; \
|
franta-hg@55
|
63 |
done
|
franta-hg@55
|
64 |
|
franta-hg@55
|
65 |
# build tests
|
franta-hg@55
|
66 |
.build-tests-impl: .build-impl .build-tests-pre
|
franta-hg@55
|
67 |
@#echo "=> Running $@... Configuration=$(CONF)"
|
franta-hg@55
|
68 |
"${MAKE}" -f nbproject/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .build-tests-conf
|
franta-hg@55
|
69 |
|
franta-hg@55
|
70 |
# run tests
|
franta-hg@55
|
71 |
.test-impl: .build-tests-impl .test-pre
|
franta-hg@55
|
72 |
@#echo "=> Running $@... Configuration=$(CONF)"
|
franta-hg@55
|
73 |
"${MAKE}" -f nbproject/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .test-conf
|
franta-hg@55
|
74 |
|
franta-hg@55
|
75 |
# dependency checking support
|
franta-hg@55
|
76 |
.depcheck-impl:
|
franta-hg@55
|
77 |
@echo "# This code depends on make tool being used" >.dep.inc
|
franta-hg@55
|
78 |
@if [ -n "${MAKE_VERSION}" ]; then \
|
franta-hg@55
|
79 |
echo "DEPFILES=\$$(wildcard \$$(addsuffix .d, \$${OBJECTFILES} \$${TESTOBJECTFILES}))" >>.dep.inc; \
|
franta-hg@55
|
80 |
echo "ifneq (\$${DEPFILES},)" >>.dep.inc; \
|
franta-hg@55
|
81 |
echo "include \$${DEPFILES}" >>.dep.inc; \
|
franta-hg@55
|
82 |
echo "endif" >>.dep.inc; \
|
franta-hg@55
|
83 |
else \
|
franta-hg@55
|
84 |
echo ".KEEP_STATE:" >>.dep.inc; \
|
franta-hg@55
|
85 |
echo ".KEEP_STATE_FILE:.make.state.\$${CONF}" >>.dep.inc; \
|
franta-hg@55
|
86 |
fi
|
franta-hg@55
|
87 |
|
franta-hg@55
|
88 |
# configuration validation
|
franta-hg@55
|
89 |
.validate-impl:
|
franta-hg@55
|
90 |
@if [ ! -f nbproject/Makefile-${CONF}.mk ]; \
|
franta-hg@55
|
91 |
then \
|
franta-hg@55
|
92 |
echo ""; \
|
franta-hg@55
|
93 |
echo "Error: can not find the makefile for configuration '${CONF}' in project ${PROJECTNAME}"; \
|
franta-hg@55
|
94 |
echo "See 'make help' for details."; \
|
franta-hg@55
|
95 |
echo "Current directory: " `pwd`; \
|
franta-hg@55
|
96 |
echo ""; \
|
franta-hg@55
|
97 |
fi
|
franta-hg@55
|
98 |
@if [ ! -f nbproject/Makefile-${CONF}.mk ]; \
|
franta-hg@55
|
99 |
then \
|
franta-hg@55
|
100 |
exit 1; \
|
franta-hg@55
|
101 |
fi
|
franta-hg@55
|
102 |
|
franta-hg@55
|
103 |
|
franta-hg@55
|
104 |
# help
|
franta-hg@55
|
105 |
.help-impl: .help-pre
|
franta-hg@55
|
106 |
@echo "This makefile supports the following configurations:"
|
franta-hg@55
|
107 |
@echo " ${ALLCONFS}"
|
franta-hg@55
|
108 |
@echo ""
|
franta-hg@55
|
109 |
@echo "and the following targets:"
|
franta-hg@55
|
110 |
@echo " build (default target)"
|
franta-hg@55
|
111 |
@echo " clean"
|
franta-hg@55
|
112 |
@echo " clobber"
|
franta-hg@55
|
113 |
@echo " all"
|
franta-hg@55
|
114 |
@echo " help"
|
franta-hg@55
|
115 |
@echo ""
|
franta-hg@55
|
116 |
@echo "Makefile Usage:"
|
franta-hg@55
|
117 |
@echo " make [CONF=<CONFIGURATION>] [SUB=no] build"
|
franta-hg@55
|
118 |
@echo " make [CONF=<CONFIGURATION>] [SUB=no] clean"
|
franta-hg@55
|
119 |
@echo " make [SUB=no] clobber"
|
franta-hg@55
|
120 |
@echo " make [SUB=no] all"
|
franta-hg@55
|
121 |
@echo " make help"
|
franta-hg@55
|
122 |
@echo ""
|
franta-hg@55
|
123 |
@echo "Target 'build' will build a specific configuration and, unless 'SUB=no',"
|
franta-hg@55
|
124 |
@echo " also build subprojects."
|
franta-hg@55
|
125 |
@echo "Target 'clean' will clean a specific configuration and, unless 'SUB=no',"
|
franta-hg@55
|
126 |
@echo " also clean subprojects."
|
franta-hg@55
|
127 |
@echo "Target 'clobber' will remove all built files from all configurations and,"
|
franta-hg@55
|
128 |
@echo " unless 'SUB=no', also from subprojects."
|
franta-hg@55
|
129 |
@echo "Target 'all' will will build all configurations and, unless 'SUB=no',"
|
franta-hg@55
|
130 |
@echo " also build subprojects."
|
franta-hg@55
|
131 |
@echo "Target 'help' prints this message."
|
franta-hg@55
|
132 |
@echo ""
|
franta-hg@55
|
133 |
|