X-Git-Url: http://git.maemo.org/git/?p=groove;a=blobdiff_plain;f=Makefile;h=ac47886a37cb77b6f6e5133fceecaed62c7abe8a;hp=73d0690336eed8a1e43a91023c6318beadc58db1;hb=7c34bb558c0059ec85db778fa5c2f8c0df9e695e;hpb=07538fcc6f50357245aec47f12da46d1cc4111dd diff --git a/Makefile b/Makefile index 73d0690..ac47886 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ ############################################################################# # Makefile for building: groove -# Generated by qmake (2.01a) (Qt 4.6.2) on: Fri Jul 2 02:52:37 2010 +# Generated by qmake (2.01a) (Qt 4.7.0) on: Thu Jan 6 02:27:50 2011 # Project: Groove.pro # Template: app -# Command: /usr/bin/qmake -unix -o Makefile Groove.pro +# Command: /usr/bin/qmake -o Makefile Groove.pro ############################################################################# ####### Compiler, tools and options @@ -13,7 +13,7 @@ CXX = g++ DEFINES = -DDATADIR="/usr/share" -DPKGDATADIR="" -DQT_NO_DEBUG -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES) CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES) -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/phonon -I/usr/include/qt4 -I. -I/usr/include/qjson -I/usr/include/qt4/phonon_compat -I. +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/phonon -I/usr/include/qt4 -I. -I/usr/include/qjson -I/usr/include -I/usr/include/qt4/phonon_compat -I. -I. LINK = g++ LFLAGS = -Wl,-O1 LIBS = $(SUBLIBS) -L/usr/lib -L/usr/local/lib -lqjson -lphonon -lQtGui -lQtNetwork -lQtCore -lpthread @@ -50,13 +50,24 @@ SOURCES = main.cpp \ streamio.cpp \ playlist.cpp \ downloadmanager.cpp \ - grooveprogressbar.cpp moc_groove.cpp \ + grooveprogressbar.cpp \ + topbar.cpp \ + bottombar.cpp \ + vkb.cpp \ + searchresults.cpp \ + plistwin.cpp moc_groove.cpp \ moc_gscom.cpp \ moc_splayer.cpp \ moc_streamio.cpp \ moc_playlist.cpp \ moc_downloadmanager.cpp \ - moc_grooveprogressbar.cpp + moc_grooveprogressbar.cpp \ + moc_topbar.cpp \ + moc_bottombar.cpp \ + moc_vkb.cpp \ + moc_searchresults.cpp \ + moc_plistwin.cpp \ + qrc_res.cpp OBJECTS = main.o \ groove.o \ gscom.o \ @@ -65,17 +76,29 @@ OBJECTS = main.o \ playlist.o \ downloadmanager.o \ grooveprogressbar.o \ + topbar.o \ + bottombar.o \ + vkb.o \ + searchresults.o \ + plistwin.o \ moc_groove.o \ moc_gscom.o \ moc_splayer.o \ moc_streamio.o \ moc_playlist.o \ moc_downloadmanager.o \ - moc_grooveprogressbar.o + moc_grooveprogressbar.o \ + moc_topbar.o \ + moc_bottombar.o \ + moc_vkb.o \ + moc_searchresults.o \ + moc_plistwin.o \ + qrc_res.o DIST = /usr/share/qt4/mkspecs/common/g++.conf \ /usr/share/qt4/mkspecs/common/unix.conf \ /usr/share/qt4/mkspecs/common/linux.conf \ /usr/share/qt4/mkspecs/qconfig.pri \ + /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \ /usr/share/qt4/mkspecs/features/qt_functions.prf \ /usr/share/qt4/mkspecs/features/qt_config.prf \ /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ @@ -120,13 +143,14 @@ first: all all: Makefile $(TARGET) -$(TARGET): $(OBJECTS) +$(TARGET): ui_topbar.h ui_bottombar.h ui_vkb.h ui_searchresults.h $(OBJECTS) $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) Makefile: Groove.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \ /usr/share/qt4/mkspecs/common/unix.conf \ /usr/share/qt4/mkspecs/common/linux.conf \ /usr/share/qt4/mkspecs/qconfig.pri \ + /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \ /usr/share/qt4/mkspecs/features/qt_functions.prf \ /usr/share/qt4/mkspecs/features/qt_config.prf \ /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ @@ -142,15 +166,15 @@ Makefile: Groove.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4 /usr/share/qt4/mkspecs/features/yacc.prf \ /usr/share/qt4/mkspecs/features/lex.prf \ /usr/share/qt4/mkspecs/features/include_source_dir.prf \ - /usr/lib/libphonon.prl \ /usr/lib/libQtGui.prl \ /usr/lib/libQtNetwork.prl \ /usr/lib/libQtCore.prl - $(QMAKE) -unix -o Makefile Groove.pro + $(QMAKE) -o Makefile Groove.pro /usr/share/qt4/mkspecs/common/g++.conf: /usr/share/qt4/mkspecs/common/unix.conf: /usr/share/qt4/mkspecs/common/linux.conf: /usr/share/qt4/mkspecs/qconfig.pri: +/usr/share/qt4/mkspecs/modules/qt_webkit_version.pri: /usr/share/qt4/mkspecs/features/qt_functions.prf: /usr/share/qt4/mkspecs/features/qt_config.prf: /usr/share/qt4/mkspecs/features/exclusive_builds.prf: @@ -166,16 +190,15 @@ Makefile: Groove.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4 /usr/share/qt4/mkspecs/features/yacc.prf: /usr/share/qt4/mkspecs/features/lex.prf: /usr/share/qt4/mkspecs/features/include_source_dir.prf: -/usr/lib/libphonon.prl: /usr/lib/libQtGui.prl: /usr/lib/libQtNetwork.prl: /usr/lib/libQtCore.prl: qmake: FORCE - @$(QMAKE) -unix -o Makefile Groove.pro + @$(QMAKE) -o Makefile Groove.pro dist: @$(CHK_DIR_EXISTS) .tmp/groove1.0.0 || $(MKDIR) .tmp/groove1.0.0 - $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/groove1.0.0/ && $(COPY_FILE) --parents groove.h gscom.h splayer.h streamio.h playlist.h downloadmanager.h grooveprogressbar.h .tmp/groove1.0.0/ && $(COPY_FILE) --parents main.cpp groove.cpp gscom.cpp splayer.cpp streamio.cpp playlist.cpp downloadmanager.cpp grooveprogressbar.cpp .tmp/groove1.0.0/ && (cd `dirname .tmp/groove1.0.0` && $(TAR) groove1.0.0.tar groove1.0.0 && $(COMPRESS) groove1.0.0.tar) && $(MOVE) `dirname .tmp/groove1.0.0`/groove1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/groove1.0.0 + $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/groove1.0.0/ && $(COPY_FILE) --parents groove.h gscom.h splayer.h streamio.h playlist.h downloadmanager.h grooveprogressbar.h topbar.h bottombar.h vkb.h searchresults.h plistwin.h .tmp/groove1.0.0/ && $(COPY_FILE) --parents res.qrc .tmp/groove1.0.0/ && $(COPY_FILE) --parents main.cpp groove.cpp gscom.cpp splayer.cpp streamio.cpp playlist.cpp downloadmanager.cpp grooveprogressbar.cpp topbar.cpp bottombar.cpp vkb.cpp searchresults.cpp plistwin.cpp .tmp/groove1.0.0/ && $(COPY_FILE) --parents topbar.ui bottombar.ui vkb.ui searchresults.ui .tmp/groove1.0.0/ && (cd `dirname .tmp/groove1.0.0` && $(TAR) groove1.0.0.tar groove1.0.0 && $(COMPRESS) groove1.0.0.tar) && $(MOVE) `dirname .tmp/groove1.0.0`/groove1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/groove1.0.0 clean:compiler_clean @@ -190,19 +213,25 @@ distclean: clean -$(DEL_FILE) Makefile +check: first + mocclean: compiler_moc_header_clean compiler_moc_source_clean mocables: compiler_moc_header_make_all compiler_moc_source_make_all -compiler_moc_header_make_all: moc_groove.cpp moc_gscom.cpp moc_splayer.cpp moc_streamio.cpp moc_playlist.cpp moc_downloadmanager.cpp moc_grooveprogressbar.cpp +compiler_moc_header_make_all: moc_groove.cpp moc_gscom.cpp moc_splayer.cpp moc_streamio.cpp moc_playlist.cpp moc_downloadmanager.cpp moc_grooveprogressbar.cpp moc_topbar.cpp moc_bottombar.cpp moc_vkb.cpp moc_searchresults.cpp moc_plistwin.cpp compiler_moc_header_clean: - -$(DEL_FILE) moc_groove.cpp moc_gscom.cpp moc_splayer.cpp moc_streamio.cpp moc_playlist.cpp moc_downloadmanager.cpp moc_grooveprogressbar.cpp + -$(DEL_FILE) moc_groove.cpp moc_gscom.cpp moc_splayer.cpp moc_streamio.cpp moc_playlist.cpp moc_downloadmanager.cpp moc_grooveprogressbar.cpp moc_topbar.cpp moc_bottombar.cpp moc_vkb.cpp moc_searchresults.cpp moc_plistwin.cpp moc_groove.cpp: gscom.h \ splayer.h \ streamio.h \ grooveprogressbar.h \ qmaemo5rotator.h \ playlist.h \ + topbar.h \ + vkb.h \ + bottombar.h \ + plistwin.h \ groove.h /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) groove.h -o moc_groove.cpp @@ -238,22 +267,72 @@ moc_grooveprogressbar.cpp: qmaemo5rotator.h \ grooveprogressbar.h /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) grooveprogressbar.h -o moc_grooveprogressbar.cpp -compiler_rcc_make_all: +moc_topbar.cpp: vkb.h \ + topbar.h + /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) topbar.h -o moc_topbar.cpp + +moc_bottombar.cpp: bottombar.h + /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) bottombar.h -o moc_bottombar.cpp + +moc_vkb.cpp: vkb.h + /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) vkb.h -o moc_vkb.cpp + +moc_searchresults.cpp: searchresults.h + /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) searchresults.h -o moc_searchresults.cpp + +moc_plistwin.cpp: playlist.h \ + gscom.h \ + plistwin.h + /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) plistwin.h -o moc_plistwin.cpp + +compiler_rcc_make_all: qrc_res.cpp compiler_rcc_clean: + -$(DEL_FILE) qrc_res.cpp +qrc_res.cpp: res.qrc \ + general_fullsize.png \ + wmTaskModified.png \ + groove.png \ + general_search.png \ + general_add.png \ + wmTaskSwitcherIconPressed.png \ + camera_camera_setting.png \ + general_forward.png \ + camera_video_pause.png \ + general_close.png \ + general_foldertree.png \ + camera_video_stop.png \ + wmTaskSwitcherIcon.png \ + general_back.png \ + wmTaskSwitcherIconHighlight.png + /usr/bin/rcc -name res res.qrc -o qrc_res.cpp + compiler_image_collection_make_all: qmake_image_collection.cpp compiler_image_collection_clean: -$(DEL_FILE) qmake_image_collection.cpp compiler_moc_source_make_all: compiler_moc_source_clean: -compiler_uic_make_all: +compiler_uic_make_all: ui_topbar.h ui_bottombar.h ui_vkb.h ui_searchresults.h compiler_uic_clean: + -$(DEL_FILE) ui_topbar.h ui_bottombar.h ui_vkb.h ui_searchresults.h +ui_topbar.h: topbar.ui + /usr/bin/uic-qt4 topbar.ui -o ui_topbar.h + +ui_bottombar.h: bottombar.ui + /usr/bin/uic-qt4 bottombar.ui -o ui_bottombar.h + +ui_vkb.h: vkb.ui + /usr/bin/uic-qt4 vkb.ui -o ui_vkb.h + +ui_searchresults.h: searchresults.ui + /usr/bin/uic-qt4 searchresults.ui -o ui_searchresults.h + compiler_yacc_decl_make_all: compiler_yacc_decl_clean: compiler_yacc_impl_make_all: compiler_yacc_impl_clean: compiler_lex_make_all: compiler_lex_clean: -compiler_clean: compiler_moc_header_clean +compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_uic_clean ####### Compile @@ -263,7 +342,11 @@ main.o: main.cpp groove.h \ streamio.h \ grooveprogressbar.h \ qmaemo5rotator.h \ - playlist.h + playlist.h \ + topbar.h \ + vkb.h \ + bottombar.h \ + plistwin.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp groove.o: groove.cpp groove.h \ @@ -272,7 +355,11 @@ groove.o: groove.cpp groove.h \ streamio.h \ grooveprogressbar.h \ qmaemo5rotator.h \ - playlist.h + playlist.h \ + topbar.h \ + vkb.h \ + bottombar.h \ + plistwin.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o groove.o groove.cpp gscom.o: gscom.cpp gscom.h @@ -305,6 +392,28 @@ grooveprogressbar.o: grooveprogressbar.cpp grooveprogressbar.h \ qmaemo5rotator.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o grooveprogressbar.o grooveprogressbar.cpp +topbar.o: topbar.cpp topbar.h \ + vkb.h \ + ui_topbar.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o topbar.o topbar.cpp + +bottombar.o: bottombar.cpp bottombar.h \ + ui_bottombar.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o bottombar.o bottombar.cpp + +vkb.o: vkb.cpp vkb.h \ + ui_vkb.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o vkb.o vkb.cpp + +searchresults.o: searchresults.cpp searchresults.h \ + ui_searchresults.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o searchresults.o searchresults.cpp + +plistwin.o: plistwin.cpp plistwin.h \ + playlist.h \ + gscom.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o plistwin.o plistwin.cpp + moc_groove.o: moc_groove.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_groove.o moc_groove.cpp @@ -326,6 +435,24 @@ moc_downloadmanager.o: moc_downloadmanager.cpp moc_grooveprogressbar.o: moc_grooveprogressbar.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_grooveprogressbar.o moc_grooveprogressbar.cpp +moc_topbar.o: moc_topbar.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_topbar.o moc_topbar.cpp + +moc_bottombar.o: moc_bottombar.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_bottombar.o moc_bottombar.cpp + +moc_vkb.o: moc_vkb.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_vkb.o moc_vkb.cpp + +moc_searchresults.o: moc_searchresults.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_searchresults.o moc_searchresults.cpp + +moc_plistwin.o: moc_plistwin.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_plistwin.o moc_plistwin.cpp + +qrc_res.o: qrc_res.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_res.o qrc_res.cpp + ####### Install install_target: first FORCE @@ -338,19 +465,9 @@ uninstall_target: FORCE -$(DEL_DIR) $(INSTALL_ROOT)/usr/bin/ -install_desktop: first FORCE - @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/applications/hildon/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/applications/hildon/ - -$(INSTALL_FILE) /scratchbox/users/eli/home/eli/qt4/Groove/groove.desktop $(INSTALL_ROOT)/usr/share/applications/hildon/ - - -uninstall_desktop: FORCE - -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/applications/hildon/groove.desktop - -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/applications/hildon/ - - install_icon64: first FORCE @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ - -$(INSTALL_FILE) /scratchbox/users/eli/home/eli/qt4/Groove/groove.png $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ + -$(INSTALL_FILE) /home/eli/Projects/groove/groove.png $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ uninstall_icon64: FORCE @@ -358,9 +475,9 @@ uninstall_icon64: FORCE -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ -install: install_target install_desktop install_icon64 FORCE +install: install_target install_icon64 FORCE -uninstall: uninstall_target uninstall_desktop uninstall_icon64 FORCE +uninstall: uninstall_target uninstall_icon64 FORCE FORCE: