#############################################################################
# Makefile for building: mushrooms
# Generated by qmake (2.01a) (Qt 4.7.0) on: Sat Nov 6 17:49:13 2010
# Project:  src.pro
# Template: app
# Command: /usr/bin/qmake -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=\"/opt/mushrooms\" -DPKGDATADIR=\"\" -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_SQL_LIB -DQT_OPENGL_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/usr/share/qt4/mkspecs/linux-g++-maemo5 -I. -I/targets/FREMANTLE_ARMEL/usr/include/QtCore -I/targets/FREMANTLE_ARMEL/usr/include/QtGui -I/targets/FREMANTLE_ARMEL/usr/include/QtOpenGL -I/targets/FREMANTLE_ARMEL/usr/include/QtSql -I/targets/FREMANTLE_ARMEL/usr/include/QtDBus -I/targets/FREMANTLE_ARMEL/usr/include -I. -I/usr/X11R6/include -I. -I.
LINK          = g++
LFLAGS        = -Wl,-rpath-link,/usr/lib -Wl,-O1 -Wl,--hash-style=gnu
LIBS          = $(SUBLIBS)  -L/usr/lib -L/usr/X11R6/lib -L/usr/lib -lQtSql -lQtOpenGL -L/usr/X11R6/lib -lQtGui -lQtDBus -lQtXml -lQtCore -lGLESv2 -lpthread 
AR            = ar cqs
RANLIB        = 
QMAKE         = /usr/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       = glwidget.cpp \
		main.cpp \
		model.cpp \
		md2.cpp \
		mushmain.cpp \
		mushhigh.cpp \
		mushdialog.cpp moc_glwidget.cpp \
		moc_graph.cpp \
		moc_mushmain.cpp \
		moc_mushhigh.cpp \
		moc_mushdialog.cpp \
		qrc_resources.cpp
OBJECTS       = glwidget.o \
		main.o \
		model.o \
		md2.o \
		mushmain.o \
		mushhigh.o \
		mushdialog.o \
		moc_glwidget.o \
		moc_graph.o \
		moc_mushmain.o \
		moc_mushhigh.o \
		moc_mushdialog.o \
		qrc_resources.o
DIST          = /targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/common/unix.conf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/common/linux.conf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/qconfig.pri \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/qt_functions.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/qt_config.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/default_pre.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/release.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/default_post.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/link_pkgconfig.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/warn_on.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/qt.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/unix/opengl.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/moc.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/dbusinterfaces.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/dbusadaptors.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/unix/thread.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/resources.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/uic.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/yacc.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/lex.prf \
		/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/features/include_source_dir.prf \
		src.pro
QMAKE_TARGET  = mushrooms
DESTDIR       = 
TARGET        = mushrooms

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_mushmain.h ui_mushhigh.h ui_highscoredialog.h $(OBJECTS)  
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)

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

dist: 
	@$(CHK_DIR_EXISTS) .tmp/mushrooms1.0.0 || $(MKDIR) .tmp/mushrooms1.0.0 
	$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/mushrooms1.0.0/ && $(COPY_FILE) --parents glwidget.h graph.h pala.h model.h helper.h md2.h mushmain.h mushhigh.h mushdialog.h .tmp/mushrooms1.0.0/ && $(COPY_FILE) --parents resources.qrc .tmp/mushrooms1.0.0/ && $(COPY_FILE) --parents glwidget.cpp main.cpp model.cpp md2.cpp mushmain.cpp mushhigh.cpp mushdialog.cpp .tmp/mushrooms1.0.0/ && $(COPY_FILE) --parents mushmain.ui mushhigh.ui highscoredialog.ui .tmp/mushrooms1.0.0/ && (cd `dirname .tmp/mushrooms1.0.0` && $(TAR) mushrooms1.0.0.tar mushrooms1.0.0 && $(COMPRESS) mushrooms1.0.0.tar) && $(MOVE) `dirname .tmp/mushrooms1.0.0`/mushrooms1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/mushrooms1.0.0


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


####### Sub-libraries

