############################################################################# # Makefile for building: qt-nim # Generated by qmake (1.03a) on: Fri Dec 10 10:02:16 2004 # Project: qt-nim.pro # Template: app # Command: $(QMAKE) qt-nim.pro ############################################################################# ####### Compiler, tools and options CC = gcc CXX = g++ LEX = flex YACC = yacc CFLAGS = -pipe -g CXXFLAGS = -pipe -g LEXFLAGS = YACCFLAGS= -d INCPATH = -I. -I$(QTDIR)/include -I$(QTDIR)/mkspecs/default LINK = g++ LFLAGS = LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm 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 ####### Output directory OBJECTS_DIR = ./ ####### Files HEADERS = const.h \ nimform.h \ optionsform.h \ stapeldisplay.h SOURCES = main.cpp \ nimform.cpp \ optionsform.cpp \ stapeldisplay.cpp OBJECTS = main.o \ nimform.o \ optionsform.o \ stapeldisplay.o FORMS = UICDECLS = UICIMPLS = SRCMOC = moc_nimform.cpp \ moc_optionsform.cpp \ moc_stapeldisplay.cpp OBJMOC = moc_nimform.o \ moc_optionsform.o \ moc_stapeldisplay.o DIST = qt-nim.pro QMAKE_TARGET = qt-nim DESTDIR = TARGET = qt-nim 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: qt-nim.pro $(QTDIR)/mkspecs/default/qmake.conf $(QMAKE) qt-nim.pro qmake: @$(QMAKE) qt-nim.pro dist: @mkdir -p .tmp/qt-nim && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .tmp/qt-nim/ && ( cd `dirname .tmp/qt-nim` && $(TAR) qt-nim.tar qt-nim && $(GZIP) qt-nim.tar ) && $(MOVE) `dirname .tmp/qt-nim`/qt-nim.tar.gz . && $(DEL_DIR) .tmp/qt-nim mocclean: -$(DEL_FILE) $(OBJMOC) -$(DEL_FILE) $(SRCMOC) uiclean: clean: mocclean -$(DEL_FILE) $(OBJECTS) -$(DEL_FILE) *~ core *.core ####### Sub-libraries distclean: clean -$(DEL_FILE) $(TARGET) $(TARGET) FORCE: ####### Compile main.o: main.cpp nimform.h \ stapeldisplay.h nimform.o: nimform.cpp nimform.h \ optionsform.h \ stapeldisplay.h optionsform.o: optionsform.cpp optionsform.h \ const.h stapeldisplay.o: stapeldisplay.cpp stapeldisplay.h moc_nimform.o: moc_nimform.cpp nimform.h stapeldisplay.h moc_optionsform.o: moc_optionsform.cpp optionsform.h moc_stapeldisplay.o: moc_stapeldisplay.cpp stapeldisplay.h moc_nimform.cpp: $(MOC) nimform.h $(MOC) nimform.h -o moc_nimform.cpp moc_optionsform.cpp: $(MOC) optionsform.h $(MOC) optionsform.h -o moc_optionsform.cpp moc_stapeldisplay.cpp: $(MOC) stapeldisplay.h $(MOC) stapeldisplay.h -o moc_stapeldisplay.cpp ####### Install install: all uninstall: