#############################################################################
# Makefile for building: libsystemtime.so.1.0.0
# Generated by qmake (1.04a) on: Tue Feb 10 19:36:29 2004
# Project:  netsystemtime.pro
# Template: lib
# Command: $(QMAKE) -o Makefile netsystemtime.pro
#############################################################################

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

CC       = arm-linux-gcc
CXX      = arm-linux-g++ -DQT_QWS_IPAQ
LEX      = flex
YACC     = yacc
CFLAGS   = -pipe $(CFLAGS_EXTRA) -Wall -W -g -fPIC  -DOPIE_APP_INTERFACE
CXXFLAGS = -pipe $(CFLAGS_EXTRA) -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) -Wall -W -g -fPIC  -DOPIE_APP_INTERFACE
LEXFLAGS = 
YACCFLAGS= -d
INCPATH  = -I$(OPIEDIR)/include -I$(QTDIR)/include -I.moc/$(PLATFORM)/ -I/opt/OpieSdk/opie/arm/sdk/mkspecs/qws/linux-ipaq-g++
LINK     = arm-linux-gcc
LFLAGS   = $(LFLAGS_EXTRA) -Wl,-rpath=/opt/QtPalmtop/lib -shared -Wl,-soname,libsystemtime.so.1 -Wl,-rpath,/opt/OpieSdk/opie/arm/sdk/plugins/application
LIBS     = $(SUBLIBS)  -Wl,-rpath,$(OPIEDIR)/lib -L$(OPIEDIR)/lib  -Wl,-rpath,$(QTDIR)/lib -L$(QTDIR)/lib $(LIBS_EXTRA) -lqpe -lopie -lqte
AR       = ar cqs
RANLIB   = 
MOC      = $(QTDIR)/bin/moc
UIC      = $(QTDIR)/bin/uic
QMAKE    = qmake
TAR      = tar -cf
GZIP     = gzip -9f
COPY     = cp -f
COPY_FILE= $(COPY) -p
COPY_DIR = $(COPY) -pR
DEL_FILE = rm -f
SYMLINK  = ln -sf
DEL_DIR  = rmdir
MOVE     = mv -f
PRO      = netsystemtime.pro

####### Output directory

OBJECTS_DIR = .obj/$(PLATFORM)/

####### Files

HEADERS = mainwindow.h \
		timetabwidget.h \
		formattabwidget.h \
		settingstabwidget.h \
		predicttabwidget.h \
		ntptabwidget.h
SOURCES = main.cpp \
		mainwindow.cpp \
		timetabwidget.cpp \
		formattabwidget.cpp \
		settingstabwidget.cpp \
		predicttabwidget.cpp \
		ntptabwidget.cpp
OBJECTS = .obj/$(PLATFORM)/main.o \
		.obj/$(PLATFORM)/mainwindow.o \
		.obj/$(PLATFORM)/timetabwidget.o \
		.obj/$(PLATFORM)/formattabwidget.o \
		.obj/$(PLATFORM)/settingstabwidget.o \
		.obj/$(PLATFORM)/predicttabwidget.o \
		.obj/$(PLATFORM)/ntptabwidget.o
FORMS = 
UICDECLS = 
UICIMPLS = 
SRCMOC   = .moc/$(PLATFORM)/moc_mainwindow.cpp \
		.moc/$(PLATFORM)/moc_timetabwidget.cpp \
		.moc/$(PLATFORM)/moc_formattabwidget.cpp \
		.moc/$(PLATFORM)/moc_settingstabwidget.cpp \
		.moc/$(PLATFORM)/moc_predicttabwidget.cpp \
		.moc/$(PLATFORM)/moc_ntptabwidget.cpp
OBJMOC = .obj/$(PLATFORM)/moc_mainwindow.o \
		.obj/$(PLATFORM)/moc_timetabwidget.o \
		.obj/$(PLATFORM)/moc_formattabwidget.o \
		.obj/$(PLATFORM)/moc_settingstabwidget.o \
		.obj/$(PLATFORM)/moc_predicttabwidget.o \
		.obj/$(PLATFORM)/moc_ntptabwidget.o
DIST	   = ../../../gen.pro \
		../../../include.pro \
		netsystemtime.pro
PRO      = netsystemtime.pro
QMAKE_TARGET = systemtime
DESTDIR  = $(OPIEDIR)/plugins/application/
TARGET   = libsystemtime.so.1.0.0
TARGETA	= $(OPIEDIR)/plugins/application/libsystemtime.a
TARGETD	= libsystemtime.so.1.0.0
TARGET0	= libsystemtime.so
TARGET1	= libsystemtime.so.1
TARGET2	= libsystemtime.so.1.0

first: all
####### Implicit rules

.SUFFIXES: .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  $(OPIEDIR)/plugins/application/$(TARGET)

$(OPIEDIR)/plugins/application/$(TARGET):  $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS) 
	test -d $(OPIEDIR)/plugins/application/ || mkdir -p $(OPIEDIR)/plugins/application/
	-$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
	-ln -s $(TARGET) $(TARGET0)
	-ln -s $(TARGET) $(TARGET1)
	-ln -s $(TARGET) $(TARGET2)
	-$(DEL_FILE) $(OPIEDIR)/plugins/application/$(TARGET)
	-$(DEL_FILE) $(OPIEDIR)/plugins/application/$(TARGET0)
	-$(DEL_FILE) $(OPIEDIR)/plugins/application/$(TARGET1)
	-$(DEL_FILE) $(OPIEDIR)/plugins/application/$(TARGET2)
	-$(MOVE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) $(OPIEDIR)/plugins/application/



staticlib: $(TARGETA)

$(TARGETA): $(UICDECLS) $(OBJECTS) $(OBJMOC)
	-$(DEL_FILE) $(TARGETA) 
	$(AR) $(TARGETA) $(OBJECTS) $(OBJMOC)

mocables: $(SRCMOC)

$(MOC): 
	( cd $(QTDIR)/src/moc ; $(MAKE) )

Makefile: netsystemtime.pro  /opt/OpieSdk/opie/arm/sdk/mkspecs/qws/linux-ipaq-g++/qmake.conf ../../../gen.pro \
		../../../include.pro
	$(QMAKE) -o Makefile netsystemtime.pro
qmake: 
	@$(QMAKE) -o Makefile netsystemtime.pro

dist: 
	@mkdir -p .obj/$(PLATFORM)/systemtime && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/$(PLATFORM)/systemtime/ && ( cd `dirname .obj/$(PLATFORM)/systemtime` && $(TAR) systemtime.tar systemtime && $(GZIP) systemtime.tar ) && $(MOVE) `dirname .obj/$(PLATFORM)/systemtime`/systemtime.tar.gz . && $(DEL_DIR) .obj/$(PLATFORM)/systemtime

mocclean:
	-$(DEL_FILE) $(OBJMOC)
	-$(DEL_FILE) $(SRCMOC)

uiclean:

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


####### Sub-libraries

distclean: clean
	-$(DEL_FILE) $(OPIEDIR)/plugins/application/$(TARGET) $(TARGET)
	-$(DEL_FILE) $(OPIEDIR)/plugins/application/$(TARGET0) $(OPIEDIR)/plugins/application/$(TARGET1) $(OPIEDIR)/plugins/application/$(TARGET2) $(TARGETA)


lupdate:
	lupdate -noobsolete $(PRO)

lrelease:
	lrelease $(PRO)

ipk:
	tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="" install && ipkg-build ; rm -rf ; )

opie-lupdate:
	opie-lupdate $(PRO)

opie-lrelease:
	opie-lrelease $(PRO)

messages:
	xgettext -C -n -ktr -kQT_TRANSLATE_NOOP mainwindow.h timetabwidget.h formattabwidget.h settingstabwidget.h predicttabwidget.h ntptabwidget.h main.cpp mainwindow.cpp timetabwidget.cpp formattabwidget.cpp settingstabwidget.cpp predicttabwidget.cpp ntptabwidget.cpp -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-tr.po' && xgettext -C -n -a mainwindow.h timetabwidget.h formattabwidget.h settingstabwidget.h predicttabwidget.h ntptabwidget.h main.cpp mainwindow.cpp timetabwidget.cpp formattabwidget.cpp settingstabwidget.cpp predicttabwidget.cpp ntptabwidget.cpp -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-allstrings.po'

FORCE:

####### Compile

.obj/$(PLATFORM)/main.o: main.cpp mainwindow.h \
		$(OPIEDIR)/include/qpe/qpeapplication.h \
		$(OPIEDIR)/include/opie/oapplicationfactory.h \
		$(OPIEDIR)/include/qpe/qpedecoration_qws.h \
		$(OPIEDIR)/include/qpe/timestring.h \
		$(OPIEDIR)/include/qpe/windowdecorationinterface.h \
		$(OPIEDIR)/include/qpe/qcom.h \
		$(OPIEDIR)/include/qpe/quuid.h \
		$(OPIEDIR)/include/qtopia/qcom.h \
		$(OPIEDIR)/include/qtopia/applicationinterface.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/main.o main.cpp

.obj/$(PLATFORM)/mainwindow.o: mainwindow.cpp mainwindow.h \
		timetabwidget.h \
		formattabwidget.h \
		settingstabwidget.h \
		ntptabwidget.h \
		predicttabwidget.h \
		$(OPIEDIR)/include/opie/oprocess.h \
		$(OPIEDIR)/include/opie/otabwidget.h \
		$(OPIEDIR)/include/qpe/config.h \
		$(OPIEDIR)/include/qpe/datebookdb.h \
		$(OPIEDIR)/include/qpe/qpeapplication.h \
		$(OPIEDIR)/include/qpe/qpedialog.h \
		$(OPIEDIR)/include/qpe/qcopenvelope_qws.h \
		$(OPIEDIR)/include/qpe/timestring.h \
		$(OPIEDIR)/include/opie/otabinfo.h \
		$(OPIEDIR)/include/qpe/event.h \
		$(OPIEDIR)/include/qtopia/private/palmtoprecord.h \
		$(OPIEDIR)/include/qpe/timeconversion.h \
		$(OPIEDIR)/include/qtopia/private/qpcglobal.h \
		$(OPIEDIR)/include/qtopia/private/palmtopuidgen.h \
		$(OPIEDIR)/include/qpe/qpedecoration_qws.h \
		$(OPIEDIR)/include/qpe/windowdecorationinterface.h \
		$(OPIEDIR)/include/qpe/qcom.h \
		$(OPIEDIR)/include/qpe/quuid.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/mainwindow.o mainwindow.cpp

.obj/$(PLATFORM)/timetabwidget.o: timetabwidget.cpp timetabwidget.h \
		$(OPIEDIR)/include/qpe/config.h \
		$(OPIEDIR)/include/qpe/datebookmonth.h \
		$(OPIEDIR)/include/qpe/global.h \
		$(OPIEDIR)/include/qpe/resource.h \
		$(OPIEDIR)/include/qpe/tzselect.h \
		$(OPIEDIR)/include/qpe/qcopenvelope_qws.h \
		$(OPIEDIR)/include/qtopia/private/event.h \
		$(OPIEDIR)/include/qpe/calendar.h \
		$(OPIEDIR)/include/qpe/timestring.h \
		$(OPIEDIR)/include/qtopia/private/palmtoprecord.h \
		$(OPIEDIR)/include/qpe/timeconversion.h \
		$(OPIEDIR)/include/qtopia/private/qpcglobal.h \
		$(OPIEDIR)/include/qtopia/private/palmtopuidgen.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/timetabwidget.o timetabwidget.cpp

.obj/$(PLATFORM)/formattabwidget.o: formattabwidget.cpp formattabwidget.h \
		$(OPIEDIR)/include/qpe/config.h \
		$(OPIEDIR)/include/qpe/qcopenvelope_qws.h \
		$(OPIEDIR)/include/qpe/timestring.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/formattabwidget.o formattabwidget.cpp

.obj/$(PLATFORM)/settingstabwidget.o: settingstabwidget.cpp settingstabwidget.h \
		$(OPIEDIR)/include/qpe/config.h \
		$(OPIEDIR)/include/qpe/qpeapplication.h \
		$(OPIEDIR)/include/qpe/qpedecoration_qws.h \
		$(OPIEDIR)/include/qpe/timestring.h \
		$(OPIEDIR)/include/qpe/windowdecorationinterface.h \
		$(OPIEDIR)/include/qpe/qcom.h \
		$(OPIEDIR)/include/qpe/quuid.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/settingstabwidget.o settingstabwidget.cpp

.obj/$(PLATFORM)/predicttabwidget.o: predicttabwidget.cpp predicttabwidget.h \
		$(OPIEDIR)/include/qpe/config.h \
		$(OPIEDIR)/include/qpe/timeconversion.h \
		$(OPIEDIR)/include/qtopia/private/qpcglobal.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/predicttabwidget.o predicttabwidget.cpp

.obj/$(PLATFORM)/ntptabwidget.o: ntptabwidget.cpp ntptabwidget.h \
		$(OPIEDIR)/include/qpe/resource.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/ntptabwidget.o ntptabwidget.cpp

.obj/$(PLATFORM)/moc_mainwindow.o: .moc/$(PLATFORM)/moc_mainwindow.cpp mainwindow.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/moc_mainwindow.o .moc/$(PLATFORM)/moc_mainwindow.cpp

.obj/$(PLATFORM)/moc_timetabwidget.o: .moc/$(PLATFORM)/moc_timetabwidget.cpp timetabwidget.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/moc_timetabwidget.o .moc/$(PLATFORM)/moc_timetabwidget.cpp

.obj/$(PLATFORM)/moc_formattabwidget.o: .moc/$(PLATFORM)/moc_formattabwidget.cpp formattabwidget.h $(OPIEDIR)/include/qpe/timestring.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/moc_formattabwidget.o .moc/$(PLATFORM)/moc_formattabwidget.cpp

.obj/$(PLATFORM)/moc_settingstabwidget.o: .moc/$(PLATFORM)/moc_settingstabwidget.cpp settingstabwidget.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/moc_settingstabwidget.o .moc/$(PLATFORM)/moc_settingstabwidget.cpp

.obj/$(PLATFORM)/moc_predicttabwidget.o: .moc/$(PLATFORM)/moc_predicttabwidget.cpp predicttabwidget.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/moc_predicttabwidget.o .moc/$(PLATFORM)/moc_predicttabwidget.cpp

.obj/$(PLATFORM)/moc_ntptabwidget.o: .moc/$(PLATFORM)/moc_ntptabwidget.cpp ntptabwidget.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/moc_ntptabwidget.o .moc/$(PLATFORM)/moc_ntptabwidget.cpp

.moc/ipaq-linux/moc_mainwindow.cpp: $(MOC) mainwindow.h
	$(MOC) mainwindow.h -o .moc/ipaq-linux/moc_mainwindow.cpp

.moc/ipaq-linux/moc_timetabwidget.cpp: $(MOC) timetabwidget.h
	$(MOC) timetabwidget.h -o .moc/ipaq-linux/moc_timetabwidget.cpp

.moc/ipaq-linux/moc_formattabwidget.cpp: $(MOC) formattabwidget.h
	$(MOC) formattabwidget.h -o .moc/ipaq-linux/moc_formattabwidget.cpp

.moc/ipaq-linux/moc_settingstabwidget.cpp: $(MOC) settingstabwidget.h
	$(MOC) settingstabwidget.h -o .moc/ipaq-linux/moc_settingstabwidget.cpp

.moc/ipaq-linux/moc_predicttabwidget.cpp: $(MOC) predicttabwidget.h
	$(MOC) predicttabwidget.h -o .moc/ipaq-linux/moc_predicttabwidget.cpp

.moc/ipaq-linux/moc_ntptabwidget.cpp: $(MOC) ntptabwidget.h
	$(MOC) ntptabwidget.h -o .moc/ipaq-linux/moc_ntptabwidget.cpp

####### Install

install_target: 
	@test -d $(INSTALL_ROOT)/opt/QtPalmtop/lib/ || mkdir -p $(INSTALL_ROOT)/opt/QtPalmtop/lib/
	-$(COPY) "$(OPIEDIR)/plugins/application/$(TARGET)" "$(INSTALL_ROOT)/opt/QtPalmtop/lib/$(TARGET)"
	-$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/opt/QtPalmtop/lib/$(TARGET0)"
	-$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/opt/QtPalmtop/lib/$(TARGET1)"
	-$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/opt/QtPalmtop/lib/$(TARGET2)"

uninstall_target: 
	-$(DEL_FILE) "$(INSTALL_ROOT)/opt/QtPalmtop/lib/$(TARGET)" 
	 -$(DEL_FILE) "$(INSTALL_ROOT)/opt/QtPalmtop/lib/$(TARGET0)" 
	 -$(DEL_FILE) "$(INSTALL_ROOT)/opt/QtPalmtop/lib/$(TARGET1)" 
	 -$(DEL_FILE) "$(INSTALL_ROOT)/opt/QtPalmtop/lib/$(TARGET2)"
	-$(DEL_DIR) "$(INSTALL_ROOT)/opt/QtPalmtop/lib/"


install: all install_target 

uninstall: uninstall_target 

