#############################################################################
# Makefile for building: cutempc
# Generated by qmake (2.01a) (Qt 4.6.2) on: Fri Jul 16 19:40:50 2010
# Project:  src.pro
# Template: app
# Command: /opt/qt4-maemo5/bin/qmake -unix -o Makefile src.pro
#############################################################################

####### Compiler, tools and options

CC            = gcc
CXX           = g++
DEFINES       = -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DDATADIR="/usr/local/share" -DPKGDATADIR="" -DQT_NO_DEBUG -DQT_MAEMO5_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS        = -pipe -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS      = -pipe -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wall -W -D_REENTRANT $(DEFINES)
INCPATH       = -I/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/linux-g++-maemo5 -I. -I/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/include/QtCore -I/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/include/QtNetwork -I/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/include/QtGui -I/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/include/QtXml -I/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/include/QtMaemo5 -I/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/include -I. -I.
LINK          = g++
LFLAGS        = -Wl,-rpath-link,/usr/lib -Wl,-O1 -Wl,--hash-style=gnu -Wl,-rpath,/opt/qt4-maemo5/lib
LIBS          = $(SUBLIBS)  -L/opt/qt4-maemo5/lib -L/opt/maemo/usr/lib -lmpd -lQtMaemo5 -L/opt/qt4-maemo5/lib -L/usr/X11R6/lib -lQtGui -lQtNetwork -lgconf-2 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -lQtDBus -lQtXml -lQtCore -lpthread 
AR            = ar cqs
RANLIB        = 
QMAKE         = /opt/qt4-maemo5/bin/qmake
TAR           = tar -cf
COMPRESS      = gzip -9f
COPY          = cp -f
SED           = sed
COPY_FILE     = $(COPY)
COPY_DIR      = $(COPY) -r
STRIP         = strip
INSTALL_FILE  = install -m 644 -p
INSTALL_DIR   = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
DEL_FILE      = rm -f
SYMLINK       = ln -f -s
DEL_DIR       = rmdir
MOVE          = mv -f
CHK_DIR_EXISTS= test -d
MKDIR         = mkdir -p

####### Output directory

OBJECTS_DIR   = ./

####### Files

SOURCES       = main.cpp \
		mainwindow.cpp \
		qmpd.cpp \
		qmpdsong.cpp \
		songmodel.cpp \
		connectdialog.cpp \
		coverfetcher.cpp \
		collectionbuilder.cpp \
		collectionartistmodel.cpp \
		collectionalbummodel.cpp \
		filebrowsertreeitem.cpp \
		filebrowsertreemodel.cpp \
		songsortfiltermodel.cpp \
		playlistitemdelegate.cpp \
		settingsdialog.cpp \
		md5.c \
		scrobbler.cpp moc_mainwindow.cpp \
		moc_qmpd.cpp \
		moc_songmodel.cpp \
		moc_connectdialog.cpp \
		moc_coverfetcher.cpp \
		moc_collectionbuilder.cpp \
		moc_collectionartistmodel.cpp \
		moc_collectionalbummodel.cpp \
		moc_filebrowsertreemodel.cpp \
		moc_songsortfiltermodel.cpp \
		moc_settingsdialog.cpp \
		qrc_systray.cpp
OBJECTS       = main.o \
		mainwindow.o \
		qmpd.o \
		qmpdsong.o \
		songmodel.o \
		connectdialog.o \
		coverfetcher.o \
		collectionbuilder.o \
		collectionartistmodel.o \
		collectionalbummodel.o \
		filebrowsertreeitem.o \
		filebrowsertreemodel.o \
		songsortfiltermodel.o \
		playlistitemdelegate.o \
		settingsdialog.o \
		md5.o \
		scrobbler.o \
		moc_mainwindow.o \
		moc_qmpd.o \
		moc_songmodel.o \
		moc_connectdialog.o \
		moc_coverfetcher.o \
		moc_collectionbuilder.o \
		moc_collectionartistmodel.o \
		moc_collectionalbummodel.o \
		moc_filebrowsertreemodel.o \
		moc_songsortfiltermodel.o \
		moc_settingsdialog.o \
		qrc_systray.o
DIST          = /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/common/unix.conf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/common/linux.conf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/qconfig.pri \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/qt_functions.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/qt_config.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/exclusive_builds.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/default_pre.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/release.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/default_post.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/warn_on.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/qt.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/unix/thread.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/moc.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/resources.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/uic.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/yacc.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/lex.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/include_source_dir.prf \
		src.pro
