d533cd3d3acf8b96045c94733ca745b91a13bed4
[lichviet] / Makefile
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
5 # Template: app
6 # Command: /usr/bin/qmake -unix -o Makefile LichViet.pro
7 #############################################################################
8
9 ####### Compiler, tools and options
10
11 CC            = gcc
12 CXX           = g++
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.
17 LINK          = g++
18 LFLAGS        = -Wl,-O1
19 LIBS          = $(SUBLIBS)  -L/usr/lib -lQtDeclarative -lQtGui -lQtCore -lpthread 
20 AR            = ar cqs
21 RANLIB        = 
22 QMAKE         = /usr/bin/qmake
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       = main.cpp \
47                 lunarcalendar.cpp \
48                 qmlapplicationviewer/qmlapplicationviewer.cpp moc_qmlapplicationviewer.cpp \
49                 moc_lunarcalendar.cpp \
50                 qrc_lichviet.cpp
51 OBJECTS       = main.o \
52                 lunarcalendar.o \
53                 qmlapplicationviewer.o \
54                 moc_qmlapplicationviewer.o \
55                 moc_lunarcalendar.o \
56                 qrc_lichviet.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 \
77                 LichViet.pro
78 QMAKE_TARGET  = LichViet
79 DESTDIR       = 
80 TARGET        = LichViet
81
82 first: all
83 ####### Implicit rules
84
85 .SUFFIXES: .o .c .cpp .cc .cxx .C
86
87 .cpp.o:
88         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
89
90 .cc.o:
91         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
92
93 .cxx.o:
94         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
95
96 .C.o:
97         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
98
99 .c.o:
100         $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
101
102 ####### Build rules
103
104 all: Makefile $(TARGET)
105
106 $(TARGET):  $(OBJECTS)  
107         $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
108
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:
150 qmake:  FORCE
151         @$(QMAKE) -unix -o Makefile LichViet.pro
152
153 dist: 
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
156
157
158 clean:compiler_clean 
159         -$(DEL_FILE) $(OBJECTS)
160         -$(DEL_FILE) *~ core *.core
161
162
163 ####### Sub-libraries
164
165 distclean: clean
166         -$(DEL_FILE) $(TARGET) 
167         -$(DEL_FILE) Makefile
168
169
170 first: $(first) copydeploymentfolders
171
172 copydeploymentfolders:
173         @echo Copying application data... && $(MKDIR) "/home/cle/Nokia/LichViet//" && $(COPY_DIR) "/home/cle/Nokia/LichViet/themes" "/home/cle/Nokia/LichViet//"
174
175 mocclean: compiler_moc_header_clean compiler_moc_source_clean
176
177 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
178
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
184
185 moc_lunarcalendar.cpp: lunarcalendar.h
186         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) lunarcalendar.h -o moc_lunarcalendar.cpp
187
188 compiler_rcc_make_all: qrc_lichviet.cpp
189 compiler_rcc_clean:
190         -$(DEL_FILE) qrc_lichviet.cpp
191 qrc_lichviet.cpp: lichviet.qrc
192         /usr/bin/rcc -name lichviet lichviet.qrc -o qrc_lichviet.cpp
193
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:
200 compiler_uic_clean:
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:
206 compiler_lex_clean:
207 compiler_clean: compiler_moc_header_clean compiler_rcc_clean 
208
209 ####### Compile
210
211 main.o: main.cpp lunarcalendar.h
212         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
213
214 lunarcalendar.o: lunarcalendar.cpp lunarcalendar.h
215         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lunarcalendar.o lunarcalendar.cpp
216
217 qmlapplicationviewer.o: qmlapplicationviewer/qmlapplicationviewer.cpp qmlapplicationviewer/qmlapplicationviewer.h
218         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qmlapplicationviewer.o qmlapplicationviewer/qmlapplicationviewer.cpp
219
220 moc_qmlapplicationviewer.o: moc_qmlapplicationviewer.cpp 
221         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qmlapplicationviewer.o moc_qmlapplicationviewer.cpp
222
223 moc_lunarcalendar.o: moc_lunarcalendar.cpp 
224         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lunarcalendar.o moc_lunarcalendar.cpp
225
226 qrc_lichviet.o: qrc_lichviet.cpp 
227         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_lichviet.o qrc_lichviet.cpp
228
229 ####### Install
230
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//
234
235
236 uninstall_itemthemes:  FORCE
237         -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/local/share/LichViet//themes
238         -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/share/LichViet// 
239
240
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/
244
245
246 uninstall_desktopfile:  FORCE
247         -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/applications/LichViet.desktop
248         -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/applications/ 
249
250
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/
254
255
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/ 
259
260
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)"
265
266 uninstall_target:  FORCE
267         -$(DEL_FILE) "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
268         -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/bin/ 
269
270
271 install:  install_itemthemes install_desktopfile install_icon install_target  FORCE
272
273 uninstall: uninstall_itemthemes uninstall_desktopfile uninstall_icon uninstall_target   FORCE
274
275 FORCE:
276