zeroconf/zeroconfsharing/Makefile
changeset 21 ff5174af067c
child 22 ad3edfbaa1d4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zeroconf/zeroconfsharing/Makefile	Wed Jul 21 14:28:48 2010 +0530
@@ -0,0 +1,171 @@
+# ==============================================================================
+# Generated by qmake (2.01a) (Qt 4.6.3) on: Wed Jul 21 14:16:31 2010
+# This file is generated by qmake and should not be modified by the
+# user.
+#  Name        : Makefile
+#  Description : Wrapper Makefile for calling Symbian build tools
+#
+# ==============================================================================
+
+
+MAKEFILE          = Makefile
+QMAKE             = x:\epoc32\tools\qt\qmake
+DEL_FILE          = del
+DEL_DIR           = rmdir
+CHK_DIR_EXISTS    = if not exist
+MKDIR             = mkdir
+MOVE              = move
+DEBUG_PLATFORMS   = winscw gcce armv5 armv6
+RELEASE_PLATFORMS = gcce armv5 armv6
+MAKE              = make
+SBS               = sbs
+
+DEFINES	 = -DSYMBIAN -DUNICODE -DQT_KEYPAD_NAVIGATION -DQT_SOFTKEYS_ENABLED -DQT_USE_MATH_H_FLOATS -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
+INCPATH	 =  -I"X:/epoc32/include/mw/QtCore"  -I"X:/epoc32/include/mw/QtNetwork"  -I"X:/epoc32/include/mw/QtGui"  -I"X:/epoc32/include/mw"  -I"X:/sf/mw/qt/mkspecs/common/symbian"  -I"X:/epoc32/include"  -I"X:/epoc32/include/stdapis"  -I"X:/epoc32/include/stdapis/sys"  -I"X:/epoc32/include/platform/mw"  -I"X:/epoc32/include/platform"  -I"X:/epoc32/include/app"  -I"X:/epoc32/include/platform/app"  -I"X:/epoc32/include/platform/loc"  -I"X:/epoc32/include/platform/mw/loc"  -I"X:/epoc32/include/platform/app/loc"  -I"X:/epoc32/include/platform/loc/sc"  -I"X:/epoc32/include/platform/mw/loc/sc"  -I"X:/epoc32/include/platform/app/loc/sc"  -I"X:/epoc32/include/stdapis/stlportv5"  -I"X:/zeroconfsharing" 
+first: default
+default: debug-winscw
+all: debug release
+
+qmake:
+	$(QMAKE) -spec symbian-sbsv2 -o "bld.inf" "X:/zeroconfsharing/zeroconfsharing.pro"
+
+bld.inf:
+	$(QMAKE)
+
+debug: bld.inf
+	$(SBS) -c winscw_udeb.mwccinc -c gcce_udeb -c armv5_udeb -c armv6_udeb
+release: bld.inf
+	$(SBS) -c gcce_urel -c armv5_urel -c armv6_urel
+debug-winscw: bld.inf
+	$(SBS) -c winscw_udeb.mwccinc
+debug-gcce: bld.inf
+	$(SBS) -c gcce_udeb
+debug-armv5: bld.inf
+	$(SBS) -c armv5_udeb
+debug-armv6: bld.inf
+	$(SBS) -c armv6_udeb
+release-gcce: bld.inf
+	$(SBS) -c gcce_urel
+release-armv5: bld.inf
+	$(SBS) -c armv5_urel
+release-armv6: bld.inf
+	$(SBS) -c armv6_urel
+
+export: bld.inf
+	$(SBS) export
+
+cleanexport: bld.inf
+	$(SBS) cleanexport
+
+check: first
+
+mocclean: compiler_moc_header_clean compiler_moc_source_clean
+
+mocables: compiler_moc_header_make_all compiler_moc_source_make_all
+
+compiler_moc_header_make_all: moc_zeroconfsharing.cpp moc_downloadicon.cpp
+compiler_moc_header_clean:
+	-$(DEL_FILE) moc_zeroconfsharing.cpp moc_downloadicon.cpp 2> NUL
+moc_zeroconfsharing.cpp: ui_mainwindow.h \
+		zeroconfclient.h \
+		musicprovider.h \
+		zeroconfsharing.h
+	/epoc32/tools/qt/moc $(DEFINES) $(INCPATH) -DSYMBIAN x:\zeroconfsharing\zeroconfsharing.h -o x:\zeroconfsharing\moc_zeroconfsharing.cpp
+
+moc_downloadicon.cpp: ui_mainwindow.h \
+		downloadicon.h
+	/epoc32/tools/qt/moc $(DEFINES) $(INCPATH) -DSYMBIAN x:\zeroconfsharing\downloadicon.h -o x:\zeroconfsharing\moc_downloadicon.cpp
+
+compiler_rcc_make_all: qrc_TabIcon.cpp
+compiler_rcc_clean:
+	-$(DEL_FILE) qrc_TabIcon.cpp 2> NUL
+qrc_TabIcon.cpp: TabIcon.qrc
+	\epoc32\tools\qt\rcc -name TabIcon x:\zeroconfsharing\TabIcon.qrc -o x:\zeroconfsharing\qrc_TabIcon.cpp
+
+compiler_image_collection_make_all: qmake_image_collection.cpp
+compiler_image_collection_clean:
+	-$(DEL_FILE) qmake_image_collection.cpp 2> NUL
+compiler_moc_source_make_all:
+compiler_moc_source_clean:
+compiler_uic_make_all: ui_mainwindow.h
+compiler_uic_clean:
+	-$(DEL_FILE) ui_mainwindow.h 2> NUL
+ui_mainwindow.h: mainwindow.ui
+	\epoc32\tools\qt\uic x:\zeroconfsharing\mainwindow.ui -o x:\zeroconfsharing\ui_mainwindow.h
+
+compiler_yacc_decl_make_all:
+compiler_yacc_decl_clean:
+compiler_yacc_impl_make_all:
+compiler_yacc_impl_clean:
+compiler_lex_make_all:
+compiler_lex_clean:
+compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_uic_clean 
+
+-include .make.cache
+
+sis:
+	$(if $(wildcard zeroconfsharing_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)
+
+ok_sis:
+	createpackage.bat $(QT_SIS_OPTIONS) zeroconfsharing_template.pkg $(QT_SIS_TARGET) $(QT_SIS_CERTIFICATE) $(QT_SIS_KEY) $(QT_SIS_PASSPHRASE)
+
+zeroconfsharing.sis:
+	$(MAKE) -s -f $(MAKEFILE) sis
+
+stub_sis:
+	$(if $(wildcard zeroconfsharing_template.pkg),$(if $(wildcard .make.cache),$(MAKE) -s -f $(MAKEFILE) ok_stub_sis,$(if $(QT_SIS_TARGET),$(MAKE) -s -f $(MAKEFILE) ok_stub_sis,$(MAKE) -s -f $(MAKEFILE) fail_sis_nocache)),$(MAKE) -s -f $(MAKEFILE) fail_sis_nopkg)
+
+ok_stub_sis:
+	createpackage.bat -s $(QT_SIS_OPTIONS) zeroconfsharing_template.pkg $(QT_SIS_TARGET) $(QT_SIS_CERTIFICATE) $(QT_SIS_KEY) $(QT_SIS_PASSPHRASE)
+
+installer_sis: zeroconfsharing.sis
+	$(if $(wildcard zeroconfsharing_installer.pkg),$(MAKE) -s -f $(MAKEFILE) ok_installer_sis,$(MAKE) -s -f $(MAKEFILE) fail_sis_nopkg)
+
+ok_installer_sis: 
+	createpackage.bat $(QT_SIS_OPTIONS) zeroconfsharing_installer.pkg - $(QT_SIS_CERTIFICATE) $(QT_SIS_KEY) $(QT_SIS_PASSPHRASE)
+
+fail_sis_nopkg:
+	$(error PKG file does not exist, 'sis' and 'installer_sis' target are only supported for executables or projects with DEPLOYMENT statement)
+
+fail_sis_nocache:
+	$(error Project has to be built or QT_SIS_TARGET environment variable has to be set before calling 'SIS' target)
+
+dodistclean:
+	-@ if EXIST "x:\zeroconfsharing\zeroconfsharing_template.pkg" $(DEL_FILE)  "x:\zeroconfsharing\zeroconfsharing_template.pkg"
+	-@ if EXIST "x:\zeroconfsharing\zeroconfsharing_installer.pkg" $(DEL_FILE)  "x:\zeroconfsharing\zeroconfsharing_installer.pkg"
+	-@ if EXIST "x:\zeroconfsharing\Makefile" $(DEL_FILE)  "x:\zeroconfsharing\Makefile"
+	-@ if EXIST "x:\zeroconfsharing\zeroconfsharing_0xEA84AF50.mmp" $(DEL_FILE)  "x:\zeroconfsharing\zeroconfsharing_0xEA84AF50.mmp"
+	-@ if EXIST "x:\zeroconfsharing\zeroconfsharing_reg.rss" $(DEL_FILE)  "x:\zeroconfsharing\zeroconfsharing_reg.rss"
+	-@ if EXIST "x:\zeroconfsharing\zeroconfsharing.rss" $(DEL_FILE)  "x:\zeroconfsharing\zeroconfsharing.rss"
+	-@ if EXIST "x:\zeroconfsharing\zeroconfsharing.loc" $(DEL_FILE)  "x:\zeroconfsharing\zeroconfsharing.loc"
+	-@ if EXIST "x:\zeroconfsharing\bld.inf" $(DEL_FILE)  "x:\zeroconfsharing\bld.inf"
+
+distclean: clean dodistclean
+
+clean: bld.inf
+	-$(SBS) reallyclean
+
+clean-debug: bld.inf
+	$(SBS) reallyclean -c winscw_udeb -c gcce_udeb -c armv5_udeb -c armv6_udeb
+clean-release: bld.inf
+	$(SBS) reallyclean -c gcce_urel -c armv5_urel -c armv6_urel
+clean-debug-winscw: bld.inf
+	$(SBS) reallyclean -c winscw_udeb
+clean-debug-gcce: bld.inf
+	$(SBS) reallyclean -c gcce_udeb
+clean-debug-armv5: bld.inf
+	$(SBS) reallyclean -c armv5_udeb
+clean-debug-armv6: bld.inf
+	$(SBS) reallyclean -c armv6_udeb
+clean-release-gcce: bld.inf
+	$(SBS) reallyclean -c gcce_urel
+clean-release-armv5: bld.inf
+	$(SBS) reallyclean -c armv5_urel
+clean-release-armv6: bld.inf
+	$(SBS) reallyclean -c armv6_urel
+
+run:
+	-call /epoc32/release/winscw/udeb/zeroconfsharing.exe $(QT_RUN_OPTIONS)
+runonphone: sis
+	runonphone $(QT_RUN_ON_PHONE_OPTIONS) --sis zeroconfsharing.sis zeroconfsharing.exe $(QT_RUN_OPTIONS)
+