QMAKE_TARGET  = cutempc
DESTDIR       = 
TARGET        = cutempc

first: all
####### Implicit rules

.SUFFIXES: .o .c .cpp .cc .cxx .C

.cpp.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"

.cc.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"

.cxx.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"

.C.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"

.c.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"

####### Build rules

all: Makefile $(TARGET)

$(TARGET): ui_mainwindow.h ui_connectdialog.h ui_settingsdialog.h $(OBJECTS)  
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)

Makefile: src.pro  /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/linux-g++-maemo5/qmake.conf /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/common/unix.conf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/common/linux.conf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/qconfig.pri \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/qt_functions.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/qt_config.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/exclusive_builds.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/default_pre.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/release.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/default_post.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/warn_on.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/qt.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/unix/thread.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/moc.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/resources.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/uic.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/yacc.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/lex.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/include_source_dir.prf \
		/opt/qt4-maemo5/lib/libQtMaemo5.prl \
		/opt/qt4-maemo5/lib/libQtDBus.prl \
		/opt/qt4-maemo5/lib/libQtXml.prl \
		/opt/qt4-maemo5/lib/libQtCore.prl \
		/opt/qt4-maemo5/lib/libQtGui.prl \
		/opt/qt4-maemo5/lib/libQtNetwork.prl
	$(QMAKE) -unix -o Makefile src.pro
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/common/unix.conf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/common/linux.conf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/qconfig.pri:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/qt_functions.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/qt_config.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/exclusive_builds.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/default_pre.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/release.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/default_post.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/warn_on.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/qt.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/unix/thread.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/moc.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/resources.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/uic.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/yacc.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/lex.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/include_source_dir.prf:
/opt/qt4-maemo5/lib/libQtMaemo5.prl:
/opt/qt4-maemo5/lib/libQtDBus.prl:
/opt/qt4-maemo5/lib/libQtXml.prl:
/opt/qt4-maemo5/lib/libQtCore.prl:
/opt/qt4-maemo5/lib/libQtGui.prl:
/opt/qt4-maemo5/lib/libQtNetwork.prl:
qmake:  FORCE
	@$(QMAKE) -unix -o Makefile src.pro

dist: 
	@$(CHK_DIR_EXISTS) .tmp/cutempc1.0.0 || $(MKDIR) .tmp/cutempc1.0.0 
	$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/cutempc1.0.0/ && $(COPY_FILE) --parents mainwindow.h qmpd.h qmpdsong.h songmodel.h connectdialog.h coverfetcher.h collectionbuilder.h collectionartistmodel.h collectionalbummodel.h filebrowsertreeitem.h filebrowsertreemodel.h songsortfiltermodel.h playlistitemdelegate.h settingsdialog.h md5.h scrobbler.h .tmp/cutempc1.0.0/ && $(COPY_FILE) --parents systray.qrc .tmp/cutempc1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp qmpd.cpp qmpdsong.cpp songmodel.cpp connectdialog.cpp coverfetcher.cpp collectionbuilder.cpp collectionartistmodel.cpp collectionalbummodel.cpp filebrowsertreeitem.cpp filebrowsertreemodel.cpp songsortfiltermodel.cpp playlistitemdelegate.cpp settingsdialog.cpp md5.c scrobbler.cpp .tmp/cutempc1.0.0/ && $(COPY_FILE) --parents mainwindow.ui connectdialog.ui settingsdialog.ui .tmp/cutempc1.0.0/ && (cd `dirname .tmp/cutempc1.0.0` && $(TAR) cutempc1.0.0.tar cutempc1.0.0 && $(COMPRESS) cutempc1.0.0.tar) && $(MOVE) `dirname .tmp/cutempc1.0.0`/cutempc1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/cutempc1.0.0


clean:compiler_clean 
	-$(DEL_FILE) $(OBJECTS)
	-$(DEL_FILE) *~ core *.core


####### Sub-libraries

distclean: clean
	-$(DEL_FILE) $(TARGET) 
	-$(DEL_FILE) Makefile


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_mainwindow.cpp moc_qmpd.cpp moc_songmodel.cpp moc_connectdialog.cpp moc_coverfetcher.cpp moc_collectionbuilder.cpp moc_collectionartistmodel.cpp moc_collectionalbummodel.cpp moc_filebrowsertreemodel.cpp moc_songsortfiltermodel.cpp moc_settingsdialog.cpp
compiler_moc_header_clean:
	-$(DEL_FILE) moc_mainwindow.cpp moc_qmpd.cpp moc_songmodel.cpp moc_connectdialog.cpp moc_coverfetcher.cpp moc_collectionbuilder.cpp moc_collectionartistmodel.cpp moc_collectionalbummodel.cpp moc_filebrowsertreemodel.cpp moc_songsortfiltermodel.cpp moc_settingsdialog.cpp
