Added lyricsDownloaderManager, moved AZLyricsDownloader to a new file
[maelyrica:maelyrica.git] / Makefile
1 #############################################################################
2 # Makefile for building: maelyrica
3 # Generated by qmake (2.01a) (Qt 4.7.2) on: Fri Aug 10 14:37:55 2012
4 # Project:  maelyrica.pro
5 # Template: app
6 # Command: /usr/bin/qmake -o Makefile maelyrica.pro
7 #############################################################################
8
9 ####### Compiler, tools and options
10
11 CC            = gcc
12 CXX           = g++
13 DEFINES       = -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
14 CFLAGS        = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
15 CXXFLAGS      = -pipe -g -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        = 
19 LIBS          = $(SUBLIBS)  -L/usr/lib -lcurl -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                 lyricsDownloader.cpp \
48                 settings.cpp \
49                 qmlapplicationviewer/qmlapplicationviewer.cpp moc_qmlapplicationviewer.cpp \
50                 moc_lyricsDownloader.cpp \
51                 moc_settings.cpp
52 OBJECTS       = main.o \
53                 lyricsDownloader.o \
54                 settings.o \
55                 qmlapplicationviewer.o \
56                 moc_qmlapplicationviewer.o \
57                 moc_lyricsDownloader.o \
58                 moc_settings.o
59 DIST          = /usr/share/qt4/mkspecs/common/g++.conf \
60                 /usr/share/qt4/mkspecs/common/unix.conf \
61                 /usr/share/qt4/mkspecs/common/linux.conf \
62                 /usr/share/qt4/mkspecs/qconfig.pri \
63                 /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \
64                 /usr/share/qt4/mkspecs/features/qt_functions.prf \
65                 /usr/share/qt4/mkspecs/features/qt_config.prf \
66                 /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
67                 /usr/share/qt4/mkspecs/features/default_pre.prf \
68                 qmlapplicationviewer/qmlapplicationviewer.pri \
69                 /usr/share/qt4/mkspecs/features/debug.prf \
70                 /usr/share/qt4/mkspecs/features/default_post.prf \
71                 /usr/share/qt4/mkspecs/features/warn_on.prf \
72                 /usr/share/qt4/mkspecs/features/qt.prf \
73                 /usr/share/qt4/mkspecs/features/unix/thread.prf \
74                 /usr/share/qt4/mkspecs/features/moc.prf \
75                 /usr/share/qt4/mkspecs/features/resources.prf \
76                 /usr/share/qt4/mkspecs/features/uic.prf \
77                 /usr/share/qt4/mkspecs/features/yacc.prf \
78                 /usr/share/qt4/mkspecs/features/lex.prf \
79                 /usr/share/qt4/mkspecs/features/include_source_dir.prf \
80                 maelyrica.pro
81 QMAKE_TARGET  = maelyrica
82 DESTDIR       = 
83 TARGET        = maelyrica
84
85 first: all
86 ####### Implicit rules
87
88 .SUFFIXES: .o .c .cpp .cc .cxx .C
89
90 .cpp.o:
91         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
92
93 .cc.o:
94         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
95
96 .cxx.o:
97         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
98
99 .C.o:
100         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
101
102 .c.o:
103         $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
104
105 ####### Build rules
106
107 all: Makefile $(TARGET)
108
109 $(TARGET):  $(OBJECTS)  
110         $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
111
112 Makefile: maelyrica.pro  /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \
113                 /usr/share/qt4/mkspecs/common/unix.conf \
114                 /usr/share/qt4/mkspecs/common/linux.conf \
115                 /usr/share/qt4/mkspecs/qconfig.pri \
116                 /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \
117                 /usr/share/qt4/mkspecs/features/qt_functions.prf \
118                 /usr/share/qt4/mkspecs/features/qt_config.prf \
119                 /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
120                 /usr/share/qt4/mkspecs/features/default_pre.prf \
121                 qmlapplicationviewer/qmlapplicationviewer.pri \
122                 /usr/share/qt4/mkspecs/features/debug.prf \
123                 /usr/share/qt4/mkspecs/features/default_post.prf \
124                 /usr/share/qt4/mkspecs/features/warn_on.prf \
125                 /usr/share/qt4/mkspecs/features/qt.prf \
126                 /usr/share/qt4/mkspecs/features/unix/thread.prf \
127                 /usr/share/qt4/mkspecs/features/moc.prf \
128                 /usr/share/qt4/mkspecs/features/resources.prf \
129                 /usr/share/qt4/mkspecs/features/uic.prf \
130                 /usr/share/qt4/mkspecs/features/yacc.prf \
131                 /usr/share/qt4/mkspecs/features/lex.prf \
132                 /usr/share/qt4/mkspecs/features/include_source_dir.prf \
133                 /usr/lib/libQtDeclarative.prl \
134                 /usr/lib/libQtGui.prl \
135                 /usr/lib/libQtCore.prl
136         $(QMAKE) -o Makefile maelyrica.pro
137 /usr/share/qt4/mkspecs/common/g++.conf:
138 /usr/share/qt4/mkspecs/common/unix.conf:
139 /usr/share/qt4/mkspecs/common/linux.conf:
140 /usr/share/qt4/mkspecs/qconfig.pri:
141 /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri:
142 /usr/share/qt4/mkspecs/features/qt_functions.prf:
143 /usr/share/qt4/mkspecs/features/qt_config.prf:
144 /usr/share/qt4/mkspecs/features/exclusive_builds.prf:
145 /usr/share/qt4/mkspecs/features/default_pre.prf:
146 qmlapplicationviewer/qmlapplicationviewer.pri:
147 /usr/share/qt4/mkspecs/features/debug.prf:
148 /usr/share/qt4/mkspecs/features/default_post.prf:
149 /usr/share/qt4/mkspecs/features/warn_on.prf:
150 /usr/share/qt4/mkspecs/features/qt.prf:
151 /usr/share/qt4/mkspecs/features/unix/thread.prf:
152 /usr/share/qt4/mkspecs/features/moc.prf:
153 /usr/share/qt4/mkspecs/features/resources.prf:
154 /usr/share/qt4/mkspecs/features/uic.prf:
155 /usr/share/qt4/mkspecs/features/yacc.prf:
156 /usr/share/qt4/mkspecs/features/lex.prf:
157 /usr/share/qt4/mkspecs/features/include_source_dir.prf:
158 /usr/lib/libQtDeclarative.prl:
159 /usr/lib/libQtGui.prl:
160 /usr/lib/libQtCore.prl:
161 qmake:  FORCE
162         @$(QMAKE) -o Makefile maelyrica.pro
163
164 dist: 
165         @$(CHK_DIR_EXISTS) .tmp/maelyrica1.0.0 || $(MKDIR) .tmp/maelyrica1.0.0 
166         $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/maelyrica1.0.0/ && $(COPY_FILE) --parents qmlapplicationviewer/qmlapplicationviewer.h lyricsDownloader.h settings.h .tmp/maelyrica1.0.0/ && $(COPY_FILE) --parents main.cpp lyricsDownloader.cpp settings.cpp qmlapplicationviewer/qmlapplicationviewer.cpp .tmp/maelyrica1.0.0/ && (cd `dirname .tmp/maelyrica1.0.0` && $(TAR) maelyrica1.0.0.tar maelyrica1.0.0 && $(COMPRESS) maelyrica1.0.0.tar) && $(MOVE) `dirname .tmp/maelyrica1.0.0`/maelyrica1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/maelyrica1.0.0
167
168
169 clean:compiler_clean 
170         -$(DEL_FILE) $(OBJECTS)
171         -$(DEL_FILE) *~ core *.core
172
173
174 ####### Sub-libraries
175
176 distclean: clean
177         -$(DEL_FILE) $(TARGET) 
178         -$(DEL_FILE) Makefile
179
180
181 check: first
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_qmlapplicationviewer.cpp moc_lyricsDownloader.cpp moc_settings.cpp
188 compiler_moc_header_clean:
189         -$(DEL_FILE) moc_qmlapplicationviewer.cpp moc_lyricsDownloader.cpp moc_settings.cpp
190 moc_qmlapplicationviewer.cpp: qmlapplicationviewer/qmlapplicationviewer.h
191         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) qmlapplicationviewer/qmlapplicationviewer.h -o moc_qmlapplicationviewer.cpp
192
193 moc_lyricsDownloader.cpp: settings.h \
194                 lyricsDownloader.h
195         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) lyricsDownloader.h -o moc_lyricsDownloader.cpp
196
197 moc_settings.cpp: settings.h
198         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) settings.h -o moc_settings.cpp
199
200 compiler_rcc_make_all:
201 compiler_rcc_clean:
202 compiler_image_collection_make_all: qmake_image_collection.cpp
203 compiler_image_collection_clean:
204         -$(DEL_FILE) qmake_image_collection.cpp
205 compiler_moc_source_make_all:
206 compiler_moc_source_clean:
207 compiler_uic_make_all:
208 compiler_uic_clean:
209 compiler_yacc_decl_make_all:
210 compiler_yacc_decl_clean:
211 compiler_yacc_impl_make_all:
212 compiler_yacc_impl_clean:
213 compiler_lex_make_all:
214 compiler_lex_clean:
215 compiler_clean: compiler_moc_header_clean 
216
217 ####### Compile
218
219 main.o: main.cpp lyricsDownloader.h \
220                 settings.h \
221                 mainWindow.h
222         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
223
224 lyricsDownloader.o: lyricsDownloader.cpp lyricsDownloader.h \
225                 settings.h
226         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lyricsDownloader.o lyricsDownloader.cpp
227
228 settings.o: settings.cpp settings.h
229         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o settings.o settings.cpp
230
231 qmlapplicationviewer.o: qmlapplicationviewer/qmlapplicationviewer.cpp qmlapplicationviewer/qmlapplicationviewer.h
232         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qmlapplicationviewer.o qmlapplicationviewer/qmlapplicationviewer.cpp
233
234 moc_qmlapplicationviewer.o: moc_qmlapplicationviewer.cpp 
235         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qmlapplicationviewer.o moc_qmlapplicationviewer.cpp
236
237 moc_lyricsDownloader.o: moc_lyricsDownloader.cpp 
238         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lyricsDownloader.o moc_lyricsDownloader.cpp
239
240 moc_settings.o: moc_settings.cpp 
241         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_settings.o moc_settings.cpp
242
243 ####### Install
244
245 install_itemfolder_01: first FORCE
246         @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/opt/maelyrica/qml/ || $(MKDIR) $(INSTALL_ROOT)/opt/maelyrica/qml/ 
247         -$(INSTALL_DIR) /home/marcin/proj/maelyrica/qml/maelyrica $(INSTALL_ROOT)/opt/maelyrica/qml/
248
249
250 uninstall_itemfolder_01:  FORCE
251         -$(DEL_FILE) -r $(INSTALL_ROOT)/opt/maelyrica/qml/maelyrica
252         -$(DEL_DIR) $(INSTALL_ROOT)/opt/maelyrica/qml/ 
253
254
255 install_desktopfile: first FORCE
256         @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/applications/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/applications/ 
257         -$(INSTALL_FILE) /home/marcin/proj/maelyrica/maelyrica.desktop $(INSTALL_ROOT)/usr/share/applications/
258
259
260 uninstall_desktopfile:  FORCE
261         -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/applications/maelyrica.desktop
262         -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/applications/ 
263
264
265 install_icon: first FORCE
266         @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ 
267         -$(INSTALL_FILE) /home/marcin/proj/maelyrica/maelyrica.png $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/
268
269
270 uninstall_icon:  FORCE
271         -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/maelyrica.png
272         -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ 
273
274
275 install_target: first FORCE
276         @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/opt/maelyrica/bin/ || $(MKDIR) $(INSTALL_ROOT)/opt/maelyrica/bin/ 
277         -$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/opt/maelyrica/bin/$(QMAKE_TARGET)"
278
279 uninstall_target:  FORCE
280         -$(DEL_FILE) "$(INSTALL_ROOT)/opt/maelyrica/bin/$(QMAKE_TARGET)"
281         -$(DEL_DIR) $(INSTALL_ROOT)/opt/maelyrica/bin/ 
282
283
284 install:  install_itemfolder_01 install_desktopfile install_icon install_target  FORCE
285
286 uninstall: uninstall_itemfolder_01 uninstall_desktopfile uninstall_icon uninstall_target   FORCE
287
288 FORCE:
289