example/smfclientapp/Makefile
changeset 6 c39a6cfd1fb9
equal deleted inserted replaced
5:edb9dc8273d9 6:c39a6cfd1fb9
       
     1 # ==============================================================================
       
     2 # Generated by qmake (2.01a) (Qt 4.6.1) on: Tue May 18 15:54:38 2010
       
     3 # This file is generated by qmake and should not be modified by the
       
     4 # user.
       
     5 #  Name        : Makefile
       
     6 #  Description : Wrapper Makefile for calling Symbian build tools
       
     7 #
       
     8 # ==============================================================================
       
     9 
       
    10 
       
    11 MAKEFILE          = Makefile
       
    12 QMAKE             = d:\Qt\4.6.1\bin\qmake
       
    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 
       
    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 
       
    28 DEFINES	 = -DSYMBIAN -DUNICODE -DQT_KEYPAD_NAVIGATION -DQT_SOFTKEYS_ENABLED -DQT_USE_MATH_H_FLOATS -DWRITE_LOG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
       
    29 INCPATH	 =  -I"D:/Qt/4.6.1/include/QtCore" -I"D:/Qt/4.6.1/include/QtCore/tmp" -I"D:/Qt/4.6.1/include/QtNetwork" -I"D:/Qt/4.6.1/include/QtNetwork/tmp" -I"D:/Qt/4.6.1/include/QtGui" -I"D:/Qt/4.6.1/include/QtGui/tmp" -I"D:/Qt/4.6.1/include/QtWebKit" -I"D:/Qt/4.6.1/include/QtWebKit/tmp" -I"D:/Qt/4.6.1/include" -I"D:/Qt/4.6.1/include/tmp" -I"D:/CarbideWorkspace/smfserver_cleaned/example/smfclientapp" -I"D:/CarbideWorkspace/smfserver_cleaned/example/smfclientapp/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:/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:/S60/devices/S60_5th_Edition_SDK_v0.9/epoc32/include/middleware" -I"D:/S60/devices/S60_5th_Edition_SDK_v0.9/epoc32/include/domain/middleware" -I"D:/S60/devices/S60_5th_Edition_SDK_v0.9/epoc32/include/applications" -I"D:/S60/devices/S60_5th_Edition_SDK_v0.9/epoc32/include/domain/applications" -I"D:/S60/devices/S60_5th_Edition_SDK_v0.9/epoc32/include/domain/middleware/loc" -I"D:/S60/devices/S60_5th_Edition_SDK_v0.9/epoc32/include/stdapis/stlport" -I"D:/Qt/4.6.1/include/QtXmlPatterns" -I"D:/Qt/4.6.1/include/QtXmlPatterns/tmp"
       
    30 first: default
       
    31 default: debug-winscw
       
    32 all: debug release
       
    33 
       
    34 qmake:
       
    35 	$(QMAKE) -spec symbian-abld -o "bld.inf" "D:/CarbideWorkspace/smfserver_cleaned/example/smfclientapp/smfclientapp.pro"
       
    36 
       
    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 
       
    75 D:\Qt\4.6.1\bin\moc.exe:
       
    76 	(cd $(QTDIR)/src/tools/moc && $(MAKE))
       
    77 
       
    78 mocclean: compiler_moc_header_clean compiler_moc_source_clean
       
    79 
       
    80 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
       
    81 
       
    82 compiler_moc_header_make_all: moc_displaywidget.cpp moc_testscreen.cpp moc_smfclientapp.cpp
       
    83 compiler_moc_header_clean:
       
    84 	-$(DEL_FILE) moc_displaywidget.cpp moc_testscreen.cpp moc_smfclientapp.cpp 2> NUL
       
    85 moc_displaywidget.cpp: ui_displaywidget.h \
       
    86 		displaywidget.h \
       
    87 		..\..\..\..\Qt\4.6.1\bin\moc.exe
       
    88 	D:\Qt\4.6.1\bin\moc.exe $(DEFINES) $(INCPATH) -DSYMBIAN displaywidget.h -o moc_displaywidget.cpp
       
    89 
       
    90 moc_testscreen.cpp: ui_SmfClientApp.h \
       
    91 		testscreen.h \
       
    92 		..\..\..\..\Qt\4.6.1\bin\moc.exe
       
    93 	D:\Qt\4.6.1\bin\moc.exe $(DEFINES) $(INCPATH) -DSYMBIAN testscreen.h -o moc_testscreen.cpp
       
    94 
       
    95 moc_smfclientapp.cpp: ui_SmfClientApp.h \
       
    96 		smfclientapp.h \
       
    97 		..\..\..\..\Qt\4.6.1\bin\moc.exe
       
    98 	D:\Qt\4.6.1\bin\moc.exe $(DEFINES) $(INCPATH) -DSYMBIAN smfclientapp.h -o moc_smfclientapp.cpp
       
    99 
       
   100 compiler_rcc_make_all:
       
   101 compiler_rcc_clean:
       
   102 compiler_image_collection_make_all: qmake_image_collection.cpp
       
   103 compiler_image_collection_clean:
       
   104 	-$(DEL_FILE) qmake_image_collection.cpp 2> NUL
       
   105 compiler_moc_source_make_all:
       
   106 compiler_moc_source_clean:
       
   107 compiler_uic_make_all: ui_displaywidget.h ui_smfclientapp.h
       
   108 compiler_uic_clean:
       
   109 	-$(DEL_FILE) ui_displaywidget.h ui_smfclientapp.h 2> NUL
       
   110 ui_displaywidget.h: displaywidget.ui
       
   111 	d:\Qt\4.6.1\bin\uic.exe displaywidget.ui -o ui_displaywidget.h
       
   112 
       
   113 ui_smfclientapp.h: smfclientapp.ui
       
   114 	d:\Qt\4.6.1\bin\uic.exe smfclientapp.ui -o ui_smfclientapp.h
       
   115 
       
   116 compiler_yacc_decl_make_all:
       
   117 compiler_yacc_decl_clean:
       
   118 compiler_yacc_impl_make_all:
       
   119 compiler_yacc_impl_clean:
       
   120 compiler_lex_make_all:
       
   121 compiler_lex_clean:
       
   122 compiler_clean: compiler_moc_header_clean compiler_uic_clean 
       
   123 
       
   124 create_temps:
       
   125 	-@ if NOT EXIST "D:\Qt\4.6.1\include\QtCore\tmp" mkdir "D:\Qt\4.6.1\include\QtCore\tmp"
       
   126 	-@ if NOT EXIST "D:\Qt\4.6.1\include\QtNetwork\tmp" mkdir "D:\Qt\4.6.1\include\QtNetwork\tmp"
       
   127 	-@ if NOT EXIST "D:\Qt\4.6.1\include\QtGui\tmp" mkdir "D:\Qt\4.6.1\include\QtGui\tmp"
       
   128 	-@ if NOT EXIST "D:\Qt\4.6.1\include\QtWebKit\tmp" mkdir "D:\Qt\4.6.1\include\QtWebKit\tmp"
       
   129 	-@ if NOT EXIST "D:\Qt\4.6.1\include\tmp" mkdir "D:\Qt\4.6.1\include\tmp"
       
   130 	-@ if NOT EXIST "D:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\tmp" mkdir "D:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\tmp"
       
   131 	-@ if NOT EXIST "D:\Qt\4.6.1\mkspecs\common\symbian\tmp" mkdir "D:\Qt\4.6.1\mkspecs\common\symbian\tmp"
       
   132 	-@ if NOT EXIST "D:\Qt\4.6.1\include\QtXmlPatterns\tmp" mkdir "D:\Qt\4.6.1\include\QtXmlPatterns\tmp"
       
   133 
       
   134 extension_clean: compiler_clean
       
   135 	-@ if EXIST "D:\Qt\4.6.1\include\QtCore\tmp" rmdir  /S /Q  "D:\Qt\4.6.1\include\QtCore\tmp"
       
   136 	-@ if EXIST "D:\Qt\4.6.1\include\QtNetwork\tmp" rmdir  /S /Q  "D:\Qt\4.6.1\include\QtNetwork\tmp"
       
   137 	-@ if EXIST "D:\Qt\4.6.1\include\QtGui\tmp" rmdir  /S /Q  "D:\Qt\4.6.1\include\QtGui\tmp"
       
   138 	-@ if EXIST "D:\Qt\4.6.1\include\QtWebKit\tmp" rmdir  /S /Q  "D:\Qt\4.6.1\include\QtWebKit\tmp"
       
   139 	-@ if EXIST "D:\Qt\4.6.1\include\tmp" rmdir  /S /Q  "D:\Qt\4.6.1\include\tmp"
       
   140 	-@ if EXIST "D:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\tmp" rmdir  /S /Q  "D:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\tmp"
       
   141 	-@ if EXIST "D:\Qt\4.6.1\mkspecs\common\symbian\tmp" rmdir  /S /Q  "D:\Qt\4.6.1\mkspecs\common\symbian\tmp"
       
   142 	-@ if EXIST "D:\Qt\4.6.1\include\QtXmlPatterns\tmp" rmdir  /S /Q  "D:\Qt\4.6.1\include\QtXmlPatterns\tmp"
       
   143 
       
   144 pre_targetdeps: \
       
   145 	generated_sources \
       
   146 	all_source_deps \
       
   147 	ui_displaywidget.h \
       
   148 	ui_smfclientapp.h
       
   149 
       
   150 generated_sources: \
       
   151 	moc_displaywidget.cpp \
       
   152 	moc_testscreen.cpp \
       
   153 	moc_smfclientapp.cpp
       
   154 
       
   155 all_source_deps: \
       
   156 	displaywidget.h \
       
   157 	ui_displaywidget.h \
       
   158 	testscreen.h \
       
   159 	ui_SmfClientApp.h \
       
   160 	SmfClientApp.h
       
   161 
       
   162 finalize:
       
   163 
       
   164 winscw_deployment:
       
   165 
       
   166 winscw_deployment_clean:
       
   167 
       
   168 sis: restore_build
       
   169 	$(if $(wildcard smfclientapp_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)
       
   170 
       
   171 ok_sis:
       
   172 	createpackage.bat $(QT_SIS_OPTIONS) smfclientapp_template.pkg $(QT_SIS_TARGET) $(QT_SIS_CERTIFICATE) $(QT_SIS_KEY) $(QT_SIS_PASSPHRASE)
       
   173 
       
   174 fail_sis_nopkg:
       
   175 	$(error PKG file does not exist, 'SIS' target is only supported for executables or projects with DEPLOYMENT statement)
       
   176 
       
   177 fail_sis_nocache:
       
   178 	$(error Project has to be built or QT_SIS_TARGET environment variable has to be set before calling 'SIS' target)
       
   179 
       
   180 restore_build:
       
   181 -include .make.cache
       
   182 
       
   183 store_build:
       
   184 	@echo # ============================================================================== > .make.cache
       
   185 	@echo # This file is generated by make and should not be modified by the user >> .make.cache
       
   186 	@echo #  Name        : .make.cache >> .make.cache
       
   187 	@echo #  Part of     : smfclientapp >> .make.cache
       
   188 	@echo #  Description : This file is used to cache last build target for >> .make.cache
       
   189 	@echo #                make sis target. >> .make.cache
       
   190 	@echo #  Version     :  >> .make.cache
       
   191 	@echo # >> .make.cache
       
   192 	@echo # ============================================================================== >> .make.cache
       
   193 	@echo. >> .make.cache
       
   194 	@echo QT_SIS_TARGET ?= $(QT_SIS_TARGET) >> .make.cache
       
   195 
       
   196 dodistclean:
       
   197 	-@ if EXIST "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\smfclientapp_template.pkg" $(DEL_FILE)  "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\smfclientapp_template.pkg"
       
   198 	-@ if EXIST "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\Makefile" $(DEL_FILE)  "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\Makefile"
       
   199 	-@ if EXIST "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\Makefile_0xE08059D4.mk" $(DEL_FILE)  "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\Makefile_0xE08059D4.mk"
       
   200 	-@ if EXIST "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\smfclientapp_0xE08059D4.mmp" $(DEL_FILE)  "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\smfclientapp_0xE08059D4.mmp"
       
   201 	-@ if EXIST "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\smfclientapp_reg.rss" $(DEL_FILE)  "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\smfclientapp_reg.rss"
       
   202 	-@ if EXIST "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\smfclientapp.rss" $(DEL_FILE)  "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\smfclientapp.rss"
       
   203 	-@ if EXIST "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\smfclientapp.loc" $(DEL_FILE)  "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\smfclientapp.loc"
       
   204 	-@ if EXIST "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\.make.cache" $(DEL_FILE)  "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\.make.cache"
       
   205 	-@ if EXIST "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\bld.inf" $(DEL_FILE)  "d:\CarbideWorkspace\smfserver_cleaned\example\smfclientapp\bld.inf"
       
   206 
       
   207 distclean: clean dodistclean
       
   208 
       
   209 clean: $(ABLD)
       
   210 	-$(ABLD) reallyclean
       
   211 	-bldmake clean
       
   212 
       
   213 clean-debug: $(ABLD)
       
   214 	$(ABLD) reallyclean winscw udeb
       
   215 	$(ABLD) reallyclean gcce udeb
       
   216 	$(ABLD) reallyclean armv5 udeb
       
   217 	$(ABLD) reallyclean armv6 udeb
       
   218 
       
   219 clean-release: $(ABLD)
       
   220 	$(ABLD) reallyclean gcce urel
       
   221 	$(ABLD) reallyclean armv5 urel
       
   222 	$(ABLD) reallyclean armv6 urel
       
   223 
       
   224 clean-debug-winscw: $(ABLD)
       
   225 	$(ABLD) reallyclean winscw udeb
       
   226 clean-debug-gcce: $(ABLD)
       
   227 	$(ABLD) reallyclean gcce udeb
       
   228 clean-debug-armv5: $(ABLD)
       
   229 	$(ABLD) reallyclean armv5 udeb
       
   230 clean-debug-armv6: $(ABLD)
       
   231 	$(ABLD) reallyclean armv6 udeb
       
   232 clean-release-gcce: $(ABLD)
       
   233 	$(ABLD) reallyclean gcce urel
       
   234 clean-release-armv5: $(ABLD)
       
   235 	$(ABLD) reallyclean armv5 urel
       
   236 clean-release-armv6: $(ABLD)
       
   237 	$(ABLD) reallyclean armv6 urel
       
   238 
       
   239 run:
       
   240 	-call /S60/devices/S60_5th_Edition_SDK_v0.9/epoc32/release/winscw/udeb/smfclientapp.exe $(QT_RUN_OPTIONS)
       
   241 runonphone: sis
       
   242 	runonphone $(QT_RUN_ON_PHONE_OPTIONS) --sis smfclientapp_$(QT_SIS_TARGET).sis smfclientapp.exe $(QT_RUN_OPTIONS)
       
   243