#############################################################################
# Makefile for building: trojita
# Generated by qmake (2.01a) (Qt 4.6.2) on: Sun Aug 1 00:19:18 2010
# Project:  MaemoGui.pro
# Template: app
# Command: /usr/bin/qmake -unix CONFIG+=maemo -o Makefile MaemoGui.pro
#############################################################################

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

CC            = gcc
CXX           = g++
DEFINES       = -DHAS_GITVERSION -DQT_NO_DEBUG -DQT_MAEMO5_LIB -DQT_WEBKIT_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS        = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS      = -pipe -ggdb -O2 -Wall -W -D_REENTRANT $(DEFINES)
INCPATH       = -I/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++ -I. -I/targets/FREMANTLE_X86/usr/include/QtCore -I/targets/FREMANTLE_X86/usr/include/QtNetwork -I/targets/FREMANTLE_X86/usr/include/QtGui -I/targets/FREMANTLE_X86/usr/include/QtSql -I/targets/FREMANTLE_X86/usr/include/QtWebKit -I/targets/FREMANTLE_X86/usr/include/QtMaemo5 -I/targets/FREMANTLE_X86/usr/include -I.. -I. -I.
LINK          = g++
LFLAGS        = -Wl,-O1 -Wl,-rpath,/usr/lib
LIBS          = $(SUBLIBS)  -L/usr/lib -L../Imap -lImap -L../MSA -lMSA -L../Streams -lStreams -L../iconloader -liconloader -L../qwwsmtpclient -lqwwsmtpclient -lQtMaemo5 -L/usr/lib -L/usr/X11R6/lib -lQtWebKit -lsqlite3 -lphonon -lQtXmlPatterns -lQtSql -lQtGui -lQtNetwork -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 \
		MessageView.cpp \
		EmbeddedWebView.cpp \
		PartWidgetFactory.cpp \
		PartWidget.cpp \
		SimplePartWidget.cpp \
		Rfc822HeaderView.cpp \
		AttachmentView.cpp \
		LoadablePartWidget.cpp \
		BaseWindow.cpp \
		Window.cpp \
		MessageWindow.cpp \
		MessageListWindow.cpp \
		SettingsDialog.cpp \
		SettingsNames.cpp \
		ComposeWidget.cpp \
		MsgListView.cpp \
		ExternalElementsWidget.cpp \
		ProtocolLoggerWidget.cpp main.version.cpp \
		moc_ComposeWidget.cpp \
		moc_MessageView.cpp \
		moc_SimplePartWidget.cpp \
		moc_EmbeddedWebView.cpp \
		moc_BaseWindow.cpp \
		moc_Window.cpp \
		moc_MessageWindow.cpp \
		moc_MessageListWindow.cpp \
		moc_Rfc822HeaderView.cpp \
		moc_LoadablePartWidget.cpp \
		moc_PartWidget.cpp \
		moc_SettingsDialog.cpp \
		moc_MsgListView.cpp \
		moc_AttachmentView.cpp \
		moc_ExternalElementsWidget.cpp \
		moc_ProtocolLoggerWidget.cpp \
		qrc_icons.cpp
OBJECTS       = main.o \
		MessageView.o \
		EmbeddedWebView.o \
		PartWidgetFactory.o \
		PartWidget.o \
		SimplePartWidget.o \
		Rfc822HeaderView.o \
		AttachmentView.o \
		LoadablePartWidget.o \
		BaseWindow.o \
		Window.o \
		MessageWindow.o \
		MessageListWindow.o \
		SettingsDialog.o \
		SettingsNames.o \
		ComposeWidget.o \
		MsgListView.o \
		ExternalElementsWidget.o \
		ProtocolLoggerWidget.o \
		main.version.o \
		moc_ComposeWidget.o \
		moc_MessageView.o \
		moc_SimplePartWidget.o \
		moc_EmbeddedWebView.o \
		moc_BaseWindow.o \
		moc_Window.o \
		moc_MessageWindow.o \
		moc_MessageListWindow.o \
		moc_Rfc822HeaderView.o \
		moc_LoadablePartWidget.o \
		moc_PartWidget.o \
		moc_SettingsDialog.o \
		moc_MsgListView.o \
		moc_AttachmentView.o \
		moc_ExternalElementsWidget.o \
		moc_ProtocolLoggerWidget.o \
		qrc_icons.o
DIST          = /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf \
		../../install.pri \
		../linking.pri \
		../gitversion.pri \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf \
		MaemoGui.pro
QMAKE_TARGET  = trojita
DESTDIR       = 
TARGET        = trojita

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): ../Imap/libImap.a ../MSA/libMSA.a ../Streams/libStreams.a ../iconloader/libiconloader.a ../qwwsmtpclient/libqwwsmtpclient.a ui_CreateMailboxDialog.h ui_ComposeWidget.h ui_SettingsImapPage.h ui_SettingsCachePage.h ui_SettingsOutgoingPage.h ui_Home.h $(OBJECTS)  
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)

Makefile: MaemoGui.pro  /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++/qmake.conf /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf \
		../../install.pri \
		../linking.pri \
		../gitversion.pri \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf \
		/usr/lib/libQtMaemo5.prl \
		/usr/lib/libQtDBus.prl \
		/usr/lib/libQtXml.prl \
		/usr/lib/libQtCore.prl \
		/usr/lib/libQtGui.prl \
		/usr/lib/libQtWebKit.prl \
		/usr/lib/libphonon.prl \
		/usr/lib/libQtXmlPatterns.prl \
		/usr/lib/libQtNetwork.prl \
		/usr/lib/libQtSql.prl
	$(QMAKE) -unix CONFIG+=maemo -o Makefile MaemoGui.pro
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf:
../../install.pri:
../linking.pri:
../gitversion.pri:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf:
/usr/lib/libQtMaemo5.prl:
/usr/lib/libQtDBus.prl:
/usr/lib/libQtXml.prl:
/usr/lib/libQtCore.prl:
/usr/lib/libQtGui.prl:
/usr/lib/libQtWebKit.prl:
/usr/lib/libphonon.prl:
/usr/lib/libQtXmlPatterns.prl:
/usr/lib/libQtNetwork.prl:
/usr/lib/libQtSql.prl:
qmake:  FORCE
	@$(QMAKE) -unix CONFIG+=maemo -o Makefile MaemoGui.pro

dist: 
	@$(CHK_DIR_EXISTS) .tmp/trojita1.0.0 || $(MKDIR) .tmp/trojita1.0.0 
	$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/trojita1.0.0/ && $(COPY_FILE) --parents main.cpp .tmp/trojita1.0.0/ && $(COPY_FILE) --parents ComposeWidget.h MessageView.h SimplePartWidget.h AbstractPartWidget.h EmbeddedWebView.h BaseWindow.h Window.h MessageWindow.h MessageListWindow.h Rfc822HeaderView.h LoadablePartWidget.h PartWidget.h SettingsNames.h SettingsDialog.h PartWidgetFactory.h MsgListView.h AttachmentView.h ExternalElementsWidget.h ProtocolLoggerWidget.h .tmp/trojita1.0.0/ && $(COPY_FILE) --parents ../icons.qrc .tmp/trojita1.0.0/ && $(COPY_FILE) --parents main.cpp MessageView.cpp EmbeddedWebView.cpp PartWidgetFactory.cpp PartWidget.cpp SimplePartWidget.cpp Rfc822HeaderView.cpp AttachmentView.cpp LoadablePartWidget.cpp BaseWindow.cpp Window.cpp MessageWindow.cpp MessageListWindow.cpp SettingsDialog.cpp SettingsNames.cpp ComposeWidget.cpp MsgListView.cpp ExternalElementsWidget.cpp ProtocolLoggerWidget.cpp .tmp/trojita1.0.0/ && $(COPY_FILE) --parents CreateMailboxDialog.ui ComposeWidget.ui SettingsImapPage.ui SettingsCachePage.ui SettingsOutgoingPage.ui Home.ui .tmp/trojita1.0.0/ && (cd `dirname .tmp/trojita1.0.0` && $(TAR) trojita1.0.0.tar trojita1.0.0 && $(COMPRESS) trojita1.0.0.tar) && $(MOVE) `dirname .tmp/trojita1.0.0`/trojita1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/trojita1.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_gitversion_make_all: main.version.cpp
compiler_gitversion_clean:
	-$(DEL_FILE) main.version.cpp
main.version.cpp: Window.h \
		BaseWindow.h \
		../Imap/ConnectionState.h \
		../Imap/Model/Cache.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/Data.h \
		../Imap/Exceptions.h \
		../Imap/Parser/LowLevelParser.h \
		main.cpp \
		FORCE
	echo "const char* gitVersion=\"""`cd /home/btsai/maemo/sandbox/trojita/src;git describe --dirty --long || git describe --long`""\";" > main.version.cpp;

compiler_moc_header_make_all: moc_ComposeWidget.cpp moc_MessageView.cpp moc_SimplePartWidget.cpp moc_EmbeddedWebView.cpp moc_BaseWindow.cpp moc_Window.cpp moc_MessageWindow.cpp moc_MessageListWindow.cpp moc_Rfc822HeaderView.cpp moc_LoadablePartWidget.cpp moc_PartWidget.cpp moc_SettingsDialog.cpp moc_MsgListView.cpp moc_AttachmentView.cpp moc_ExternalElementsWidget.cpp moc_ProtocolLoggerWidget.cpp
compiler_moc_header_clean:
	-$(DEL_FILE) moc_ComposeWidget.cpp moc_MessageView.cpp moc_SimplePartWidget.cpp moc_EmbeddedWebView.cpp moc_BaseWindow.cpp moc_Window.cpp moc_MessageWindow.cpp moc_MessageListWindow.cpp moc_Rfc822HeaderView.cpp moc_LoadablePartWidget.cpp moc_PartWidget.cpp moc_SettingsDialog.cpp moc_MsgListView.cpp moc_AttachmentView.cpp moc_ExternalElementsWidget.cpp moc_ProtocolLoggerWidget.cpp
moc_ComposeWidget.cpp: ComposeWidget.h
	/usr/bin/moc $(DEFINES) $(INCPATH) ComposeWidget.h -o moc_ComposeWidget.cpp

moc_MessageView.cpp: MessageView.h
	/usr/bin/moc $(DEFINES) $(INCPATH) MessageView.h -o moc_MessageView.cpp

moc_SimplePartWidget.cpp: AbstractPartWidget.h \
		EmbeddedWebView.h \
		../Imap/Network/MsgPartNetAccessManager.h \
		SimplePartWidget.h
	/usr/bin/moc $(DEFINES) $(INCPATH) SimplePartWidget.h -o moc_SimplePartWidget.cpp

moc_EmbeddedWebView.cpp: EmbeddedWebView.h
	/usr/bin/moc $(DEFINES) $(INCPATH) EmbeddedWebView.h -o moc_EmbeddedWebView.cpp

moc_BaseWindow.cpp: ../Imap/ConnectionState.h \
		BaseWindow.h
	/usr/bin/moc $(DEFINES) $(INCPATH) BaseWindow.h -o moc_BaseWindow.cpp

moc_Window.cpp: BaseWindow.h \
		../Imap/ConnectionState.h \
		../Imap/Model/Cache.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/Data.h \
		../Imap/Exceptions.h \
		../Imap/Parser/LowLevelParser.h \
		Window.h
	/usr/bin/moc $(DEFINES) $(INCPATH) Window.h -o moc_Window.cpp

moc_MessageWindow.cpp: BaseWindow.h \
		../Imap/ConnectionState.h \
		../Imap/Model/Cache.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/Data.h \
		../Imap/Exceptions.h \
		../Imap/Parser/LowLevelParser.h \
		MessageWindow.h
	/usr/bin/moc $(DEFINES) $(INCPATH) MessageWindow.h -o moc_MessageWindow.cpp

moc_MessageListWindow.cpp: BaseWindow.h \
		../Imap/ConnectionState.h \
		../Imap/Model/Cache.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/Data.h \
		../Imap/Exceptions.h \
		../Imap/Parser/LowLevelParser.h \
		MessageListWindow.h
	/usr/bin/moc $(DEFINES) $(INCPATH) MessageListWindow.h -o moc_MessageListWindow.cpp

moc_Rfc822HeaderView.cpp: Rfc822HeaderView.h
	/usr/bin/moc $(DEFINES) $(INCPATH) Rfc822HeaderView.h -o moc_Rfc822HeaderView.cpp

moc_LoadablePartWidget.cpp: AbstractPartWidget.h \
		SimplePartWidget.h \
		EmbeddedWebView.h \
		../Imap/Network/MsgPartNetAccessManager.h \
		LoadablePartWidget.h
	/usr/bin/moc $(DEFINES) $(INCPATH) LoadablePartWidget.h -o moc_LoadablePartWidget.cpp

moc_PartWidget.cpp: AbstractPartWidget.h \
		PartWidget.h
	/usr/bin/moc $(DEFINES) $(INCPATH) PartWidget.h -o moc_PartWidget.cpp

moc_SettingsDialog.cpp: ui_SettingsImapPage.h \
		ui_SettingsCachePage.h \
		ui_SettingsOutgoingPage.h \
		SettingsDialog.h
	/usr/bin/moc $(DEFINES) $(INCPATH) SettingsDialog.h -o moc_SettingsDialog.cpp

moc_MsgListView.cpp: MsgListView.h
	/usr/bin/moc $(DEFINES) $(INCPATH) MsgListView.h -o moc_MsgListView.cpp

moc_AttachmentView.cpp: ../Imap/Network/MsgPartNetAccessManager.h \
		AttachmentView.h
	/usr/bin/moc $(DEFINES) $(INCPATH) AttachmentView.h -o moc_AttachmentView.cpp

moc_ExternalElementsWidget.cpp: ExternalElementsWidget.h
	/usr/bin/moc $(DEFINES) $(INCPATH) ExternalElementsWidget.h -o moc_ExternalElementsWidget.cpp

moc_ProtocolLoggerWidget.cpp: ProtocolLoggerWidget.h
	/usr/bin/moc $(DEFINES) $(INCPATH) ProtocolLoggerWidget.h -o moc_ProtocolLoggerWidget.cpp

compiler_rcc_make_all: qrc_icons.cpp
compiler_rcc_clean:
	-$(DEL_FILE) qrc_icons.cpp
qrc_icons.cpp: ../icons.qrc \
		../icons/folder-grey.png \
		../icons/mail-folder-inbox.png \
		../icons/mail-forwarded.png \
		../icons/transparent.png \
		../icons/mail-replied-forw.png \
		../icons/mail-replied.png \
		../icons/trojita.png \
		../icons/network-offline.png \
		../icons/folder.png \
		../icons/network-expensive.png \
		../icons/network-online.png \
		../icons/mail-deleted.png \
		../icons/mail-recent.png \
		../icons/mail-read.png \
		../icons/mail-unread.png \
		../icons/folder-open.png
	/usr/bin/rcc -name icons ../icons.qrc -o qrc_icons.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_CreateMailboxDialog.h ui_ComposeWidget.h ui_SettingsImapPage.h ui_SettingsCachePage.h ui_SettingsOutgoingPage.h ui_Home.h
compiler_uic_clean:
	-$(DEL_FILE) ui_CreateMailboxDialog.h ui_ComposeWidget.h ui_SettingsImapPage.h ui_SettingsCachePage.h ui_SettingsOutgoingPage.h ui_Home.h
ui_CreateMailboxDialog.h: CreateMailboxDialog.ui
	/usr/bin/uic CreateMailboxDialog.ui -o ui_CreateMailboxDialog.h

ui_ComposeWidget.h: ComposeWidget.ui
	/usr/bin/uic ComposeWidget.ui -o ui_ComposeWidget.h

ui_SettingsImapPage.h: SettingsImapPage.ui
	/usr/bin/uic SettingsImapPage.ui -o ui_SettingsImapPage.h

ui_SettingsCachePage.h: SettingsCachePage.ui
	/usr/bin/uic SettingsCachePage.ui -o ui_SettingsCachePage.h

ui_SettingsOutgoingPage.h: SettingsOutgoingPage.ui
	/usr/bin/uic SettingsOutgoingPage.ui -o ui_SettingsOutgoingPage.h

ui_Home.h: Home.ui
	/usr/bin/uic Home.ui -o ui_Home.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_gitversion_clean compiler_moc_header_clean compiler_rcc_clean compiler_uic_clean 

####### Compile

main.o: main.cpp Window.h \
		BaseWindow.h \
		../Imap/ConnectionState.h \
		../Imap/Model/Cache.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/Data.h \
		../Imap/Exceptions.h \
		../Imap/Parser/LowLevelParser.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp

MessageView.o: MessageView.cpp MessageView.h \
		AbstractPartWidget.h \
		EmbeddedWebView.h \
		ExternalElementsWidget.h \
		BaseWindow.h \
		../Imap/ConnectionState.h \
		Window.h \
		../Imap/Model/Cache.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/Data.h \
		../Imap/Exceptions.h \
		../Imap/Parser/LowLevelParser.h \
		PartWidgetFactory.h \
		../Imap/Network/MsgPartNetAccessManager.h \
		../Imap/Model/MailboxTree.h \
		../Imap/Parser/Response.h \
		../Imap/Parser/Command.h \
		../Imap/Model/MsgListModel.h \
		../Imap/Model/Model.h \
		../Imap/Parser/Parser.h \
		../Streams/Socket.h \
		../Streams/SocketFactory.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o MessageView.o MessageView.cpp

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

PartWidgetFactory.o: PartWidgetFactory.cpp PartWidgetFactory.h \
		../Imap/Network/MsgPartNetAccessManager.h \
		AttachmentView.h \
		LoadablePartWidget.h \
		AbstractPartWidget.h \
		SimplePartWidget.h \
		EmbeddedWebView.h \
		PartWidget.h \
		../Imap/Model/MailboxTree.h \
		../Imap/Parser/Response.h \
		../Imap/Parser/Command.h \
		../Imap/Exceptions.h \
		../Imap/Parser/Data.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/LowLevelParser.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Model/Model.h \
		../Imap/Model/Cache.h \
		../Imap/ConnectionState.h \
		../Imap/Parser/Parser.h \
		../Streams/Socket.h \
		../Streams/SocketFactory.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o PartWidgetFactory.o PartWidgetFactory.cpp

PartWidget.o: PartWidget.cpp PartWidget.h \
		AbstractPartWidget.h \
		PartWidgetFactory.h \
		../Imap/Network/MsgPartNetAccessManager.h \
		Rfc822HeaderView.h \
		../Imap/Model/MailboxTree.h \
		../Imap/Parser/Response.h \
		../Imap/Parser/Command.h \
		../Imap/Exceptions.h \
		../Imap/Parser/Data.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/LowLevelParser.h \
		../Imap/Model/MailboxMetadata.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o PartWidget.o PartWidget.cpp

SimplePartWidget.o: SimplePartWidget.cpp AttachmentView.h \
		../Imap/Network/MsgPartNetAccessManager.h \
		SimplePartWidget.h \
		AbstractPartWidget.h \
		EmbeddedWebView.h \
		../Imap/Model/MailboxTree.h \
		../Imap/Parser/Response.h \
		../Imap/Parser/Command.h \
		../Imap/Exceptions.h \
		../Imap/Parser/Data.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/LowLevelParser.h \
		../Imap/Model/MailboxMetadata.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o SimplePartWidget.o SimplePartWidget.cpp

Rfc822HeaderView.o: Rfc822HeaderView.cpp Rfc822HeaderView.h \
		../Imap/Model/MailboxTree.h \
		../Imap/Parser/Response.h \
		../Imap/Parser/Command.h \
		../Imap/Exceptions.h \
		../Imap/Parser/Data.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/LowLevelParser.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Model/Model.h \
		../Imap/Model/Cache.h \
		../Imap/ConnectionState.h \
		../Imap/Parser/Parser.h \
		../Streams/Socket.h \
		../Streams/SocketFactory.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o Rfc822HeaderView.o Rfc822HeaderView.cpp

AttachmentView.o: AttachmentView.cpp AttachmentView.h \
		../Imap/Network/MsgPartNetAccessManager.h \
		../Imap/Model/MailboxTree.h \
		../Imap/Parser/Response.h \
		../Imap/Parser/Command.h \
		../Imap/Exceptions.h \
		../Imap/Parser/Data.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/LowLevelParser.h \
		../Imap/Model/MailboxMetadata.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o AttachmentView.o AttachmentView.cpp

LoadablePartWidget.o: LoadablePartWidget.cpp LoadablePartWidget.h \
		AbstractPartWidget.h \
		SimplePartWidget.h \
		EmbeddedWebView.h \
		../Imap/Network/MsgPartNetAccessManager.h \
		../Imap/Model/MailboxTree.h \
		../Imap/Parser/Response.h \
		../Imap/Parser/Command.h \
		../Imap/Exceptions.h \
		../Imap/Parser/Data.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/LowLevelParser.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Model/Utils.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o LoadablePartWidget.o LoadablePartWidget.cpp

BaseWindow.o: BaseWindow.cpp BaseWindow.h \
		../Imap/ConnectionState.h \
		ComposeWidget.h \
		SettingsDialog.h \
		ui_SettingsImapPage.h \
		ui_SettingsCachePage.h \
		ui_SettingsOutgoingPage.h \
		SettingsNames.h \
		../Imap/Model/Model.h \
		../Imap/Model/Cache.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/Data.h \
		../Imap/Exceptions.h \
		../Imap/Parser/LowLevelParser.h \
		../Imap/Parser/Parser.h \
		../Imap/Parser/Command.h \
		../Imap/Parser/Response.h \
		../Streams/Socket.h \
		../Streams/SocketFactory.h \
		ui_CreateMailboxDialog.h \
		../iconloader/qticonloader.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o BaseWindow.o BaseWindow.cpp

Window.o: Window.cpp Window.h \
		BaseWindow.h \
		../Imap/ConnectionState.h \
		../Imap/Model/Cache.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/Data.h \
		../Imap/Exceptions.h \
		../Imap/Parser/LowLevelParser.h \
		MessageWindow.h \
		MessageListWindow.h \
		ComposeWidget.h \
		ProtocolLoggerWidget.h \
		MessageView.h \
		MsgListView.h \
		SettingsDialog.h \
		ui_SettingsImapPage.h \
		ui_SettingsCachePage.h \
		ui_SettingsOutgoingPage.h \
		SettingsNames.h \
		../Imap/Model/Model.h \
		../Imap/Parser/Parser.h \
		../Imap/Parser/Command.h \
		../Imap/Parser/Response.h \
		../Streams/Socket.h \
		../Streams/SocketFactory.h \
		../Imap/Model/MailboxModel.h \
		../Imap/Model/MailboxTree.h \
		../Imap/Model/MsgListModel.h \
		../Imap/Model/CombinedCache.h \
		../Imap/Model/MemoryCache.h \
		../Imap/Model/PrettyMailboxModel.h \
		ui_CreateMailboxDialog.h \
		../Imap/Model/ModelTest/modeltest.h \
		../iconloader/qticonloader.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o Window.o Window.cpp

