#############################################################################
# Makefile for building: build/k9call
# Generated by qmake (2.01a) (Qt 4.6.2) on: Sat Jul 17 05:51:55 2010
# Project:  k9call.pro
# Template: app
# Command: /usr/bin/qmake -unix -o Makefile k9call.pro
#############################################################################

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

CC            = gcc
CXX           = g++
DEFINES       = -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS        = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS      = -pipe -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/QtGui -I/targets/FREMANTLE_X86/usr/include/QtDBus -I/targets/FREMANTLE_X86/usr/include -I/usr/include/QtContacts -Iqmaemo5homescreenadaptor -Isrc -Ibuild -I/targets/FREMANTLE_X86/usr/include -Ibuild
LINK          = g++
LFLAGS        = -Wl,-O1 -Wl,-rpath,/usr/lib -Wl,-rpath,/usr/lib
LIBS          = $(SUBLIBS)  -L/usr/lib -L/usr/lib -lQtContacts -lQtDBus -lQtXml -lQtGui -L/usr/X11R6/lib -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   = build/

####### Files

SOURCES       = src/qtmain.cpp \
		src/k9call.cpp \
		src/t9trie.cpp \
		src/widgetpushbutton.cpp \
		src/contactsthreadworker.cpp \
		qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.cpp build/moc_k9call.cpp \
		build/moc_widgetpushbutton.cpp \
		build/moc_contactsthreadworker.cpp \
		build/moc_qmaemo5homescreenadaptor.cpp
OBJECTS       = build/qtmain.o \
		build/k9call.o \
		build/t9trie.o \
		build/widgetpushbutton.o \
		build/contactsthreadworker.o \
		build/qmaemo5homescreenadaptor.o \
		build/moc_k9call.o \
		build/moc_widgetpushbutton.o \
		build/moc_contactsthreadworker.o \
		build/moc_qmaemo5homescreenadaptor.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 \
		qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.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/qdbus.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/dbusinterfaces.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/dbusadaptors.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/mobility.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/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 \
		k9call.pro
QMAKE_TARGET  = k9call
DESTDIR       = build/
TARGET        = build/k9call

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): build/ui_k9call.h build/ui_settings.h $(OBJECTS)  
	@$(CHK_DIR_EXISTS) build/ || $(MKDIR) build/ 
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)

Makefile: k9call.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 \
		qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.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/qdbus.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/dbusinterfaces.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/dbusadaptors.prf \
		/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/mobility.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/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/libQtDBus.prl \
		/usr/lib/libQtXml.prl \
		/usr/lib/libQtCore.prl \
		/usr/lib/libQtGui.prl
	$(QMAKE) -unix -o Makefile k9call.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:
qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.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/qdbus.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/dbusinterfaces.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/dbusadaptors.prf:
/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/mobility.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/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/libQtDBus.prl:
/usr/lib/libQtXml.prl:
/usr/lib/libQtCore.prl:
/usr/lib/libQtGui.prl:
qmake:  FORCE
	@$(QMAKE) -unix -o Makefile k9call.pro

dist: 
	@$(CHK_DIR_EXISTS) build/k9call1.0.0 || $(MKDIR) build/k9call1.0.0 
	$(COPY_FILE) --parents $(SOURCES) $(DIST) build/k9call1.0.0/ && $(COPY_FILE) --parents src/k9call.h src/t9trie.h src/widgetpushbutton.h src/contactsthreadworker.h qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.h build/k9call1.0.0/ && $(COPY_FILE) --parents src/qtmain.cpp src/k9call.cpp src/t9trie.cpp src/widgetpushbutton.cpp src/contactsthreadworker.cpp qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.cpp build/k9call1.0.0/ && $(COPY_FILE) --parents src/k9call.ui src/settings.ui build/k9call1.0.0/ && (cd `dirname build/k9call1.0.0` && $(TAR) k9call1.0.0.tar k9call1.0.0 && $(COMPRESS) k9call1.0.0.tar) && $(MOVE) `dirname build/k9call1.0.0`/k9call1.0.0.tar.gz . && $(DEL_FILE) -r build/k9call1.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: build/moc_k9call.cpp build/moc_widgetpushbutton.cpp build/moc_contactsthreadworker.cpp build/moc_qmaemo5homescreenadaptor.cpp
