X-Git-Url: http://git.maemo.org/git/?p=groove;a=blobdiff_plain;f=Makefile;h=73d0690336eed8a1e43a91023c6318beadc58db1;hp=eec53710fbea05c6e5a7706e0f7cec47e6e4d100;hb=59ffc920954b530fd1b867f5edf9d5d910510636;hpb=2023a504eae2a6023e99f4782a501b71455cdc7d diff --git a/Makefile b/Makefile index eec5371..73d0690 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ ############################################################################# # Makefile for building: groove -# Generated by qmake (2.01a) (Qt 4.6.2) on: Fri Jun 4 15:49:00 2010 +# Generated by qmake (2.01a) (Qt 4.6.2) on: Fri Jul 2 02:52:37 2010 # Project: Groove.pro # Template: app # Command: /usr/bin/qmake -unix -o Makefile Groove.pro @@ -10,13 +10,13 @@ CC = gcc CXX = g++ -DEFINES = -DQT_NO_DEBUG -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED +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. LINK = g++ LFLAGS = -Wl,-O1 -LIBS = $(SUBLIBS) -L/usr/lib -L/usr/lib -lqjson -lphonon -lQtGui -lQtNetwork -lQtCore -lpthread +LIBS = $(SUBLIBS) -L/usr/lib -L/usr/local/lib -lqjson -lphonon -lQtGui -lQtNetwork -lQtCore -lpthread AR = ar cqs RANLIB = QMAKE = /usr/bin/qmake @@ -47,19 +47,31 @@ SOURCES = main.cpp \ groove.cpp \ gscom.cpp \ splayer.cpp \ - streamio.cpp moc_groove.cpp \ + streamio.cpp \ + playlist.cpp \ + downloadmanager.cpp \ + grooveprogressbar.cpp moc_groove.cpp \ moc_gscom.cpp \ moc_splayer.cpp \ - moc_streamio.cpp + moc_streamio.cpp \ + moc_playlist.cpp \ + moc_downloadmanager.cpp \ + moc_grooveprogressbar.cpp OBJECTS = main.o \ groove.o \ gscom.o \ splayer.o \ streamio.o \ + playlist.o \ + downloadmanager.o \ + grooveprogressbar.o \ moc_groove.o \ moc_gscom.o \ moc_splayer.o \ - moc_streamio.o + moc_streamio.o \ + moc_playlist.o \ + moc_downloadmanager.o \ + moc_grooveprogressbar.o DIST = /usr/share/qt4/mkspecs/common/g++.conf \ /usr/share/qt4/mkspecs/common/unix.conf \ /usr/share/qt4/mkspecs/common/linux.conf \ @@ -163,7 +175,7 @@ qmake: FORCE 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 .tmp/groove1.0.0/ && $(COPY_FILE) --parents main.cpp groove.cpp gscom.cpp splayer.cpp streamio.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 .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 clean:compiler_clean @@ -182,12 +194,15 @@ 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 +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_clean: - -$(DEL_FILE) moc_groove.cpp moc_gscom.cpp moc_splayer.cpp moc_streamio.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_groove.cpp: gscom.h \ splayer.h \ streamio.h \ + grooveprogressbar.h \ + qmaemo5rotator.h \ + playlist.h \ groove.h /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) groove.h -o moc_groove.cpp @@ -196,14 +211,33 @@ moc_gscom.cpp: gscom.h moc_splayer.cpp: streamio.h \ splayer.h \ + grooveprogressbar.h \ + qmaemo5rotator.h \ + playlist.h \ + gscom.h \ splayer.h /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) splayer.h -o moc_splayer.cpp moc_streamio.cpp: splayer.h \ streamio.h \ + grooveprogressbar.h \ + qmaemo5rotator.h \ + playlist.h \ + gscom.h \ streamio.h /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) streamio.h -o moc_streamio.cpp +moc_playlist.cpp: gscom.h \ + playlist.h + /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) playlist.h -o moc_playlist.cpp + +moc_downloadmanager.cpp: downloadmanager.h + /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) downloadmanager.h -o moc_downloadmanager.cpp + +moc_grooveprogressbar.cpp: qmaemo5rotator.h \ + grooveprogressbar.h + /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) grooveprogressbar.h -o moc_grooveprogressbar.cpp + compiler_rcc_make_all: compiler_rcc_clean: compiler_image_collection_make_all: qmake_image_collection.cpp @@ -226,26 +260,51 @@ compiler_clean: compiler_moc_header_clean main.o: main.cpp groove.h \ gscom.h \ splayer.h \ - streamio.h + streamio.h \ + grooveprogressbar.h \ + qmaemo5rotator.h \ + playlist.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp groove.o: groove.cpp groove.h \ gscom.h \ splayer.h \ - streamio.h + streamio.h \ + grooveprogressbar.h \ + qmaemo5rotator.h \ + playlist.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o groove.o groove.cpp gscom.o: gscom.cpp gscom.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o gscom.o gscom.cpp splayer.o: splayer.cpp splayer.h \ - streamio.h + streamio.h \ + grooveprogressbar.h \ + qmaemo5rotator.h \ + playlist.h \ + gscom.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o splayer.o splayer.cpp streamio.o: streamio.cpp streamio.h \ - splayer.h + splayer.h \ + grooveprogressbar.h \ + qmaemo5rotator.h \ + playlist.h \ + gscom.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o streamio.o streamio.cpp +playlist.o: playlist.cpp playlist.h \ + gscom.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o playlist.o playlist.cpp + +downloadmanager.o: downloadmanager.cpp downloadmanager.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o downloadmanager.o downloadmanager.cpp + +grooveprogressbar.o: grooveprogressbar.cpp grooveprogressbar.h \ + qmaemo5rotator.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o grooveprogressbar.o grooveprogressbar.cpp + moc_groove.o: moc_groove.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_groove.o moc_groove.cpp @@ -258,6 +317,15 @@ moc_splayer.o: moc_splayer.cpp moc_streamio.o: moc_streamio.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_streamio.o moc_streamio.cpp +moc_playlist.o: moc_playlist.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_playlist.o moc_playlist.cpp + +moc_downloadmanager.o: moc_downloadmanager.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_downloadmanager.o moc_downloadmanager.cpp + +moc_grooveprogressbar.o: moc_grooveprogressbar.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_grooveprogressbar.o moc_grooveprogressbar.cpp + ####### Install install_target: first FORCE @@ -270,9 +338,29 @@ uninstall_target: FORCE -$(DEL_DIR) $(INSTALL_ROOT)/usr/bin/ -install: install_target FORCE +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/ + + +uninstall_icon64: FORCE + -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/groove.png + -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ + + +install: install_target install_desktop install_icon64 FORCE -uninstall: uninstall_target FORCE +uninstall: uninstall_target uninstall_desktop uninstall_icon64 FORCE FORCE: