#############################################################################
# Makefile for building: mverbiste
# Generated by qmake (2.01a) (Qt 4.7.0) on: Wed Oct 31 01:01:46 2012
# Project:  mverbiste.pro
# Template: app
# Command: /usr/bin/qmake -o Makefile mverbiste.pro
#############################################################################

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

CC            = gcc
CXX           = g++
DEFINES       = -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DVERSTR=\"1.0\" -DICONV_CONST= -DLIBDATADIR=\"/opt/mverbiste/data\" -DICONFILE=\"/opt/mverbiste/icons/mverbiste160.png\" -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS        = -pipe -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -I/usr/include/libxml2 -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS      = -pipe -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -I/usr/include/libxml2 -Wall -W -D_REENTRANT $(DEFINES)
INCPATH       = -I/usr/share/qt4/mkspecs/linux-g++-maemo5 -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -I.
LINK          = g++
LFLAGS        = -Wl,-rpath-link,/usr/lib -Wl,-O1 -Wl,--hash-style=gnu
LIBS          = $(SUBLIBS)  -L/usr/lib -lxml2 -lQtGui -L/usr/lib -L/usr/X11R6/lib -lQtDBus -lQtXml -lQtCore -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       = main.cpp \
		mainwindow.cpp \
		verbiste/misc-types.cpp \
		verbiste/FrenchVerbDictionary.cpp \
		verbiste/c-api.cpp \
		gui/conjugation.cpp \
		about.cpp moc_mainwindow.cpp \
		moc_about.cpp
OBJECTS       = main.o \
		mainwindow.o \
		misc-types.o \
		FrenchVerbDictionary.o \
		c-api.o \
		conjugation.o \
		about.o \
		moc_mainwindow.o \
		moc_about.o
DIST          = /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 \
		/usr/share/qt4/mkspecs/features/default_pre.prf \
		deployment.pri \
		/usr/share/qt4/mkspecs/features/release.prf \
		/usr/share/qt4/mkspecs/features/default_post.prf \
		/usr/share/qt4/mkspecs/features/link_pkgconfig.prf \
		/usr/share/qt4/mkspecs/features/warn_on.prf \
		/usr/share/qt4/mkspecs/features/qt.prf \
		/usr/share/qt4/mkspecs/features/unix/thread.prf \
		/usr/share/qt4/mkspecs/features/moc.prf \
		/usr/share/qt4/mkspecs/features/resources.prf \
		/usr/share/qt4/mkspecs/features/uic.prf \
		/usr/share/qt4/mkspecs/features/yacc.prf \
		/usr/share/qt4/mkspecs/features/lex.prf \
		/usr/share/qt4/mkspecs/features/include_source_dir.prf \
		mverbiste.pro
QMAKE_TARGET  = mverbiste
DESTDIR       =
TARGET        = mverbiste

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: mverbiste.pro  /usr/share/qt4/mkspecs/linux-g++-maemo5/qmake.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 \
		/usr/share/qt4/mkspecs/features/default_pre.prf \
		deployment.pri \
		/usr/share/qt4/mkspecs/features/release.prf \
		/usr/share/qt4/mkspecs/features/default_post.prf \
		/usr/share/qt4/mkspecs/features/link_pkgconfig.prf \
		/usr/share/qt4/mkspecs/features/warn_on.prf \
		/usr/share/qt4/mkspecs/features/qt.prf \
		/usr/share/qt4/mkspecs/features/unix/thread.prf \
		/usr/share/qt4/mkspecs/features/moc.prf \
		/usr/share/qt4/mkspecs/features/resources.prf \
		/usr/share/qt4/mkspecs/features/uic.prf \
		/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/libQtGui.prl \
		/usr/lib/libQtDBus.prl \
		/usr/lib/libQtXml.prl \
		/usr/lib/libQtCore.prl
	$(QMAKE) -o Makefile mverbiste.pro
/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:
/usr/share/qt4/mkspecs/features/default_pre.prf:
deployment.pri:
/usr/share/qt4/mkspecs/features/release.prf:
/usr/share/qt4/mkspecs/features/default_post.prf:
/usr/share/qt4/mkspecs/features/link_pkgconfig.prf:
/usr/share/qt4/mkspecs/features/warn_on.prf:
/usr/share/qt4/mkspecs/features/qt.prf:
/usr/share/qt4/mkspecs/features/unix/thread.prf:
/usr/share/qt4/mkspecs/features/moc.prf:
/usr/share/qt4/mkspecs/features/resources.prf:
/usr/share/qt4/mkspecs/features/uic.prf:
/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/libQtGui.prl:
/usr/lib/libQtDBus.prl:
/usr/lib/libQtXml.prl:
/usr/lib/libQtCore.prl:
qmake:  FORCE
	@$(QMAKE) -o Makefile mverbiste.pro