MessageWindow.o: MessageWindow.cpp MessageWindow.h \
		BaseWindow.h \
		../Imap/ConnectionState.h \
		../Imap/Model/Cache.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/Data.h \
		../Imap/Exceptions.h \
		../Imap/Parser/LowLevelParser.h \
		Window.h \
		MessageView.h \
		../Imap/Model/Model.h \
		../Imap/Parser/Parser.h \
		../Imap/Parser/Command.h \
		../Imap/Parser/Response.h \
		../Streams/Socket.h \
		../Streams/SocketFactory.h \
		../Imap/Model/MsgListModel.h \
		../Imap/Model/MailboxTree.h \
		../iconloader/qticonloader.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o MessageWindow.o MessageWindow.cpp

MessageListWindow.o: MessageListWindow.cpp MessageListWindow.h \
		BaseWindow.h \
		../Imap/ConnectionState.h \
		../Imap/Model/Cache.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/Data.h \
		../Imap/Exceptions.h \
		../Imap/Parser/LowLevelParser.h \
		MessageWindow.h \
		ComposeWidget.h \
		ProtocolLoggerWidget.h \
		MessageView.h \
		MsgListView.h \
		SettingsDialog.h \
		ui_SettingsImapPage.h \
		ui_SettingsCachePage.h \
		ui_SettingsOutgoingPage.h \
		SettingsNames.h \
		../Imap/Model/Model.h \
		../Imap/Parser/Parser.h \
		../Imap/Parser/Command.h \
		../Imap/Parser/Response.h \
		../Streams/Socket.h \
		../Streams/SocketFactory.h \
		../Imap/Model/MailboxModel.h \
		../Imap/Model/MailboxTree.h \
		../Imap/Model/ModelWatcher.h \
		../Imap/Model/MsgListModel.h \
		../Imap/Model/CombinedCache.h \
		../Imap/Model/MemoryCache.h \
		../Imap/Model/PrettyMailboxModel.h \
		../iconloader/qticonloader.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o MessageListWindow.o MessageListWindow.cpp

SettingsDialog.o: SettingsDialog.cpp SettingsDialog.h \
		ui_SettingsImapPage.h \
		ui_SettingsCachePage.h \
		ui_SettingsOutgoingPage.h \
		SettingsNames.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o SettingsDialog.o SettingsDialog.cpp

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

ComposeWidget.o: ComposeWidget.cpp ComposeWidget.h \
		ui_ComposeWidget.h \
		SettingsNames.h \
		../MSA/Sendmail.h \
		../MSA/AbstractMSA.h \
		../MSA/SMTP.h \
		../qwwsmtpclient/qwwsmtpclient.h \
		../Imap/Encoders.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o ComposeWidget.o ComposeWidget.cpp

MsgListView.o: MsgListView.cpp MsgListView.h \
		../Imap/Model/MsgListModel.h \
		../Imap/Model/Model.h \
		../Imap/Model/Cache.h \
		../Imap/Model/MailboxMetadata.h \
		../Imap/Parser/Message.h \
		../Imap/Parser/Data.h \
		../Imap/Exceptions.h \
		../Imap/Parser/LowLevelParser.h \
		../Imap/ConnectionState.h \
		../Imap/Parser/Parser.h \
		../Imap/Parser/Command.h \
		../Imap/Parser/Response.h \
		../Streams/Socket.h \
		../Streams/SocketFactory.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o MsgListView.o MsgListView.cpp

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

####### Install

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

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


install_desktop: first FORCE
	@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/applications/hildon/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/applications/hildon/ 
	-$(INSTALL_FILE) /home/btsai/maemo/sandbox/trojita/src/MaemoGui/data/trojita.desktop $(INSTALL_ROOT)/usr/share/applications/hildon/


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


install_icon48: first FORCE
	@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/ 
	-$(INSTALL_FILE) /home/btsai/maemo/sandbox/trojita/src/MaemoGui/data/48x48/trojita.png $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/


uninstall_icon48:  FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/trojita.png
	-$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/ 


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) /home/btsai/maemo/sandbox/trojita/src/MaemoGui/data/64x64/trojita.png $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/


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


install:  install_target install_desktop install_icon48 install_icon64  FORCE

uninstall: uninstall_target uninstall_desktop uninstall_icon48 uninstall_icon64   FORCE

FORCE:

