############################################################################# # Makefile for building: qpsword # Generated by qmake (1.04a) on: Tue Dec 2 13:22:00 2003 # Project: qpsword.pro # Template: app # Command: $(QMAKE) -o Makefile qpsword.pro ############################################################################# ####### Compiler, tools and options CC = gcc CXX = g++ LEX = flex YACC = yacc CFLAGS = -pipe $(CFLAGS_EXTRA) -Wall -W $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2) -DQT_NO_DEBUG CXXFLAGS = -pipe $(CFLAGS_EXTRA) -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) -Wall -W $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2) -DQT_NO_DEBUG LEXFLAGS = YACCFLAGS= -d INCPATH = -I$(QTDIR)/include -I$(OPIEDIR)/include -I/usr/include/sword -I$(QTDIR)/include -I/opt/opie/mkspecs/qws/linux-x86-g++ LINK = g++ LFLAGS = $(LFLAGS_EXTRA) LIBS = $(SUBLIBS) -Wl,-rpath,$(QTDIR)/lib -L$(QTDIR)/lib $(LIBS_EXTRA) -lsword -lqpe -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 = qpsword.pro ####### Output directory OBJECTS_DIR = ./ ####### Files HEADERS = qpsword.h \ qswdisplay.h SOURCES = main.cpp \ qpsword.cpp \ qswdisplay.cpp OBJECTS = main.o \ qpsword.o \ qswdisplay.o \ about.o \ qpswordview.o \ qpswconfig.o FORMS = about.ui \ qpswordview.ui \ qpswconfig.ui UICDECLS = about.h \ qpswordview.h \ qpswconfig.h UICIMPLS = about.cpp \ qpswordview.cpp \ qpswconfig.cpp SRCMOC = moc_qpsword.cpp \ moc_qswdisplay.cpp \ moc_about.cpp \ moc_qpswordview.cpp \ moc_qpswconfig.cpp OBJMOC = moc_qpsword.o \ moc_qswdisplay.o \ moc_about.o \ moc_qpswordview.o \ moc_qpswconfig.o DIST = /scratch/opt/qpsword/qpsword.pro PRO = qpsword.pro QMAKE_TARGET = qpsword DESTDIR = TARGET = qpsword 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 $(TARGET) $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) mocables: $(SRCMOC) $(MOC): ( cd $(QTDIR)/src/moc ; $(MAKE) ) Makefile: qpsword.pro /opt/opie/mkspecs/qws/linux-x86-g++/qmake.conf $(QMAKE) -o Makefile qpsword.pro qmake: @$(QMAKE) -o Makefile qpsword.pro dist: @mkdir -p .tmp/qpsword && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .tmp/qpsword/ && ( cd `dirname .tmp/qpsword` && $(TAR) qpsword.tar qpsword && $(GZIP) qpsword.tar ) && $(MOVE) `dirname .tmp/qpsword`/qpsword.tar.gz . && $(DEL_DIR) .tmp/qpsword mocclean: -$(DEL_FILE) $(OBJMOC) -$(DEL_FILE) $(SRCMOC) uiclean: -$(DEL_FILE) $(UICIMPLS) $(UICDECLS) clean: mocclean uiclean -$(DEL_FILE) $(OBJECTS) -$(DEL_FILE) *~ core *.core ####### Sub-libraries distclean: clean -$(DEL_FILE) $(TARGET) $(TARGET) FORCE: ####### Compile main.o: main.cpp qpsword.h \ $(OPIEDIR)/include/qpe/qpeapplication.h \ qpswordview.h \ qswdisplay.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 qpsword.o: qpsword.cpp qpsword.h \ qswtextview.h \ about.h \ qpswconfig.h \ qpswordview.h \ qswdisplay.h qswdisplay.o: qswdisplay.cpp qswdisplay.h \ qpsword.h \ qpswordview.h about.h: about.ui $(UIC) about.ui -o about.h about.cpp: about.h about.ui $(UIC) about.ui -i about.h -o about.cpp qpswordview.h: qpswordview.ui qswdisplay.h $(UIC) qpswordview.ui -o qpswordview.h qpswordview.cpp: qpswordview.h qpswordview.ui qswdisplay.h $(UIC) qpswordview.ui -i qpswordview.h -o qpswordview.cpp qpswconfig.h: qpswconfig.ui $(UIC) qpswconfig.ui -o qpswconfig.h qpswconfig.cpp: qpswconfig.h qpswconfig.ui $(UIC) qpswconfig.ui -i qpswconfig.h -o qpswconfig.cpp about.o: about.cpp about.h qpswordview.o: qpswordview.cpp qpswordview.h qpswconfig.o: qpswconfig.cpp qpswconfig.h moc_qpsword.o: moc_qpsword.cpp qpsword.h qpswordview.h \ qswdisplay.h moc_qswdisplay.o: moc_qswdisplay.cpp qswdisplay.h moc_about.o: moc_about.cpp about.h moc_qpswordview.o: moc_qpswordview.cpp qpswordview.h moc_qpswconfig.o: moc_qpswconfig.cpp qpswconfig.h moc_qpsword.cpp: $(MOC) qpsword.h $(MOC) qpsword.h -o moc_qpsword.cpp moc_qswdisplay.cpp: $(MOC) qswdisplay.h $(MOC) qswdisplay.h -o moc_qswdisplay.cpp moc_about.cpp: $(MOC) about.h $(MOC) about.h -o moc_about.cpp moc_qpswordview.cpp: $(MOC) qpswordview.h $(MOC) qpswordview.h -o moc_qpswordview.cpp moc_qpswconfig.cpp: $(MOC) qpswconfig.h $(MOC) qpswconfig.h -o moc_qpswconfig.cpp ####### Install install: all uninstall: