#############################################################################
# Makefile for building: thembloodyducks
# Generated by qmake (2.01a) (Qt 4.6.2) on: Fri Jul 16 01:07:06 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_DBUS_LIB -DQT_GUI_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/QtGui -I/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/include/QtDBus -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 -lSDLmain -lSDL -lSDL_mixer -lQtDBus -L/opt/qt4-maemo5/lib -lQtXml -lQtGui -L/usr/X11R6/lib -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 \
		mygfxview.cpp \
		hero.cpp \
		exitprompt.cpp \
		pausedscreen.cpp \
		libmctacc.cpp \
		duck.cpp \
		bullet.cpp \
		number.cpp \
		duckpoo.cpp \
		energybar.cpp \
		gameoverscreen.cpp \
		mutebutton.cpp moc_mainwindow.cpp \
		moc_mygfxview.cpp \
		qrc_resources.cpp
OBJECTS       = main.o \
		mainwindow.o \
		mygfxview.o \
		hero.o \
		exitprompt.o \
		pausedscreen.o \
		libmctacc.o \
		duck.o \
		bullet.o \
		number.o \
		duckpoo.o \
		energybar.o \
		gameoverscreen.o \
		mutebutton.o \
		moc_mainwindow.o \
		moc_mygfxview.o \
		qrc_resources.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/moc.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/dbusinterfaces.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/dbusadaptors.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/unix/thread.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  = thembloodyducks
DESTDIR       = 
TARGET        = thembloodyducks

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 $(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/moc.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/dbusinterfaces.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/dbusadaptors.prf \
		/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/unix/thread.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/libQtDBus.prl \
		/opt/qt4-maemo5/lib/libQtXml.prl \
		/opt/qt4-maemo5/lib/libQtCore.prl \
		/opt/qt4-maemo5/lib/libQtGui.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/moc.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/dbusinterfaces.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/dbusadaptors.prf:
/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/unix/thread.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/libQtDBus.prl:
/opt/qt4-maemo5/lib/libQtXml.prl:
/opt/qt4-maemo5/lib/libQtCore.prl:
/opt/qt4-maemo5/lib/libQtGui.prl:
qmake:  FORCE
	@$(QMAKE) -unix -o Makefile src.pro

dist: 
	@$(CHK_DIR_EXISTS) .tmp/thembloodyducks1.0.0 || $(MKDIR) .tmp/thembloodyducks1.0.0 
	$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/thembloodyducks1.0.0/ && $(COPY_FILE) --parents mainwindow.h mygfxview.h hero.h misc.h exitprompt.h pausedscreen.h libmctacc.h duck.h bullet.h number.h duckpoo.h energybar.h gameoverscreen.h mutebutton.h .tmp/thembloodyducks1.0.0/ && $(COPY_FILE) --parents resources.qrc .tmp/thembloodyducks1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp mygfxview.cpp hero.cpp exitprompt.cpp pausedscreen.cpp libmctacc.cpp duck.cpp bullet.cpp number.cpp duckpoo.cpp energybar.cpp gameoverscreen.cpp mutebutton.cpp .tmp/thembloodyducks1.0.0/ && $(COPY_FILE) --parents mainwindow.ui .tmp/thembloodyducks1.0.0/ && (cd `dirname .tmp/thembloodyducks1.0.0` && $(TAR) thembloodyducks1.0.0.tar thembloodyducks1.0.0 && $(COMPRESS) thembloodyducks1.0.0.tar) && $(MOVE) `dirname .tmp/thembloodyducks1.0.0`/thembloodyducks1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/thembloodyducks1.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_mygfxview.cpp
compiler_moc_header_clean:
	-$(DEL_FILE) moc_mainwindow.cpp moc_mygfxview.cpp
moc_mainwindow.cpp: misc.h \
		libmctacc.h \
		mygfxview.h \
		hero.h \
		energybar.h \
		mutebutton.h \
		duck.h \
		bullet.h \
		duckpoo.h \
		number.h \
		exitprompt.h \
		pausedscreen.h \
		gameoverscreen.h \
		mainwindow.h
	/opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp

moc_mygfxview.cpp: misc.h \
		mygfxview.h
	/opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) mygfxview.h -o moc_mygfxview.cpp

compiler_dbus_interface_source_make_all:
compiler_dbus_interface_source_clean:
compiler_dbus_adaptor_source_make_all:
compiler_dbus_adaptor_source_clean:
compiler_rcc_make_all: qrc_resources.cpp
compiler_rcc_clean:
	-$(DEL_FILE) qrc_resources.cpp
qrc_resources.cpp: resources.qrc \
		gfx/r_duck03_1.png \
		gfx/r_ukkeli02.png \
		gfx/num4.png \
		gfx/r_ukkeli01.png \
		gfx/r_duck01_1.png \
		gfx/l_duck03_0.png \
		gfx/energybar2.png \
		gfx/num5.png \
		gfx/r_ukkeli03.png \
		gfx/l_duck04_1.png \
		gfx/l_duckdead_0.png \
		gfx/r_duck04_0.png \
		gfx/l_duck01_0.png \
		gfx/gameover.png \
		gfx/bullet.png \
		gfx/l_duck02_1.png \
		gfx/r_duck02_0.png \
		gfx/energybar1.png \
		gfx/num6.png \
		gfx/bg0.png \
		gfx/r_duckdead_0.png \
		gfx/duckshit.png \
		gfx/soundon.png \
		gfx/num0.png \
		gfx/paused.png \
		gfx/energybar4.png \
		gfx/num7.png \
		gfx/bg1.png \
		gfx/l_duck03_1.png \
		gfx/r_duck03_0.png \
		gfx/l_ukkeli02.png \
		gfx/num1.png \
		gfx/soundoff.png \
		gfx/energybar3.png \
		gfx/l_ukkeli01.png \
		gfx/num8.png \
		gfx/l_duckdead_1.png \
		gfx/r_duck04_1.png \
		gfx/l_duck01_1.png \
		gfx/r_duck01_0.png \
		gfx/bg2.png \
		gfx/r_duck02_1.png \
		gfx/l_ukkeli03.png \
		gfx/num2.png \
		gfx/l_duck04_0.png \
		gfx/energybar6.png \
		gfx/num9.png \
		gfx/l_duck02_0.png \
		gfx/bg3.png \
		gfx/r_duckdead_1.png \
		gfx/num3.png \
		gfx/r_duckshit.png \
		gfx/energybar5.png \
		gfx/quitprompt.png
	/opt/qt4-maemo5/bin/rcc -name resources resources.qrc -o qrc_resources.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_dbus_interface_header_make_all:
compiler_dbus_interface_header_clean:
compiler_dbus_interface_moc_make_all:
compiler_dbus_interface_moc_clean:
compiler_dbus_adaptor_header_make_all:
compiler_dbus_adaptor_header_clean:
compiler_dbus_adaptor_moc_make_all:
compiler_dbus_adaptor_moc_clean:
compiler_uic_make_all: ui_mainwindow.h
compiler_uic_clean:
	-$(DEL_FILE) ui_mainwindow.h
ui_mainwindow.h: mainwindow.ui
	/opt/qt4-maemo5/bin/uic mainwindow.ui -o ui_mainwindow.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 \
		misc.h \
		libmctacc.h \
		mygfxview.h \
		hero.h \
		energybar.h \
		mutebutton.h \
		duck.h \
		bullet.h \
		duckpoo.h \
		number.h \
		exitprompt.h \
		pausedscreen.h \
		gameoverscreen.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp

mainwindow.o: mainwindow.cpp mainwindow.h \
		misc.h \
		libmctacc.h \
		mygfxview.h \
		hero.h \
		energybar.h \
		mutebutton.h \
		duck.h \
		bullet.h \
		duckpoo.h \
		number.h \
		exitprompt.h \
		pausedscreen.h \
		gameoverscreen.h \
		ui_mainwindow.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp

mygfxview.o: mygfxview.cpp mygfxview.h \
		misc.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mygfxview.o mygfxview.cpp

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

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

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

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

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

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

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

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

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

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

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

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

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

qrc_resources.o: qrc_resources.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_resources.o qrc_resources.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/shooting_game/package/thembloodyducks-1.1.1/src/thembloodyducks.desktop $(INSTALL_ROOT)/usr/local/share/applications/hildon/


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


install:  install_target install_desktop  FORCE

uninstall: uninstall_target uninstall_desktop   FORCE

FORCE:

