09f0102471ac16d725b56852e5f52791ae94221f
[hikingdiary] / src / Makefile
1 #############################################################################
2 # Makefile for building: hikingdiary
3 # Generated by qmake (2.01a) (Qt 4.6.2) on: Fri Jul 9 22:57:54 2010
4 # Project:  src.pro
5 # Template: app
6 # Command: /usr/bin/qmake -unix -o Makefile src.pro
7 #############################################################################
8
9 ####### Compiler, tools and options
10
11 CC            = gcc
12 CXX           = g++
13 DEFINES       = -DLIBLOCATION -DDATADIR=\"/usr/share\" -DPKGDATADIR=\"\" -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
14 CFLAGS        = -pipe -O2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -W -D_REENTRANT $(DEFINES)
15 CXXFLAGS      = -pipe -O2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -W -D_REENTRANT $(DEFINES)
16 INCPATH       = -I/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++ -I. -I/targets/FREMANTLE_X86/usr/include/QtCore -I/targets/FREMANTLE_X86/usr/include/QtGui -I/targets/FREMANTLE_X86/usr/include/QtXml -I/targets/FREMANTLE_X86/usr/include -I/targets/FREMANTLE_X86/usr/include/location -I/targets/FREMANTLE_X86/usr/include/glib-2.0 -I/targets/FREMANTLE_X86/usr/lib/glib-2.0/include -I.
17 LINK          = g++
18 LFLAGS        = -Wl,-O1 -Wl,-rpath,/usr/lib
19 LIBS          = $(SUBLIBS)  -L/usr/lib -llocation -lgconf-2 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -lQtXml -L/usr/lib -lQtGui -L/usr/X11R6/lib -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                 mainwindow.cpp \
48                 maemo5location.cpp \
49                 maemo5locationprivate.cpp \
50                 xmlparser.cpp \
51                 diarydata.cpp \
52                 diarydatamanager.cpp moc_mainwindow.cpp \
53                 moc_maemo5location.cpp \
54                 moc_maemo5locationprivate.cpp
55 OBJECTS       = main.o \
56                 mainwindow.o \
57                 maemo5location.o \
58                 maemo5locationprivate.o \
59                 xmlparser.o \
60                 diarydata.o \
61                 diarydatamanager.o \
62                 moc_mainwindow.o \
63                 moc_maemo5location.o \
64                 moc_maemo5locationprivate.o
65 DIST          = /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf \
66                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf \
67                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf \
68                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri \
69                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf \
70                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf \
71                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
72                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf \
73                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf \
74                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf \
75                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/link_pkgconfig.prf \
76                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf \
77                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf \
78                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf \
79                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf \
80                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf \
81                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf \
82                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf \
83                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf \
84                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf \
85                 src.pro
86 QMAKE_TARGET  = hikingdiary
87 DESTDIR       = 
88 TARGET        = hikingdiary
89
90 first: all
91 ####### Implicit rules
92
93 .SUFFIXES: .o .c .cpp .cc .cxx .C
94
95 .cpp.o:
96         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
97
98 .cc.o:
99         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
100
101 .cxx.o:
102         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
103
104 .C.o:
105         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
106
107 .c.o:
108         $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
109
110 ####### Build rules
111
112 all: Makefile $(TARGET)
113
114 $(TARGET):  $(OBJECTS)  
115         $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
116
117 Makefile: src.pro  /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++/qmake.conf /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf \
118                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf \
119                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf \
120                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri \
121                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf \
122                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf \
123                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
124                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf \
125                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf \
126                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf \
127                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/link_pkgconfig.prf \
128                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf \
129                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf \
130                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf \
131                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf \
132                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf \
133                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf \
134                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf \
135                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf \
136                 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf \
137                 /usr/lib/libQtXml.prl \
138                 /usr/lib/libQtCore.prl \
139                 /usr/lib/libQtGui.prl
140         $(QMAKE) -unix -o Makefile src.pro
141 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf:
142 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf:
143 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf:
144 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri:
145 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf:
146 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf:
147 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf:
148 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf:
149 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf:
150 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf:
151 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/link_pkgconfig.prf:
152 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf:
153 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf:
154 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf:
155 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf:
156 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf:
157 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf:
158 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf:
159 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf:
160 /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf:
161 /usr/lib/libQtXml.prl:
162 /usr/lib/libQtCore.prl:
163 /usr/lib/libQtGui.prl:
164 qmake:  FORCE
165         @$(QMAKE) -unix -o Makefile src.pro
166
167 dist: 
168         @$(CHK_DIR_EXISTS) .tmp/hikingdiary1.0.0 || $(MKDIR) .tmp/hikingdiary1.0.0 
169         $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/hikingdiary1.0.0/ && $(COPY_FILE) --parents mainwindow.h maemo5location.h maemo5locationprivate.h xmlparser.h diarydata.h diarydatamanager.h .tmp/hikingdiary1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp maemo5location.cpp maemo5locationprivate.cpp xmlparser.cpp diarydata.cpp diarydatamanager.cpp .tmp/hikingdiary1.0.0/ && (cd `dirname .tmp/hikingdiary1.0.0` && $(TAR) hikingdiary1.0.0.tar hikingdiary1.0.0 && $(COMPRESS) hikingdiary1.0.0.tar) && $(MOVE) `dirname .tmp/hikingdiary1.0.0`/hikingdiary1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/hikingdiary1.0.0
170
171
172 clean:compiler_clean 
173         -$(DEL_FILE) $(OBJECTS)
174         -$(DEL_FILE) *~ core *.core
175
176
177 ####### Sub-libraries
178
179 distclean: clean
180         -$(DEL_FILE) $(TARGET) 
181         -$(DEL_FILE) Makefile
182
183
184 mocclean: compiler_moc_header_clean compiler_moc_source_clean
185
186 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
187
188 compiler_moc_header_make_all: moc_mainwindow.cpp moc_maemo5location.cpp moc_maemo5locationprivate.cpp
189 compiler_moc_header_clean:
190         -$(DEL_FILE) moc_mainwindow.cpp moc_maemo5location.cpp moc_maemo5locationprivate.cpp
191 moc_mainwindow.cpp: maemo5location.h \
192                 xmlparser.h \
193                 mainwindow.h \
194                 diarydatamanager.h \
195                 mainwindow.h
196         /usr/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp
197
198 moc_maemo5location.cpp: maemo5location.h
199         /usr/bin/moc $(DEFINES) $(INCPATH) maemo5location.h -o moc_maemo5location.cpp
200
201 moc_maemo5locationprivate.cpp: maemo5location.h \
202                 maemo5locationprivate.h
203         /usr/bin/moc $(DEFINES) $(INCPATH) maemo5locationprivate.h -o moc_maemo5locationprivate.cpp
204
205 compiler_rcc_make_all:
206 compiler_rcc_clean:
207 compiler_image_collection_make_all: qmake_image_collection.cpp
208 compiler_image_collection_clean:
209         -$(DEL_FILE) qmake_image_collection.cpp
210 compiler_moc_source_make_all:
211 compiler_moc_source_clean:
212 compiler_uic_make_all:
213 compiler_uic_clean:
214 compiler_yacc_decl_make_all:
215 compiler_yacc_decl_clean:
216 compiler_yacc_impl_make_all:
217 compiler_yacc_impl_clean:
218 compiler_lex_make_all:
219 compiler_lex_clean:
220 compiler_clean: compiler_moc_header_clean 
221
222 ####### Compile
223
224 main.o: main.cpp mainwindow.h \
225                 maemo5location.h \
226                 xmlparser.h \
227                 diarydatamanager.h
228         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
229
230 mainwindow.o: mainwindow.cpp mainwindow.h \
231                 maemo5location.h \
232                 xmlparser.h \
233                 diarydatamanager.h
234         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
235
236 maemo5location.o: maemo5location.cpp maemo5locationprivate.h \
237                 maemo5location.h
238         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o maemo5location.o maemo5location.cpp
239
240 maemo5locationprivate.o: maemo5locationprivate.cpp maemo5locationprivate.h \
241                 maemo5location.h
242         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o maemo5locationprivate.o maemo5locationprivate.cpp
243
244 xmlparser.o: xmlparser.cpp xmlparser.h \
245                 mainwindow.h \
246                 maemo5location.h \
247                 diarydatamanager.h
248         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o xmlparser.o xmlparser.cpp
249
250 diarydata.o: diarydata.cpp diarydata.h
251         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o diarydata.o diarydata.cpp
252
253 diarydatamanager.o: diarydatamanager.cpp diarydatamanager.h
254         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o diarydatamanager.o diarydatamanager.cpp
255
256 moc_mainwindow.o: moc_mainwindow.cpp 
257         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
258
259 moc_maemo5location.o: moc_maemo5location.cpp 
260         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_maemo5location.o moc_maemo5location.cpp
261
262 moc_maemo5locationprivate.o: moc_maemo5locationprivate.cpp 
263         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_maemo5locationprivate.o moc_maemo5locationprivate.cpp
264
265 ####### Install
266
267 install_desktop: first FORCE
268         @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/applications/hildon/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/applications/hildon/ 
269         -$(INSTALL_PROGRAM) /home/ari/code/hikingdiary/src/hikingdiary.desktop $(INSTALL_ROOT)/usr/share/applications/hildon/
270         -strip $(INSTALL_ROOT)/usr/share/applications/hildon/hikingdiary.desktop
271
272
273 uninstall_desktop:  FORCE
274         -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/applications/hildon/hikingdiary.desktop
275         -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/applications/hildon/ 
276
277
278 install_icon26: first FORCE
279         @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/icons/hicolor/26x26/apps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/26x26/apps/ 
280         -$(INSTALL_PROGRAM) /home/ari/code/hikingdiary/res/icon/26x26/hikingdiary.png $(INSTALL_ROOT)/usr/share/icons/hicolor/26x26/apps/
281         -strip $(INSTALL_ROOT)/usr/share/icons/hicolor/26x26/apps/hikingdiary.png
282
283
284 uninstall_icon26:  FORCE
285         -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/icons/hicolor/26x26/apps/hikingdiary.png
286         -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/26x26/apps/ 
287
288
289 install_icon48: first FORCE
290         @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/ 
291         -$(INSTALL_PROGRAM) /home/ari/code/hikingdiary/res/icon/48x48/hikingdiary.png $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/
292         -strip $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/hikingdiary.png
293
294
295 uninstall_icon48:  FORCE
296         -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/hikingdiary.png
297         -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/ 
298
299
300 install_icon64: first FORCE
301         @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ 
302         -$(INSTALL_PROGRAM) /home/ari/code/hikingdiary/res/icon/64x64/hikingdiary.png $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/
303         -strip $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/hikingdiary.png
304
305
306 uninstall_icon64:  FORCE
307         -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/hikingdiary.png
308         -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ 
309
310
311 install_target: first FORCE
312         @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/bin/ || $(MKDIR) $(INSTALL_ROOT)/usr/bin/ 
313         -$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
314         -$(STRIP) "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
315
316 uninstall_target:  FORCE
317         -$(DEL_FILE) "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
318         -$(DEL_DIR) $(INSTALL_ROOT)/usr/bin/ 
319
320
321 install:  install_desktop install_icon26 install_icon48 install_icon64 install_target  FORCE
322
323 uninstall: uninstall_desktop uninstall_icon26 uninstall_icon48 uninstall_icon64 uninstall_target   FORCE
324
325 FORCE:
326