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