distclean: clean
	-$(DEL_FILE) $(TARGET) 
	-$(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_glwidget.cpp moc_graph.cpp moc_mushmain.cpp moc_mushhigh.cpp moc_mushdialog.cpp
compiler_moc_header_clean:
	-$(DEL_FILE) moc_glwidget.cpp moc_graph.cpp moc_mushmain.cpp moc_mushhigh.cpp moc_mushdialog.cpp
moc_glwidget.cpp: model.h \
		structures.h \
		md2.h \
		glwidget.h
	/usr/bin/moc $(DEFINES) $(INCPATH) glwidget.h -o moc_glwidget.cpp

moc_graph.cpp: glwidget.h \
		model.h \
		structures.h \
		md2.h \
		graph.h
	/usr/bin/moc $(DEFINES) $(INCPATH) graph.h -o moc_graph.cpp

moc_mushmain.cpp: ui_mushmain.h \
		glwidget.h \
		model.h \
		structures.h \
		md2.h \
		mushdialog.h \
		ui_highscoredialog.h \
		mushhigh.h \
		ui_mushhigh.h \
		mushmain.h
	/usr/bin/moc $(DEFINES) $(INCPATH) mushmain.h -o moc_mushmain.cpp

moc_mushhigh.cpp: ui_mushhigh.h \
		mushhigh.h
	/usr/bin/moc $(DEFINES) $(INCPATH) mushhigh.h -o moc_mushhigh.cpp

moc_mushdialog.cpp: ui_highscoredialog.h \
		mushdialog.h
	/usr/bin/moc $(DEFINES) $(INCPATH) mushdialog.h -o moc_mushdialog.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 \
		textures/terrain.png \
		textures/dpng.png \
		textures/sieni.png \
		textures/nainen.jpg \
		textures/dpngn.png \
		models/sieni.obj
	/usr/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_mushmain.h ui_mushhigh.h ui_highscoredialog.h
compiler_uic_clean:
	-$(DEL_FILE) ui_mushmain.h ui_mushhigh.h ui_highscoredialog.h
ui_mushmain.h: mushmain.ui
	/usr/bin/uic mushmain.ui -o ui_mushmain.h

ui_mushhigh.h: mushhigh.ui
	/usr/bin/uic mushhigh.ui -o ui_mushhigh.h

ui_highscoredialog.h: highscoredialog.ui
	/usr/bin/uic highscoredialog.ui -o ui_highscoredialog.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

glwidget.o: glwidget.cpp glwidget.h \
		model.h \
		structures.h \
		md2.h \
		helper.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o glwidget.o glwidget.cpp

main.o: main.cpp mushmain.h \
		ui_mushmain.h \
		glwidget.h \
		model.h \
		structures.h \
		md2.h \
		mushdialog.h \
		ui_highscoredialog.h \
		mushhigh.h \
		ui_mushhigh.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp

model.o: model.cpp model.h \
		structures.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o model.o model.cpp

md2.o: md2.cpp md2.h \
		structures.h \
		anorms.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o md2.o md2.cpp

mushmain.o: mushmain.cpp mushmain.h \
		ui_mushmain.h \
		glwidget.h \
		model.h \
		structures.h \
		md2.h \
		mushdialog.h \
		ui_highscoredialog.h \
		mushhigh.h \
		ui_mushhigh.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mushmain.o mushmain.cpp

mushhigh.o: mushhigh.cpp mushhigh.h \
		ui_mushhigh.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mushhigh.o mushhigh.cpp

mushdialog.o: mushdialog.cpp mushdialog.h \
		ui_highscoredialog.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mushdialog.o mushdialog.cpp

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

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

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

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

moc_mushdialog.o: moc_mushdialog.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mushdialog.o moc_mushdialog.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)/opt/mushrooms/ || $(MKDIR) $(INSTALL_ROOT)/opt/mushrooms/ 
	-$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/opt/mushrooms/$(QMAKE_TARGET)"
	-$(STRIP) "$(INSTALL_ROOT)/opt/mushrooms/$(QMAKE_TARGET)"

uninstall_target:  FORCE
	-$(DEL_FILE) "$(INSTALL_ROOT)/opt/mushrooms/$(QMAKE_TARGET)"
	-$(DEL_DIR) $(INSTALL_ROOT)/opt/mushrooms/ 


install_desktop: first FORCE
	@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/applications/hildon/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/applications/hildon/ 
	-$(INSTALL_FILE) /home/miiko/source/kuvaaja/mushrooms-0.1.7/src/mushrooms.desktop $(INSTALL_ROOT)/usr/share/applications/hildon/


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


install_icon: first FORCE
	@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/pixmaps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/pixmaps/ 
	-$(INSTALL_FILE) /home/miiko/source/kuvaaja/mushrooms-0.1.7/src/mushrooms.png $(INSTALL_ROOT)/usr/share/pixmaps/


uninstall_icon:  FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/pixmaps/mushrooms.png
	-$(DEL_DIR) $(INSTALL_ROOT)/usr/share/pixmaps/ 


install_app: first FORCE
	@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/opt/mushrooms/ || $(MKDIR) $(INSTALL_ROOT)/opt/mushrooms/ 
	-$(INSTALL_PROGRAM) /home/miiko/source/kuvaaja/mushrooms-0.1.7/src/mushrooms $(INSTALL_ROOT)/opt/mushrooms/
	-strip $(INSTALL_ROOT)/opt/mushrooms/mushrooms


uninstall_app:  FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/opt/mushrooms/mushrooms
	-$(DEL_DIR) $(INSTALL_ROOT)/opt/mushrooms/ 


install_model: first FORCE
	@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/opt/mushrooms/ || $(MKDIR) $(INSTALL_ROOT)/opt/mushrooms/ 
	-$(INSTALL_FILE) /home/miiko/source/kuvaaja/mushrooms-0.1.7/src/md2model.md2 $(INSTALL_ROOT)/opt/mushrooms/


uninstall_model:  FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/opt/mushrooms/md2model.md2
	-$(DEL_DIR) $(INSTALL_ROOT)/opt/mushrooms/ 


install:  install_target install_desktop install_icon install_app install_model  FORCE

uninstall: uninstall_target uninstall_desktop uninstall_icon uninstall_app uninstall_model   FORCE

FORCE:

