UIname added
[mardrone] / mardrone / Makefile
1 #############################################################################
2 # Makefile for building: mardrone
3 # Generated by qmake (2.01a) (Qt 4.7.4) on: Wed Jan 25 14:08:11 2012
4 # Project:  mardrone.pro
5 # Template: app
6 # Command: /usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ -o Makefile mardrone.pro
7 #############################################################################
8
9 ####### Compiler, tools and options
10
11 CC            = gcc
12 CXX           = g++
13 DEFINES       = -DQT_WEBKIT -DHAVE_SDL -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
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/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4 -Idronelib -Igauges -IARDrone_SDK_Version_1_8_20110726/ARDroneLib/Soft/Common -IARDrone_SDK_Version_1_8_20110726/ARDroneLib/VP_SDK -IARDrone_SDK_Version_1_8_20110726/ARDroneLib/VP_SDK/VP_Os/linux -IARDrone_SDK_Version_1_8_20110726/ARDroneLib/VP_SDK/VP_Os -IARDrone_SDK_Version_1_8_20110726/ARDroneLib/Soft/Lib -IARDrone_SDK_Version_1_8_20110726/ARDroneLib/VLIB -IARDrone_SDK_Version_1_8_20110726/ARDroneLib -I.
17 LINK          = g++
18 LFLAGS        = -Wl,-O1
19 LIBS          = $(SUBLIBS)  -L/usr/lib/i386-linux-gnu -lSDL -lQtDeclarative -lQtGui -lQtNetwork -lQtCore -lpthread 
20 AR            = ar cqs
21 RANLIB        = 
22 QMAKE         = /usr/bin/qmake-qt4
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                 dronelib/dronecontrol.cpp \
48                 dronelib/navdata.cpp \
49                 dronelib/video.cpp \
50                 gauges/gauge.cpp \
51                 gauges/gaugelabel.cpp \
52                 gauges/gaugetape.cpp \
53                 gauges/gaugehorizon.cpp \
54                 dronelib/joystick.cpp \
55                 qdeclarativetoucharea.cpp moc_dronecontrol.cpp \
56                 moc_navdata.cpp \
57                 moc_video.cpp \
58                 moc_gauge.cpp \
59                 moc_gaugelabel.cpp \
60                 moc_gaugetape.cpp \
61                 moc_gaugehorizon.cpp \
62                 moc_joystick.cpp \
63                 moc_qdeclarativetoucharea.cpp \
64                 qrc_ardrone.cpp
65 OBJECTS       = main.o \
66                 dronecontrol.o \
67                 navdata.o \
68                 video.o \
69                 gauge.o \
70                 gaugelabel.o \
71                 gaugetape.o \
72                 gaugehorizon.o \
73                 joystick.o \
74                 qdeclarativetoucharea.o \
75                 moc_dronecontrol.o \
76                 moc_navdata.o \
77                 moc_video.o \
78                 moc_gauge.o \
79                 moc_gaugelabel.o \
80                 moc_gaugetape.o \
81                 moc_gaugehorizon.o \
82                 moc_joystick.o \
83                 moc_qdeclarativetoucharea.o \
84                 qrc_ardrone.o
85 DIST          = /usr/share/qt4/mkspecs/common/g++.conf \
86                 /usr/share/qt4/mkspecs/common/unix.conf \
87                 /usr/share/qt4/mkspecs/common/linux.conf \
88                 /usr/share/qt4/mkspecs/qconfig.pri \
89                 /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \
90                 /usr/share/qt4/mkspecs/features/qt_functions.prf \
91                 /usr/share/qt4/mkspecs/features/qt_config.prf \
92                 /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
93                 /usr/share/qt4/mkspecs/features/default_pre.prf \
94                 /usr/share/qt4/mkspecs/features/release.prf \
95                 /usr/share/qt4/mkspecs/features/default_post.prf \
96                 /usr/share/qt4/mkspecs/features/link_pkgconfig.prf \
97                 /usr/share/qt4/mkspecs/features/warn_on.prf \
98                 /usr/share/qt4/mkspecs/features/qt.prf \
99                 /usr/share/qt4/mkspecs/features/unix/thread.prf \
100                 /usr/share/qt4/mkspecs/features/moc.prf \
101                 /usr/share/qt4/mkspecs/features/resources.prf \
102                 /usr/share/qt4/mkspecs/features/uic.prf \
103                 /usr/share/qt4/mkspecs/features/yacc.prf \
104                 /usr/share/qt4/mkspecs/features/lex.prf \
105                 /usr/share/qt4/mkspecs/features/include_source_dir.prf \
106                 mardrone.pro
107 QMAKE_TARGET  = mardrone
108 DESTDIR       = 
109 TARGET        = mardrone
110
111 first: all
112 ####### Implicit rules
113
114 .SUFFIXES: .o .c .cpp .cc .cxx .C
115
116 .cpp.o:
117         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
118
119 .cc.o:
120         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
121
122 .cxx.o:
123         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
124
125 .C.o:
126         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
127
128 .c.o:
129         $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
130
131 ####### Build rules
132
133 all: Makefile $(TARGET)
134
135 $(TARGET):  $(OBJECTS)  
136         $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
137
138 Makefile: mardrone.pro  /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \
139                 /usr/share/qt4/mkspecs/common/unix.conf \
140                 /usr/share/qt4/mkspecs/common/linux.conf \
141                 /usr/share/qt4/mkspecs/qconfig.pri \
142                 /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \
143                 /usr/share/qt4/mkspecs/features/qt_functions.prf \
144                 /usr/share/qt4/mkspecs/features/qt_config.prf \
145                 /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
146                 /usr/share/qt4/mkspecs/features/default_pre.prf \
147                 /usr/share/qt4/mkspecs/features/release.prf \
148                 /usr/share/qt4/mkspecs/features/default_post.prf \
149                 /usr/share/qt4/mkspecs/features/link_pkgconfig.prf \
150                 /usr/share/qt4/mkspecs/features/warn_on.prf \
151                 /usr/share/qt4/mkspecs/features/qt.prf \
152                 /usr/share/qt4/mkspecs/features/unix/thread.prf \
153                 /usr/share/qt4/mkspecs/features/moc.prf \
154                 /usr/share/qt4/mkspecs/features/resources.prf \
155                 /usr/share/qt4/mkspecs/features/uic.prf \
156                 /usr/share/qt4/mkspecs/features/yacc.prf \
157                 /usr/share/qt4/mkspecs/features/lex.prf \
158                 /usr/share/qt4/mkspecs/features/include_source_dir.prf \
159                 /usr/lib/i386-linux-gnu/libQtDeclarative.prl \
160                 /usr/lib/i386-linux-gnu/libQtGui.prl \
161                 /usr/lib/i386-linux-gnu/libQtNetwork.prl \
162                 /usr/lib/i386-linux-gnu/libQtCore.prl
163         $(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -o Makefile mardrone.pro
164 /usr/share/qt4/mkspecs/common/g++.conf:
165 /usr/share/qt4/mkspecs/common/unix.conf:
166 /usr/share/qt4/mkspecs/common/linux.conf:
167 /usr/share/qt4/mkspecs/qconfig.pri:
168 /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri:
169 /usr/share/qt4/mkspecs/features/qt_functions.prf:
170 /usr/share/qt4/mkspecs/features/qt_config.prf:
171 /usr/share/qt4/mkspecs/features/exclusive_builds.prf:
172 /usr/share/qt4/mkspecs/features/default_pre.prf:
173 /usr/share/qt4/mkspecs/features/release.prf:
174 /usr/share/qt4/mkspecs/features/default_post.prf:
175 /usr/share/qt4/mkspecs/features/link_pkgconfig.prf:
176 /usr/share/qt4/mkspecs/features/warn_on.prf:
177 /usr/share/qt4/mkspecs/features/qt.prf:
178 /usr/share/qt4/mkspecs/features/unix/thread.prf:
179 /usr/share/qt4/mkspecs/features/moc.prf:
180 /usr/share/qt4/mkspecs/features/resources.prf:
181 /usr/share/qt4/mkspecs/features/uic.prf:
182 /usr/share/qt4/mkspecs/features/yacc.prf:
183 /usr/share/qt4/mkspecs/features/lex.prf:
184 /usr/share/qt4/mkspecs/features/include_source_dir.prf:
185 /usr/lib/i386-linux-gnu/libQtDeclarative.prl:
186 /usr/lib/i386-linux-gnu/libQtGui.prl:
187 /usr/lib/i386-linux-gnu/libQtNetwork.prl:
188 /usr/lib/i386-linux-gnu/libQtCore.prl:
189 qmake:  FORCE
190         @$(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -o Makefile mardrone.pro
191
192 dist: 
193         @$(CHK_DIR_EXISTS) .tmp/mardrone1.0.0 || $(MKDIR) .tmp/mardrone1.0.0 
194         $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/mardrone1.0.0/ && $(COPY_FILE) --parents dronelib/dronecontrol.h dronelib/navdata.h dronelib/video.h gauges/gauge.h gauges/gaugelabel.h gauges/gaugetape.h gauges/gaugehorizon.h dronelib/joystick.h qdeclarativetoucharea.h .tmp/mardrone1.0.0/ && $(COPY_FILE) --parents ardrone.qrc .tmp/mardrone1.0.0/ && $(COPY_FILE) --parents main.cpp dronelib/dronecontrol.cpp dronelib/navdata.cpp dronelib/video.cpp gauges/gauge.cpp gauges/gaugelabel.cpp gauges/gaugetape.cpp gauges/gaugehorizon.cpp dronelib/joystick.cpp qdeclarativetoucharea.cpp .tmp/mardrone1.0.0/ && (cd `dirname .tmp/mardrone1.0.0` && $(TAR) mardrone1.0.0.tar mardrone1.0.0 && $(COMPRESS) mardrone1.0.0.tar) && $(MOVE) `dirname .tmp/mardrone1.0.0`/mardrone1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/mardrone1.0.0
195
196
197 clean:compiler_clean 
198         -$(DEL_FILE) $(OBJECTS)
199         -$(DEL_FILE) *~ core *.core
200
201
202 ####### Sub-libraries
203
204 distclean: clean
205         -$(DEL_FILE) $(TARGET) 
206         -$(DEL_FILE) Makefile
207
208
209 check: first
210
211 mocclean: compiler_moc_header_clean compiler_moc_source_clean
212
213 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
214
215 compiler_moc_header_make_all: moc_dronecontrol.cpp moc_navdata.cpp moc_video.cpp moc_gauge.cpp moc_gaugelabel.cpp moc_gaugetape.cpp moc_gaugehorizon.cpp moc_joystick.cpp moc_qdeclarativetoucharea.cpp
216 compiler_moc_header_clean:
217         -$(DEL_FILE) moc_dronecontrol.cpp moc_navdata.cpp moc_video.cpp moc_gauge.cpp moc_gaugelabel.cpp moc_gaugetape.cpp moc_gaugehorizon.cpp moc_joystick.cpp moc_qdeclarativetoucharea.cpp
218 moc_dronecontrol.cpp: dronelib/dronecontrol.h
219         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) dronelib/dronecontrol.h -o moc_dronecontrol.cpp
220
221 moc_navdata.cpp: dronelib/navdata.h
222         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) dronelib/navdata.h -o moc_navdata.cpp
223
224 moc_video.cpp: dronelib/dronecontrol.h \
225                 dronelib/video.h
226         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) dronelib/video.h -o moc_video.cpp
227
228 moc_gauge.cpp: gauges/gauge.h
229         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) gauges/gauge.h -o moc_gauge.cpp
230
231 moc_gaugelabel.cpp: gauges/gauge.h \
232                 gauges/gaugelabel.h
233         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) gauges/gaugelabel.h -o moc_gaugelabel.cpp
234
235 moc_gaugetape.cpp: gauges/gauge.h \
236                 gauges/gaugetape.h
237         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) gauges/gaugetape.h -o moc_gaugetape.cpp
238
239 moc_gaugehorizon.cpp: gauges/gauge.h \
240                 gauges/gaugehorizon.h
241         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) gauges/gaugehorizon.h -o moc_gaugehorizon.cpp
242
243 moc_joystick.cpp: dronelib/joystick.h
244         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) dronelib/joystick.h -o moc_joystick.cpp
245
246 moc_qdeclarativetoucharea.cpp: qdeclarativetoucharea.h
247         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) qdeclarativetoucharea.h -o moc_qdeclarativetoucharea.cpp
248
249 compiler_rcc_make_all: qrc_ardrone.cpp
250 compiler_rcc_clean:
251         -$(DEL_FILE) qrc_ardrone.cpp
252 qrc_ardrone.cpp: ardrone.qrc \
253                 gauges/ati1.png \
254                 gauges/HeadingGauge.qml \
255                 ConfigDialogDesktop.qml \
256                 ardrone_harmattan.qml \
257                 gauges/AltGauge.qml \
258                 gear32x32.png \
259                 gauges/EfisPFD.qml \
260                 gauges/hdg2.png \
261                 gauges/glareshield1.png \
262                 joyknob.png \
263                 CalibrateDialog.qml \
264                 BarGauge.qml \
265                 gauges/ati6.png \
266                 gauges/ati2.png \
267                 gauges/needle2.png \
268                 ardrone_symbian.qml \
269                 JoyStickTouch.qml \
270                 ConfigDialogSymbian.qml \
271                 JoyStickCalibrator.qml \
272                 CalibrateDialogDesktop.qml \
273                 gauges/ati3.png \
274                 gauges/needle1.png \
275                 gauges/AttitudeGauge.qml \
276                 JoyStickIndicator.qml \
277                 joybox.png \
278                 ardrone_desktop.qml \
279                 gauges/ati4.png \
280                 gauges/bezel.png \
281                 gauges/alt2.png \
282                 ConfigDialog.qml \
283                 gauges/hdg1.png \
284                 gauges/ati5.png \
285                 JoyStickCalibratorDesktop.qml \
286                 gauges/EfisPFD.qml \
287                 gauges/AltGauge.qml \
288                 gauges/qmldir
289         /usr/bin/rcc -name ardrone ardrone.qrc -o qrc_ardrone.cpp
290
291 compiler_image_collection_make_all: qmake_image_collection.cpp
292 compiler_image_collection_clean:
293         -$(DEL_FILE) qmake_image_collection.cpp
294 compiler_moc_source_make_all:
295 compiler_moc_source_clean:
296 compiler_uic_make_all:
297 compiler_uic_clean:
298 compiler_yacc_decl_make_all:
299 compiler_yacc_decl_clean:
300 compiler_yacc_impl_make_all:
301 compiler_yacc_impl_clean:
302 compiler_lex_make_all:
303 compiler_lex_clean:
304 compiler_clean: compiler_moc_header_clean compiler_rcc_clean 
305
306 ####### Compile
307
308 main.o: main.cpp qdeclarativetoucharea.h
309         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
310
311 dronecontrol.o: dronelib/dronecontrol.cpp dronelib/dronecontrol.h \
312                 dronelib/navdata.h
313         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o dronecontrol.o dronelib/dronecontrol.cpp
314
315 navdata.o: dronelib/navdata.cpp dronelib/navdata.h
316         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o navdata.o dronelib/navdata.cpp
317
318 video.o: dronelib/video.cpp dronelib/video.h \
319                 dronelib/dronecontrol.h
320         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o video.o dronelib/video.cpp
321
322 gauge.o: gauges/gauge.cpp gauges/gauge.h
323         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o gauge.o gauges/gauge.cpp
324
325 gaugelabel.o: gauges/gaugelabel.cpp gauges/gaugelabel.h \
326                 gauges/gauge.h
327         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o gaugelabel.o gauges/gaugelabel.cpp
328
329 gaugetape.o: gauges/gaugetape.cpp gauges/gaugetape.h \
330                 gauges/gauge.h
331         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o gaugetape.o gauges/gaugetape.cpp
332
333 gaugehorizon.o: gauges/gaugehorizon.cpp gauges/gaugehorizon.h \
334                 gauges/gauge.h
335         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o gaugehorizon.o gauges/gaugehorizon.cpp
336
337 joystick.o: dronelib/joystick.cpp dronelib/joystick.h
338         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o joystick.o dronelib/joystick.cpp
339
340 qdeclarativetoucharea.o: qdeclarativetoucharea.cpp qdeclarativetoucharea.h
341         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qdeclarativetoucharea.o qdeclarativetoucharea.cpp
342
343 moc_dronecontrol.o: moc_dronecontrol.cpp 
344         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_dronecontrol.o moc_dronecontrol.cpp
345
346 moc_navdata.o: moc_navdata.cpp 
347         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_navdata.o moc_navdata.cpp
348
349 moc_video.o: moc_video.cpp 
350         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_video.o moc_video.cpp
351
352 moc_gauge.o: moc_gauge.cpp 
353         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_gauge.o moc_gauge.cpp
354
355 moc_gaugelabel.o: moc_gaugelabel.cpp 
356         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_gaugelabel.o moc_gaugelabel.cpp
357
358 moc_gaugetape.o: moc_gaugetape.cpp 
359         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_gaugetape.o moc_gaugetape.cpp
360
361 moc_gaugehorizon.o: moc_gaugehorizon.cpp 
362         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_gaugehorizon.o moc_gaugehorizon.cpp
363
364 moc_joystick.o: moc_joystick.cpp 
365         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_joystick.o moc_joystick.cpp
366
367 moc_qdeclarativetoucharea.o: moc_qdeclarativetoucharea.cpp 
368         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qdeclarativetoucharea.o moc_qdeclarativetoucharea.cpp
369
370 qrc_ardrone.o: qrc_ardrone.cpp 
371         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_ardrone.o qrc_ardrone.cpp
372
373 ####### Install
374
375 install_target: first FORCE
376         @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/bin/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/bin/ 
377         -$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
378         -$(STRIP) "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
379
380 uninstall_target:  FORCE
381         -$(DEL_FILE) "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
382         -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/bin/ 
383
384
385 install_desktopfile: first FORCE
386         @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/applications/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/applications/ 
387         -$(INSTALL_FILE) /mnt/hgfs/scratchbox/harmattan/mardrone/mardrone/mardrone.desktop $(INSTALL_ROOT)/usr/share/applications/
388
389
390 uninstall_desktopfile:  FORCE
391         -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/applications/mardrone.desktop
392         -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/applications/ 
393
394
395 install:  install_target install_desktopfile  FORCE
396
397 uninstall: uninstall_target uninstall_desktopfile   FORCE
398
399 FORCE:
400