moc_mainwindow.cpp: songmodel.h \
		qmpdsong.h \
		coverfetcher.h \
		collectionartistmodel.h \
		collectionalbummodel.h \
		filebrowsertreemodel.h \
		filebrowsertreeitem.h \
		qmpd.h \
		collectionbuilder.h \
		songsortfiltermodel.h \
		playlistitemdelegate.h \
		settingsdialog.h \
		scrobbler.h \
		mainwindow.h
	/opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp

moc_qmpd.cpp: qmpd.h
	/opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) qmpd.h -o moc_qmpd.cpp

moc_songmodel.cpp: qmpdsong.h \
		songmodel.h
	/opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) songmodel.h -o moc_songmodel.cpp

moc_connectdialog.cpp: connectdialog.h
	/opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) connectdialog.h -o moc_connectdialog.cpp

moc_coverfetcher.cpp: coverfetcher.h
	/opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) coverfetcher.h -o moc_coverfetcher.cpp

moc_collectionbuilder.cpp: qmpdsong.h \
		collectionbuilder.h
	/opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) collectionbuilder.h -o moc_collectionbuilder.cpp

moc_collectionartistmodel.cpp: collectionartistmodel.h
	/opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) collectionartistmodel.h -o moc_collectionartistmodel.cpp

moc_collectionalbummodel.cpp: collectionalbummodel.h
	/opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) collectionalbummodel.h -o moc_collectionalbummodel.cpp

moc_filebrowsertreemodel.cpp: filebrowsertreeitem.h \
		filebrowsertreemodel.h
	/opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) filebrowsertreemodel.h -o moc_filebrowsertreemodel.cpp

moc_songsortfiltermodel.cpp: songsortfiltermodel.h
	/opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) songsortfiltermodel.h -o moc_songsortfiltermodel.cpp

moc_settingsdialog.cpp: settingsdialog.h
	/opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) settingsdialog.h -o moc_settingsdialog.cpp

compiler_rcc_make_all: qrc_systray.cpp
compiler_rcc_clean:
	-$(DEL_FILE) qrc_systray.cpp
qrc_systray.cpp: systray.qrc \
		graphics/CD.jpg \
		graphics/playpause.png \
		graphics/stop.png \
		graphics/next.png \
		graphics/volume.png \
		graphics/prev.png \
		graphics/mute.png \
		graphics/trayicon.svg \
		graphics/closedfolder.png \
		graphics/openfolder.png
	/opt/qt4-maemo5/bin/rcc -name systray systray.qrc -o qrc_systray.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: ui_mainwindow.h ui_connectdialog.h ui_settingsdialog.h
compiler_uic_clean:
	-$(DEL_FILE) ui_mainwindow.h ui_connectdialog.h ui_settingsdialog.h
ui_mainwindow.h: mainwindow.ui
	/opt/qt4-maemo5/bin/uic mainwindow.ui -o ui_mainwindow.h

ui_connectdialog.h: connectdialog.ui
	/opt/qt4-maemo5/bin/uic connectdialog.ui -o ui_connectdialog.h

ui_settingsdialog.h: settingsdialog.ui
	/opt/qt4-maemo5/bin/uic settingsdialog.ui -o ui_settingsdialog.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_rcc_clean compiler_uic_clean 

####### Compile

main.o: main.cpp mainwindow.h \
		songmodel.h \
		qmpdsong.h \
		coverfetcher.h \
		collectionartistmodel.h \
		collectionalbummodel.h \
		filebrowsertreemodel.h \
		filebrowsertreeitem.h \
		qmpd.h \
		collectionbuilder.h \
		songsortfiltermodel.h \
		playlistitemdelegate.h \
		settingsdialog.h \
		scrobbler.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp

mainwindow.o: mainwindow.cpp mainwindow.h \
		songmodel.h \
		qmpdsong.h \
		coverfetcher.h \
		collectionartistmodel.h \
		collectionalbummodel.h \
		filebrowsertreemodel.h \
		filebrowsertreeitem.h \
		qmpd.h \
		collectionbuilder.h \
		songsortfiltermodel.h \
		playlistitemdelegate.h \
		settingsdialog.h \
		scrobbler.h \
		ui_mainwindow.h \
		connectdialog.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp

qmpd.o: qmpd.cpp qmpd.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qmpd.o qmpd.cpp

qmpdsong.o: qmpdsong.cpp qmpdsong.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qmpdsong.o qmpdsong.cpp

songmodel.o: songmodel.cpp songmodel.h \
		qmpdsong.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o songmodel.o songmodel.cpp

connectdialog.o: connectdialog.cpp connectdialog.h \
		ui_connectdialog.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o connectdialog.o connectdialog.cpp

coverfetcher.o: coverfetcher.cpp coverfetcher.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o coverfetcher.o coverfetcher.cpp

collectionbuilder.o: collectionbuilder.cpp collectionbuilder.h \
		qmpdsong.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o collectionbuilder.o collectionbuilder.cpp

collectionartistmodel.o: collectionartistmodel.cpp collectionartistmodel.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o collectionartistmodel.o collectionartistmodel.cpp

collectionalbummodel.o: collectionalbummodel.cpp collectionalbummodel.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o collectionalbummodel.o collectionalbummodel.cpp

filebrowsertreeitem.o: filebrowsertreeitem.cpp filebrowsertreeitem.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o filebrowsertreeitem.o filebrowsertreeitem.cpp

filebrowsertreemodel.o: filebrowsertreemodel.cpp filebrowsertreemodel.h \
		filebrowsertreeitem.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o filebrowsertreemodel.o filebrowsertreemodel.cpp

songsortfiltermodel.o: songsortfiltermodel.cpp songsortfiltermodel.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o songsortfiltermodel.o songsortfiltermodel.cpp

playlistitemdelegate.o: playlistitemdelegate.cpp playlistitemdelegate.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o playlistitemdelegate.o playlistitemdelegate.cpp

settingsdialog.o: settingsdialog.cpp settingsdialog.h \
		ui_settingsdialog.h \
		md5.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o settingsdialog.o settingsdialog.cpp

md5.o: md5.c md5.h
	$(CC) -c $(CFLAGS) $(INCPATH) -o md5.o md5.c

scrobbler.o: scrobbler.cpp scrobbler.h \
		qmpdsong.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o scrobbler.o scrobbler.cpp

moc_mainwindow.o: moc_mainwindow.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp

moc_qmpd.o: moc_qmpd.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qmpd.o moc_qmpd.cpp

moc_songmodel.o: moc_songmodel.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_songmodel.o moc_songmodel.cpp

moc_connectdialog.o: moc_connectdialog.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_connectdialog.o moc_connectdialog.cpp

moc_coverfetcher.o: moc_coverfetcher.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_coverfetcher.o moc_coverfetcher.cpp

moc_collectionbuilder.o: moc_collectionbuilder.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_collectionbuilder.o moc_collectionbuilder.cpp

moc_collectionartistmodel.o: moc_collectionartistmodel.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_collectionartistmodel.o moc_collectionartistmodel.cpp

moc_collectionalbummodel.o: moc_collectionalbummodel.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_collectionalbummodel.o moc_collectionalbummodel.cpp

moc_filebrowsertreemodel.o: moc_filebrowsertreemodel.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_filebrowsertreemodel.o moc_filebrowsertreemodel.cpp

moc_songsortfiltermodel.o: moc_songsortfiltermodel.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_songsortfiltermodel.o moc_songsortfiltermodel.cpp

moc_settingsdialog.o: moc_settingsdialog.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_settingsdialog.o moc_settingsdialog.cpp

qrc_systray.o: qrc_systray.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_systray.o qrc_systray.cpp

####### Install

install_target: first FORCE
	@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/bin/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/bin/ 
	-$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
	-$(STRIP) "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"

uninstall_target:  FORCE
	-$(DEL_FILE) "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
	-$(DEL_DIR) $(INSTALL_ROOT)/usr/local/bin/ 


install_desktop: first FORCE
	@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/applications/hildon/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/applications/hildon/ 
	-$(INSTALL_FILE) /home/pasi/prog/cutempc/extras-devel/cutempc-0.2.0/src/cutempc.desktop $(INSTALL_ROOT)/usr/local/share/applications/hildon/


uninstall_desktop:  FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/usr/local/share/applications/hildon/cutempc.desktop
	-$(DEL_DIR) $(INSTALL_ROOT)/usr/local/share/applications/hildon/ 


install:  install_target install_desktop  FORCE

uninstall: uninstall_target uninstall_desktop   FORCE

FORCE:

