1 # ============================================================================== |
1 ############################################################################# |
2 # Generated by qmake (2.01a) (Qt 4.6.1) on: Mon May 17 12:46:26 2010 |
2 # Makefile for building: tests |
3 # This file is generated by qmake and should not be modified by the |
3 # Generated by qmake (2.01a) (Qt 4.6.2) on: Wed May 19 14:07:21 2010 |
4 # user. |
4 # Project: tests.pro |
5 # Name : Makefile |
5 # Template: app |
6 # Description : Wrapper Makefile for calling Symbian build tools |
6 # Command: /usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile tests.pro |
7 # |
7 ############################################################################# |
8 # ============================================================================== |
8 |
|
9 ####### Compiler, tools and options |
|
10 |
|
11 CC = gcc |
|
12 CXX = g++ |
|
13 DEFINES = |
|
14 CFLAGS = -pipe $(DEFINES) |
|
15 CXXFLAGS = -pipe $(DEFINES) |
|
16 INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. |
|
17 LINK = g++ |
|
18 LFLAGS = |
|
19 LIBS = $(SUBLIBS) |
|
20 AR = ar cqs |
|
21 RANLIB = |
|
22 QMAKE = /usr/bin/qmake-qt4 |
|
23 TAR = tar -cf |
|
24 COMPRESS = gzip -9f |
|
25 COPY = cp -f |
|
26 SED = sed |
|
27 COPY_FILE = $(COPY) |
|
28 COPY_DIR = $(COPY) -r |
|
29 STRIP = strip |
|
30 INSTALL_FILE = install -m 644 -p |
|
31 INSTALL_DIR = $(COPY_DIR) |
|
32 INSTALL_PROGRAM = install -m 755 -p |
|
33 DEL_FILE = rm -f |
|
34 SYMLINK = ln -f -s |
|
35 DEL_DIR = rmdir |
|
36 MOVE = mv -f |
|
37 CHK_DIR_EXISTS= test -d |
|
38 MKDIR = mkdir -p |
|
39 |
|
40 ####### Output directory |
|
41 |
|
42 OBJECTS_DIR = ./ |
|
43 |
|
44 ####### Files |
|
45 |
|
46 SOURCES = |
|
47 OBJECTS = |
|
48 DIST = /usr/share/qt4/mkspecs/common/g++.conf \ |
|
49 /usr/share/qt4/mkspecs/common/unix.conf \ |
|
50 /usr/share/qt4/mkspecs/common/linux.conf \ |
|
51 /usr/share/qt4/mkspecs/qconfig.pri \ |
|
52 /usr/share/qt4/mkspecs/features/qt_functions.prf \ |
|
53 /usr/share/qt4/mkspecs/features/qt_config.prf \ |
|
54 /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ |
|
55 /usr/share/qt4/mkspecs/features/default_pre.prf \ |
|
56 tests.pro |
|
57 QMAKE_TARGET = tests |
|
58 DESTDIR = |
|
59 TARGET = tests |
|
60 |
|
61 first: all |
|
62 ####### Implicit rules |
|
63 |
|
64 .SUFFIXES: .o .c .cpp .cc .cxx .C |
|
65 |
|
66 .cpp.o: |
|
67 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
68 |
|
69 .cc.o: |
|
70 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
71 |
|
72 .cxx.o: |
|
73 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
74 |
|
75 .C.o: |
|
76 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
77 |
|
78 .c.o: |
|
79 $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" |
|
80 |
|
81 ####### Build rules |
|
82 |
|
83 all: Makefile $(TARGET) |
|
84 |
|
85 $(TARGET): $(OBJECTS) |
|
86 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) |
|
87 |
|
88 Makefile: tests.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \ |
|
89 /usr/share/qt4/mkspecs/common/unix.conf \ |
|
90 /usr/share/qt4/mkspecs/common/linux.conf \ |
|
91 /usr/share/qt4/mkspecs/qconfig.pri \ |
|
92 /usr/share/qt4/mkspecs/features/qt_functions.prf \ |
|
93 /usr/share/qt4/mkspecs/features/qt_config.prf \ |
|
94 /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ |
|
95 /usr/share/qt4/mkspecs/features/default_pre.prf |
|
96 $(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile tests.pro |
|
97 /usr/share/qt4/mkspecs/common/g++.conf: |
|
98 /usr/share/qt4/mkspecs/common/unix.conf: |
|
99 /usr/share/qt4/mkspecs/common/linux.conf: |
|
100 /usr/share/qt4/mkspecs/qconfig.pri: |
|
101 /usr/share/qt4/mkspecs/features/qt_functions.prf: |
|
102 /usr/share/qt4/mkspecs/features/qt_config.prf: |
|
103 /usr/share/qt4/mkspecs/features/exclusive_builds.prf: |
|
104 /usr/share/qt4/mkspecs/features/default_pre.prf: |
|
105 qmake: FORCE |
|
106 @$(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile tests.pro |
|
107 |
|
108 dist: |
|
109 @$(CHK_DIR_EXISTS) .tmp/tests1.0.0 || $(MKDIR) .tmp/tests1.0.0 |
|
110 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/tests1.0.0/ && (cd `dirname .tmp/tests1.0.0` && $(TAR) tests1.0.0.tar tests1.0.0 && $(COMPRESS) tests1.0.0.tar) && $(MOVE) `dirname .tmp/tests1.0.0`/tests1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/tests1.0.0 |
9 |
111 |
10 |
112 |
11 MAKEFILE = Makefile |
113 clean:compiler_clean |
12 QMAKE = d:\Qt\4.6.1\bin\qmake |
114 -$(DEL_FILE) *~ core *.core |
13 DEL_FILE = del |
|
14 DEL_DIR = rmdir |
|
15 MOVE = move |
|
16 XCOPY = xcopy /d /f /h /r /y /i |
|
17 ABLD = ABLD.BAT |
|
18 DEBUG_PLATFORMS = winscw gcce armv5 armv6 |
|
19 RELEASE_PLATFORMS = gcce armv5 armv6 |
|
20 MAKE = make |
|
21 |
115 |
22 ifeq (WINS,$(findstring WINS, $(PLATFORM))) |
|
23 ZDIR=$(EPOCROOT)epoc32\release\$(PLATFORM)\$(CFG)\Z |
|
24 else |
|
25 ZDIR=$(EPOCROOT)epoc32\data\z |
|
26 endif |
|
27 |
116 |
28 DEFINES = -DSYMBIAN -DUNICODE -DQT_KEYPAD_NAVIGATION -DQT_SOFTKEYS_ENABLED -DQT_USE_MATH_H_FLOATS |
117 ####### Sub-libraries |
29 INCPATH = -I"D:/Qt/4.6.1/mkspecs/common/symbian/stl-off" -I"D:/Qt/4.6.1/mkspecs/common/symbian/stl-off/tmp" -I"D:/Qt/4.6.1/mkspecs/common/symbian" -I"D:/Qt/4.6.1/mkspecs/common/symbian/tmp" -I"D:/S60/devices/S60_5th_Edition_SDK_v0.9/epoc32/include" -I"D:/CarbideWorkspace/TestQJson/qjson/src" -I"D:/CarbideWorkspace/TestQJson/qjson/src/tmp" -I"D:/S60/devices/S60_5th_Edition_SDK_v0.9/epoc32/include/stdapis" -I"D:/S60/devices/S60_5th_Edition_SDK_v0.9/epoc32/include/stdapis/sys" -I"D:/Qt/4.6.1/include" -I"D:/Qt/4.6.1/include/tmp" |
|
30 first: default |
|
31 default: debug-winscw |
|
32 all: debug release |
|
33 |
118 |
34 qmake: |
119 distclean: clean |
35 $(QMAKE) -spec symbian-abld -o "bld.inf" "D:/CarbideWorkspace/TestQJson/qjson/tests/tests.pro" |
120 -$(DEL_FILE) $(TARGET) |
|
121 -$(DEL_FILE) Makefile |
36 |
122 |
37 bld.inf: |
|
38 $(QMAKE) |
|
39 |
|
40 $(ABLD): bld.inf |
|
41 bldmake bldfiles |
|
42 |
|
43 debug: $(ABLD) |
|
44 $(ABLD) build winscw udeb |
|
45 $(ABLD) build gcce udeb |
|
46 $(ABLD) build armv5 udeb |
|
47 $(ABLD) build armv6 udeb |
|
48 |
|
49 release: $(ABLD) |
|
50 $(ABLD) build gcce urel |
|
51 $(ABLD) build armv5 urel |
|
52 $(ABLD) build armv6 urel |
|
53 |
|
54 debug-winscw: $(ABLD) |
|
55 $(ABLD) build winscw udeb |
|
56 debug-gcce: $(ABLD) |
|
57 $(ABLD) build gcce udeb |
|
58 debug-armv5: $(ABLD) |
|
59 $(ABLD) build armv5 udeb |
|
60 debug-armv6: $(ABLD) |
|
61 $(ABLD) build armv6 udeb |
|
62 release-gcce: $(ABLD) |
|
63 $(ABLD) build gcce urel |
|
64 release-armv5: $(ABLD) |
|
65 $(ABLD) build armv5 urel |
|
66 release-armv6: $(ABLD) |
|
67 $(ABLD) build armv6 urel |
|
68 |
|
69 export: $(ABLD) |
|
70 $(ABLD) export |
|
71 |
|
72 cleanexport: $(ABLD) |
|
73 $(ABLD) cleanexport |
|
74 |
123 |
75 compiler_clean: |
124 compiler_clean: |
76 |
125 |
77 create_temps: |
126 ####### Compile |
78 -@ if NOT EXIST "D:\Qt\4.6.1\mkspecs\common\symbian\stl-off\tmp" mkdir "D:\Qt\4.6.1\mkspecs\common\symbian\stl-off\tmp" |
|
79 -@ if NOT EXIST "D:\Qt\4.6.1\mkspecs\common\symbian\tmp" mkdir "D:\Qt\4.6.1\mkspecs\common\symbian\tmp" |
|
80 -@ if NOT EXIST "D:\CarbideWorkspace\TestQJson\qjson\src\tmp" mkdir "D:\CarbideWorkspace\TestQJson\qjson\src\tmp" |
|
81 -@ if NOT EXIST "D:\Qt\4.6.1\include\tmp" mkdir "D:\Qt\4.6.1\include\tmp" |
|
82 |
127 |
83 extension_clean: compiler_clean |
128 ####### Install |
84 -@ if EXIST "D:\Qt\4.6.1\mkspecs\common\symbian\stl-off\tmp" rmdir /S /Q "D:\Qt\4.6.1\mkspecs\common\symbian\stl-off\tmp" |
|
85 -@ if EXIST "D:\Qt\4.6.1\mkspecs\common\symbian\tmp" rmdir /S /Q "D:\Qt\4.6.1\mkspecs\common\symbian\tmp" |
|
86 -@ if EXIST "D:\CarbideWorkspace\TestQJson\qjson\src\tmp" rmdir /S /Q "D:\CarbideWorkspace\TestQJson\qjson\src\tmp" |
|
87 -@ if EXIST "D:\Qt\4.6.1\include\tmp" rmdir /S /Q "D:\Qt\4.6.1\include\tmp" |
|
88 |
129 |
89 pre_targetdeps: \ |
130 install: FORCE |
90 generated_sources \ |
|
91 all_source_deps |
|
92 |
131 |
93 generated_sources: |
132 uninstall: FORCE |
94 |
133 |
95 all_source_deps: |
134 FORCE: |
96 |
135 |
97 finalize: |
|
98 |
|
99 winscw_deployment: |
|
100 |
|
101 winscw_deployment_clean: |
|
102 |
|
103 sis: restore_build |
|
104 $(if $(wildcard tests_template.pkg),$(if $(wildcard .make.cache),$(MAKE) -s -f $(MAKEFILE) ok_sis,$(if $(QT_SIS_TARGET),$(MAKE) -s -f $(MAKEFILE) ok_sis,$(MAKE) -s -f $(MAKEFILE) fail_sis_nocache)),$(MAKE) -s -f $(MAKEFILE) fail_sis_nopkg) |
|
105 |
|
106 ok_sis: |
|
107 createpackage.bat $(QT_SIS_OPTIONS) tests_template.pkg $(QT_SIS_TARGET) $(QT_SIS_CERTIFICATE) $(QT_SIS_KEY) $(QT_SIS_PASSPHRASE) |
|
108 |
|
109 fail_sis_nopkg: |
|
110 $(error PKG file does not exist, 'SIS' target is only supported for executables or projects with DEPLOYMENT statement) |
|
111 |
|
112 fail_sis_nocache: |
|
113 $(error Project has to be built or QT_SIS_TARGET environment variable has to be set before calling 'SIS' target) |
|
114 |
|
115 restore_build: |
|
116 -include .make.cache |
|
117 |
|
118 store_build: |
|
119 @echo # ============================================================================== > .make.cache |
|
120 @echo # This file is generated by make and should not be modified by the user >> .make.cache |
|
121 @echo # Name : .make.cache >> .make.cache |
|
122 @echo # Part of : tests >> .make.cache |
|
123 @echo # Description : This file is used to cache last build target for >> .make.cache |
|
124 @echo # make sis target. >> .make.cache |
|
125 @echo # Version : >> .make.cache |
|
126 @echo # >> .make.cache |
|
127 @echo # ============================================================================== >> .make.cache |
|
128 @echo. >> .make.cache |
|
129 @echo QT_SIS_TARGET ?= $(QT_SIS_TARGET) >> .make.cache |
|
130 |
|
131 dodistclean: |
|
132 -@ if EXIST "d:\CarbideWorkspace\TestQJson\qjson\tests\tests_template.pkg" $(DEL_FILE) "d:\CarbideWorkspace\TestQJson\qjson\tests\tests_template.pkg" |
|
133 -@ if EXIST "d:\CarbideWorkspace\TestQJson\qjson\tests\Makefile" $(DEL_FILE) "d:\CarbideWorkspace\TestQJson\qjson\tests\Makefile" |
|
134 -@ if EXIST "d:\CarbideWorkspace\TestQJson\qjson\tests\Makefile_0xEdfa80af.mk" $(DEL_FILE) "d:\CarbideWorkspace\TestQJson\qjson\tests\Makefile_0xEdfa80af.mk" |
|
135 -@ if EXIST "d:\CarbideWorkspace\TestQJson\qjson\tests\tests_0xEdfa80af.mmp" $(DEL_FILE) "d:\CarbideWorkspace\TestQJson\qjson\tests\tests_0xEdfa80af.mmp" |
|
136 -@ if EXIST "d:\CarbideWorkspace\TestQJson\qjson\tests\tests_reg.rss" $(DEL_FILE) "d:\CarbideWorkspace\TestQJson\qjson\tests\tests_reg.rss" |
|
137 -@ if EXIST "d:\CarbideWorkspace\TestQJson\qjson\tests\tests.rss" $(DEL_FILE) "d:\CarbideWorkspace\TestQJson\qjson\tests\tests.rss" |
|
138 -@ if EXIST "d:\CarbideWorkspace\TestQJson\qjson\tests\tests.loc" $(DEL_FILE) "d:\CarbideWorkspace\TestQJson\qjson\tests\tests.loc" |
|
139 -@ if EXIST "d:\CarbideWorkspace\TestQJson\qjson\tests\.make.cache" $(DEL_FILE) "d:\CarbideWorkspace\TestQJson\qjson\tests\.make.cache" |
|
140 -@ if EXIST "d:\CarbideWorkspace\TestQJson\qjson\tests\bld.inf" $(DEL_FILE) "d:\CarbideWorkspace\TestQJson\qjson\tests\bld.inf" |
|
141 |
|
142 distclean: clean dodistclean |
|
143 |
|
144 clean: $(ABLD) |
|
145 -$(ABLD) reallyclean |
|
146 -bldmake clean |
|
147 |
|
148 clean-debug: $(ABLD) |
|
149 $(ABLD) reallyclean winscw udeb |
|
150 $(ABLD) reallyclean gcce udeb |
|
151 $(ABLD) reallyclean armv5 udeb |
|
152 $(ABLD) reallyclean armv6 udeb |
|
153 |
|
154 clean-release: $(ABLD) |
|
155 $(ABLD) reallyclean gcce urel |
|
156 $(ABLD) reallyclean armv5 urel |
|
157 $(ABLD) reallyclean armv6 urel |
|
158 |
|
159 clean-debug-winscw: $(ABLD) |
|
160 $(ABLD) reallyclean winscw udeb |
|
161 clean-debug-gcce: $(ABLD) |
|
162 $(ABLD) reallyclean gcce udeb |
|
163 clean-debug-armv5: $(ABLD) |
|
164 $(ABLD) reallyclean armv5 udeb |
|
165 clean-debug-armv6: $(ABLD) |
|
166 $(ABLD) reallyclean armv6 udeb |
|
167 clean-release-gcce: $(ABLD) |
|
168 $(ABLD) reallyclean gcce urel |
|
169 clean-release-armv5: $(ABLD) |
|
170 $(ABLD) reallyclean armv5 urel |
|
171 clean-release-armv6: $(ABLD) |
|
172 $(ABLD) reallyclean armv6 urel |
|
173 |
|
174 run: |
|
175 -call /S60/devices/S60_5th_Edition_SDK_v0.9/epoc32/release/winscw/udeb/tests.exe $(QT_RUN_OPTIONS) |
|
176 runonphone: sis |
|
177 runonphone $(QT_RUN_ON_PHONE_OPTIONS) --sis tests_$(QT_SIS_TARGET).sis tests.exe $(QT_RUN_OPTIONS) |
|
178 |
|