compiler_moc_header_clean:
	-$(DEL_FILE) build/moc_k9call.cpp build/moc_widgetpushbutton.cpp build/moc_contactsthreadworker.cpp build/moc_qmaemo5homescreenadaptor.cpp
build/moc_k9call.cpp: build/ui_k9call.h \
		build/ui_settings.h \
		src/t9trie.h \
		src/contactsthreadworker.h \
		src/k9call.h
	/usr/bin/moc $(DEFINES) $(INCPATH) src/k9call.h -o build/moc_k9call.cpp

build/moc_widgetpushbutton.cpp: src/widgetpushbutton.h
	/usr/bin/moc $(DEFINES) $(INCPATH) src/widgetpushbutton.h -o build/moc_widgetpushbutton.cpp

build/moc_contactsthreadworker.cpp: src/contactsthreadworker.h
	/usr/bin/moc $(DEFINES) $(INCPATH) src/contactsthreadworker.h -o build/moc_contactsthreadworker.cpp

build/moc_qmaemo5homescreenadaptor.cpp: qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.h
	/usr/bin/moc $(DEFINES) $(INCPATH) qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.h -o build/moc_qmaemo5homescreenadaptor.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:
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_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: build/ui_k9call.h build/ui_settings.h
compiler_uic_clean:
	-$(DEL_FILE) build/ui_k9call.h build/ui_settings.h
build/ui_k9call.h: src/k9call.ui
	/usr/bin/uic src/k9call.ui -o build/ui_k9call.h

build/ui_settings.h: src/settings.ui
	/usr/bin/uic src/settings.ui -o build/ui_settings.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

build/qtmain.o: src/qtmain.cpp src/k9call.h \
		build/ui_k9call.h \
		build/ui_settings.h \
		src/t9trie.h \
		src/contactsthreadworker.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o build/qtmain.o src/qtmain.cpp

build/k9call.o: src/k9call.cpp src/k9call.h \
		build/ui_k9call.h \
		build/ui_settings.h \
		src/t9trie.h \
		src/contactsthreadworker.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o build/k9call.o src/k9call.cpp

build/t9trie.o: src/t9trie.cpp src/t9trie.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o build/t9trie.o src/t9trie.cpp

build/widgetpushbutton.o: src/widgetpushbutton.cpp src/widgetpushbutton.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o build/widgetpushbutton.o src/widgetpushbutton.cpp

build/contactsthreadworker.o: src/contactsthreadworker.cpp src/contactsthreadworker.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o build/contactsthreadworker.o src/contactsthreadworker.cpp

build/qmaemo5homescreenadaptor.o: qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.cpp qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o build/qmaemo5homescreenadaptor.o qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.cpp

build/moc_k9call.o: build/moc_k9call.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o build/moc_k9call.o build/moc_k9call.cpp

build/moc_widgetpushbutton.o: build/moc_widgetpushbutton.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o build/moc_widgetpushbutton.o build/moc_widgetpushbutton.cpp

build/moc_contactsthreadworker.o: build/moc_contactsthreadworker.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o build/moc_contactsthreadworker.o build/moc_contactsthreadworker.cpp

build/moc_qmaemo5homescreenadaptor.o: build/moc_qmaemo5homescreenadaptor.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o build/moc_qmaemo5homescreenadaptor.o build/moc_qmaemo5homescreenadaptor.cpp

####### Install

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

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


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


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


install:  install_target install_desktop  FORCE

uninstall: uninstall_target uninstall_desktop   FORCE

FORCE:

