source: liacs/pm/qt-nim2/Makefile@ 9

Last change on this file since 9 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

  • Property svn:executable set to *
File size: 3.2 KB
RevLine 
[2]1#############################################################################
2# Makefile for building: qt-nim
3# Generated by qmake (1.03a) on: Fri Dec 10 10:02:16 2004
4# Project: qt-nim.pro
5# Template: app
6# Command: $(QMAKE) qt-nim.pro
7#############################################################################
8
9####### Compiler, tools and options
10
11CC = gcc
12CXX = g++
13LEX = flex
14YACC = yacc
15CFLAGS = -pipe -g
16CXXFLAGS = -pipe -g
17LEXFLAGS =
18YACCFLAGS= -d
19INCPATH = -I. -I$(QTDIR)/include -I$(QTDIR)/mkspecs/default
20LINK = g++
21LFLAGS =
22LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
23AR = ar cqs
24RANLIB =
25MOC = $(QTDIR)/bin/moc
26UIC = $(QTDIR)/bin/uic
27QMAKE = qmake
28TAR = tar -cf
29GZIP = gzip -9f
30COPY = cp -f
31COPY_FILE= $(COPY) -p
32COPY_DIR = $(COPY) -pR
33DEL_FILE = rm -f
34SYMLINK = ln -sf
35DEL_DIR = rmdir
36MOVE = mv
37
38####### Output directory
39
40OBJECTS_DIR = ./
41
42####### Files
43
44HEADERS = const.h \
45 nimform.h \
46 optionsform.h \
47 stapeldisplay.h
48SOURCES = main.cpp \
49 nimform.cpp \
50 optionsform.cpp \
51 stapeldisplay.cpp
52OBJECTS = main.o \
53 nimform.o \
54 optionsform.o \
55 stapeldisplay.o
56FORMS =
57UICDECLS =
58UICIMPLS =
59SRCMOC = moc_nimform.cpp \
60 moc_optionsform.cpp \
61 moc_stapeldisplay.cpp
62OBJMOC = moc_nimform.o \
63 moc_optionsform.o \
64 moc_stapeldisplay.o
65DIST = qt-nim.pro
66QMAKE_TARGET = qt-nim
67DESTDIR =
68TARGET = qt-nim
69
70first: all
71####### Implicit rules
72
73.SUFFIXES: .c .cpp .cc .cxx .C
74
75.cpp.o:
76 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
77
78.cc.o:
79 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
80
81.cxx.o:
82 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
83
84.C.o:
85 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
86
87.c.o:
88 $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
89
90####### Build rules
91
92all: Makefile $(TARGET)
93
94$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
95 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
96
97mocables: $(SRCMOC)
98
99$(MOC):
100 ( cd $(QTDIR)/src/moc ; $(MAKE) )
101
102Makefile: qt-nim.pro $(QTDIR)/mkspecs/default/qmake.conf
103 $(QMAKE) qt-nim.pro
104qmake:
105 @$(QMAKE) qt-nim.pro
106
107dist:
108 @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
109
110mocclean:
111 -$(DEL_FILE) $(OBJMOC)
112 -$(DEL_FILE) $(SRCMOC)
113
114uiclean:
115
116clean: mocclean
117 -$(DEL_FILE) $(OBJECTS)
118 -$(DEL_FILE) *~ core *.core
119
120
121####### Sub-libraries
122
123distclean: clean
124 -$(DEL_FILE) $(TARGET) $(TARGET)
125
126
127FORCE:
128
129####### Compile
130
131main.o: main.cpp nimform.h \
132 stapeldisplay.h
133
134nimform.o: nimform.cpp nimform.h \
135 optionsform.h \
136 stapeldisplay.h
137
138optionsform.o: optionsform.cpp optionsform.h \
139 const.h
140
141stapeldisplay.o: stapeldisplay.cpp stapeldisplay.h
142
143moc_nimform.o: moc_nimform.cpp nimform.h stapeldisplay.h
144
145moc_optionsform.o: moc_optionsform.cpp optionsform.h
146
147moc_stapeldisplay.o: moc_stapeldisplay.cpp stapeldisplay.h
148
149moc_nimform.cpp: $(MOC) nimform.h
150 $(MOC) nimform.h -o moc_nimform.cpp
151
152moc_optionsform.cpp: $(MOC) optionsform.h
153 $(MOC) optionsform.h -o moc_optionsform.cpp
154
155moc_stapeldisplay.cpp: $(MOC) stapeldisplay.h
156 $(MOC) stapeldisplay.h -o moc_stapeldisplay.cpp
157
158####### Install
159
160install: all
161
162uninstall:
163
Note: See TracBrowser for help on using the repository browser.