1 #############################################################################
2 # Makefile for building: LichViet
3 # Generated by qmake (2.01a) (Qt 4.6.2) on: Mon Aug 8 14:03:43 2011
4 # Project: LichViet.pro
6 # Command: /usr/bin/qmake -unix -o Makefile LichViet.pro
7 #############################################################################
9 ####### Compiler, tools and options
13 DEFINES = -DAPP_VERSION=\"1.0.1\" -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB
14 CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
15 CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
16 INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4 -Iqmlapplicationviewer -I.
19 LIBS = $(SUBLIBS) -L/usr/lib -lQtDeclarative -lQtGui -lQtCore -lpthread
22 QMAKE = /usr/bin/qmake
30 INSTALL_FILE = install -m 644 -p
31 INSTALL_DIR = $(COPY_DIR)
32 INSTALL_PROGRAM = install -m 755 -p
37 CHK_DIR_EXISTS= test -d
40 ####### Output directory
48 qmlapplicationviewer/qmlapplicationviewer.cpp moc_qmlapplicationviewer.cpp \
49 moc_lunarcalendar.cpp \
53 qmlapplicationviewer.o \
54 moc_qmlapplicationviewer.o \
57 DIST = /usr/share/qt4/mkspecs/common/g++.conf \
58 /usr/share/qt4/mkspecs/common/unix.conf \
59 /usr/share/qt4/mkspecs/common/linux.conf \
60 /usr/share/qt4/mkspecs/qconfig.pri \
61 /usr/share/qt4/mkspecs/features/qt_functions.prf \
62 /usr/share/qt4/mkspecs/features/qt_config.prf \
63 /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
64 /usr/share/qt4/mkspecs/features/default_pre.prf \
65 qmlapplicationviewer/qmlapplicationviewer.pri \
66 /usr/share/qt4/mkspecs/features/release.prf \
67 /usr/share/qt4/mkspecs/features/default_post.prf \
68 /usr/share/qt4/mkspecs/features/warn_on.prf \
69 /usr/share/qt4/mkspecs/features/qt.prf \
70 /usr/share/qt4/mkspecs/features/unix/thread.prf \
71 /usr/share/qt4/mkspecs/features/moc.prf \
72 /usr/share/qt4/mkspecs/features/resources.prf \
73 /usr/share/qt4/mkspecs/features/uic.prf \
74 /usr/share/qt4/mkspecs/features/yacc.prf \
75 /usr/share/qt4/mkspecs/features/lex.prf \
76 /usr/share/qt4/mkspecs/features/include_source_dir.prf \
78 QMAKE_TARGET = LichViet
83 ####### Implicit rules
85 .SUFFIXES: .o .c .cpp .cc .cxx .C
88 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
91 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
94 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
97 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
100 $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
104 all: Makefile $(TARGET)
106 $(TARGET): $(OBJECTS)
107 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
109 Makefile: LichViet.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \
110 /usr/share/qt4/mkspecs/common/unix.conf \
111 /usr/share/qt4/mkspecs/common/linux.conf \
112 /usr/share/qt4/mkspecs/qconfig.pri \
113 /usr/share/qt4/mkspecs/features/qt_functions.prf \
114 /usr/share/qt4/mkspecs/features/qt_config.prf \
115 /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
116 /usr/share/qt4/mkspecs/features/default_pre.prf \
117 qmlapplicationviewer/qmlapplicationviewer.pri \
118 /usr/share/qt4/mkspecs/features/release.prf \
119 /usr/share/qt4/mkspecs/features/default_post.prf \
120 /usr/share/qt4/mkspecs/features/warn_on.prf \
121 /usr/share/qt4/mkspecs/features/qt.prf \
122 /usr/share/qt4/mkspecs/features/unix/thread.prf \
123 /usr/share/qt4/mkspecs/features/moc.prf \
124 /usr/share/qt4/mkspecs/features/resources.prf \
125 /usr/share/qt4/mkspecs/features/uic.prf \
126 /usr/share/qt4/mkspecs/features/yacc.prf \
127 /usr/share/qt4/mkspecs/features/lex.prf \
128 /usr/share/qt4/mkspecs/features/include_source_dir.prf
129 $(QMAKE) -unix -o Makefile LichViet.pro
130 /usr/share/qt4/mkspecs/common/g++.conf:
131 /usr/share/qt4/mkspecs/common/unix.conf:
132 /usr/share/qt4/mkspecs/common/linux.conf:
133 /usr/share/qt4/mkspecs/qconfig.pri:
134 /usr/share/qt4/mkspecs/features/qt_functions.prf:
135 /usr/share/qt4/mkspecs/features/qt_config.prf:
136 /usr/share/qt4/mkspecs/features/exclusive_builds.prf:
137 /usr/share/qt4/mkspecs/features/default_pre.prf:
138 qmlapplicationviewer/qmlapplicationviewer.pri:
139 /usr/share/qt4/mkspecs/features/release.prf:
140 /usr/share/qt4/mkspecs/features/default_post.prf:
141 /usr/share/qt4/mkspecs/features/warn_on.prf:
142 /usr/share/qt4/mkspecs/features/qt.prf:
143 /usr/share/qt4/mkspecs/features/unix/thread.prf:
144 /usr/share/qt4/mkspecs/features/moc.prf:
145 /usr/share/qt4/mkspecs/features/resources.prf:
146 /usr/share/qt4/mkspecs/features/uic.prf:
147 /usr/share/qt4/mkspecs/features/yacc.prf:
148 /usr/share/qt4/mkspecs/features/lex.prf:
149 /usr/share/qt4/mkspecs/features/include_source_dir.prf:
151 @$(QMAKE) -unix -o Makefile LichViet.pro
154 @$(CHK_DIR_EXISTS) .tmp/LichViet1.0.1 || $(MKDIR) .tmp/LichViet1.0.1
155 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/LichViet1.0.1/ && $(COPY_FILE) --parents qmlapplicationviewer/qmlapplicationviewer.h lunarcalendar.h .tmp/LichViet1.0.1/ && $(COPY_FILE) --parents lichviet.qrc .tmp/LichViet1.0.1/ && $(COPY_FILE) --parents main.cpp lunarcalendar.cpp qmlapplicationviewer/qmlapplicationviewer.cpp .tmp/LichViet1.0.1/ && (cd `dirname .tmp/LichViet1.0.1` && $(TAR) LichViet1.0.1.tar LichViet1.0.1 && $(COMPRESS) LichViet1.0.1.tar) && $(MOVE) `dirname .tmp/LichViet1.0.1`/LichViet1.0.1.tar.gz . && $(DEL_FILE) -r .tmp/LichViet1.0.1
159 -$(DEL_FILE) $(OBJECTS)
160 -$(DEL_FILE) *~ core *.core
163 ####### Sub-libraries
166 -$(DEL_FILE) $(TARGET)
167 -$(DEL_FILE) Makefile
170 first: $(first) copydeploymentfolders
172 copydeploymentfolders:
173 @echo Copying application data... && $(MKDIR) "/home/cle/Nokia/LichViet//" && $(COPY_DIR) "/home/cle/Nokia/LichViet/themes" "/home/cle/Nokia/LichViet//"
175 mocclean: compiler_moc_header_clean compiler_moc_source_clean
177 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
179 compiler_moc_header_make_all: moc_qmlapplicationviewer.cpp moc_lunarcalendar.cpp
180 compiler_moc_header_clean:
181 -$(DEL_FILE) moc_qmlapplicationviewer.cpp moc_lunarcalendar.cpp
182 moc_qmlapplicationviewer.cpp: qmlapplicationviewer/qmlapplicationviewer.h
183 /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) qmlapplicationviewer/qmlapplicationviewer.h -o moc_qmlapplicationviewer.cpp
185 moc_lunarcalendar.cpp: lunarcalendar.h
186 /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) lunarcalendar.h -o moc_lunarcalendar.cpp
188 compiler_rcc_make_all: qrc_lichviet.cpp
190 -$(DEL_FILE) qrc_lichviet.cpp
191 qrc_lichviet.cpp: lichviet.qrc
192 /usr/bin/rcc -name lichviet lichviet.qrc -o qrc_lichviet.cpp
194 compiler_image_collection_make_all: qmake_image_collection.cpp
195 compiler_image_collection_clean:
196 -$(DEL_FILE) qmake_image_collection.cpp
197 compiler_moc_source_make_all:
198 compiler_moc_source_clean:
199 compiler_uic_make_all:
201 compiler_yacc_decl_make_all:
202 compiler_yacc_decl_clean:
203 compiler_yacc_impl_make_all:
204 compiler_yacc_impl_clean:
205 compiler_lex_make_all:
207 compiler_clean: compiler_moc_header_clean compiler_rcc_clean
211 main.o: main.cpp lunarcalendar.h
212 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
214 lunarcalendar.o: lunarcalendar.cpp lunarcalendar.h
215 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lunarcalendar.o lunarcalendar.cpp
217 qmlapplicationviewer.o: qmlapplicationviewer/qmlapplicationviewer.cpp qmlapplicationviewer/qmlapplicationviewer.h
218 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qmlapplicationviewer.o qmlapplicationviewer/qmlapplicationviewer.cpp
220 moc_qmlapplicationviewer.o: moc_qmlapplicationviewer.cpp
221 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qmlapplicationviewer.o moc_qmlapplicationviewer.cpp
223 moc_lunarcalendar.o: moc_lunarcalendar.cpp
224 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lunarcalendar.o moc_lunarcalendar.cpp
226 qrc_lichviet.o: qrc_lichviet.cpp
227 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_lichviet.o qrc_lichviet.cpp
231 install_itemthemes: first FORCE
232 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/LichViet// || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/LichViet//
233 -$(INSTALL_DIR) /home/cle/Nokia/LichViet/themes $(INSTALL_ROOT)/usr/local/share/LichViet//
236 uninstall_itemthemes: FORCE
237 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/local/share/LichViet//themes
238 -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/share/LichViet//
241 install_desktopfile: first FORCE
242 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/applications/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/applications/
243 -$(INSTALL_FILE) /home/cle/Nokia/LichViet/LichViet.desktop $(INSTALL_ROOT)/usr/share/applications/
246 uninstall_desktopfile: FORCE
247 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/applications/LichViet.desktop
248 -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/applications/
251 install_icon: first FORCE
252 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/
253 -$(INSTALL_FILE) /home/cle/Nokia/LichViet/LichViet.png $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/
256 uninstall_icon: FORCE
257 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/LichViet.png
258 -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/
261 install_target: first FORCE
262 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/bin/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/bin/
263 -$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
264 -$(STRIP) "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
266 uninstall_target: FORCE
267 -$(DEL_FILE) "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
268 -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/bin/
271 install: install_itemthemes install_desktopfile install_icon install_target FORCE
273 uninstall: uninstall_itemthemes uninstall_desktopfile uninstall_icon uninstall_target FORCE