dist:
	@$(CHK_DIR_EXISTS) .tmp/mverbiste1.0.0 || $(MKDIR) .tmp/mverbiste1.0.0
	$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/mverbiste1.0.0/ && $(COPY_FILE) --parents mainwindow.h verbiste/Trie.h verbiste/misc-types.h verbiste/FrenchVerbDictionary.h verbiste/c-api.h gui/conjugation.h about.h .tmp/mverbiste1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp verbiste/misc-types.cpp verbiste/FrenchVerbDictionary.cpp verbiste/c-api.cpp gui/conjugation.cpp about.cpp .tmp/mverbiste1.0.0/ && $(COPY_FILE) --parents mainwindow.ui .tmp/mverbiste1.0.0/ && (cd `dirname .tmp/mverbiste1.0.0` && $(TAR) mverbiste1.0.0.tar mverbiste1.0.0 && $(COMPRESS) mverbiste1.0.0.tar) && $(MOVE) `dirname .tmp/mverbiste1.0.0`/mverbiste1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/mverbiste1.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_mainwindow.cpp moc_about.cpp
compiler_moc_header_clean:
	-$(DEL_FILE) moc_mainwindow.cpp moc_about.cpp
moc_mainwindow.cpp: verbiste/FrenchVerbDictionary.h \
		verbiste/c-api.h \
		verbiste/misc-types.h \
		verbiste/Trie.h \
		verbiste/Trie.cpp \
		gui/conjugation.h \
		about.h \
		mainwindow.h
	/usr/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp

moc_about.cpp: about.h
	/usr/bin/moc $(DEFINES) $(INCPATH) about.h -o moc_about.cpp

compiler_rcc_make_all:
compiler_rcc_clean:
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
compiler_uic_clean:
	-$(DEL_FILE) ui_mainwindow.h
ui_mainwindow.h: mainwindow.ui
	/usr/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_uic_clean

####### Compile

main.o: main.cpp mainwindow.h \
		verbiste/FrenchVerbDictionary.h \
		verbiste/c-api.h \
		verbiste/misc-types.h \
		verbiste/Trie.h \
		verbiste/Trie.cpp \
		gui/conjugation.h \
		about.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp

mainwindow.o: mainwindow.cpp mainwindow.h \
		verbiste/FrenchVerbDictionary.h \
		verbiste/c-api.h \
		verbiste/misc-types.h \
		verbiste/Trie.h \
		verbiste/Trie.cpp \
		gui/conjugation.h \
		about.h \
		ui_mainwindow.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp

misc-types.o: verbiste/misc-types.cpp verbiste/misc-types.h \
		verbiste/c-api.h \
		verbiste/FrenchVerbDictionary.h \
		verbiste/Trie.h \
		verbiste/Trie.cpp
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o misc-types.o verbiste/misc-types.cpp

FrenchVerbDictionary.o: verbiste/FrenchVerbDictionary.cpp verbiste/FrenchVerbDictionary.h \
		verbiste/c-api.h \
		verbiste/misc-types.h \
		verbiste/Trie.h \
		verbiste/Trie.cpp
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o FrenchVerbDictionary.o verbiste/FrenchVerbDictionary.cpp

c-api.o: verbiste/c-api.cpp verbiste/FrenchVerbDictionary.h \
		verbiste/c-api.h \
		verbiste/misc-types.h \
		verbiste/Trie.h \
		verbiste/Trie.cpp
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o c-api.o verbiste/c-api.cpp

conjugation.o: gui/conjugation.cpp gui/conjugation.h \
		verbiste/FrenchVerbDictionary.h \
		verbiste/c-api.h \
		verbiste/misc-types.h \
		verbiste/Trie.h \
		verbiste/Trie.cpp
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o conjugation.o gui/conjugation.cpp

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

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

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

####### Install

install_itemxmldata: first FORCE
	@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/opt/mverbiste/ || $(MKDIR) $(INSTALL_ROOT)/opt/mverbiste/
	-$(INSTALL_DIR) $(PWD)/data $(INSTALL_ROOT)/opt/mverbiste/


uninstall_itemxmldata:  FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/opt/mverbiste/data
	-$(DEL_DIR) $(INSTALL_ROOT)/opt/mverbiste/


install_itemicon: first FORCE
	@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/opt/mverbiste/ || $(MKDIR) $(INSTALL_ROOT)/opt/mverbiste/
	-$(INSTALL_DIR) $(PWD)/icons $(INSTALL_ROOT)/opt/mverbiste/


uninstall_itemicon:  FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/opt/mverbiste/icons
	-$(DEL_DIR) $(INSTALL_ROOT)/opt/mverbiste/


install_icon: first FORCE
	@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/
	-$(INSTALL_FILE) $(PWD)/mverbiste64.png $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/


uninstall_icon:  FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/mverbiste64.png
	-$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/


install_desktopfile: first FORCE
	@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/applications/hildon/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/applications/hildon/
	-$(INSTALL_FILE) $(PWD)/mverbiste.desktop $(INSTALL_ROOT)/usr/share/applications/hildon/


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


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

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


install:  install_itemxmldata install_itemicon install_icon install_desktopfile install_target  FORCE

uninstall: uninstall_itemxmldata uninstall_itemicon uninstall_icon uninstall_desktopfile uninstall_target   FORCE

FORCE:

