1 | #############################################################################
|
---|
2 | # Makefile for building: unnamed
|
---|
3 | # Generated by qmake (1.03a) on: Fri Dec 10 16:41:09 2004
|
---|
4 | # Project: unnamed.pro
|
---|
5 | # Template: app
|
---|
6 | # Command: $(QMAKE) unnamed.pro
|
---|
7 | #############################################################################
|
---|
8 |
|
---|
9 | ####### Compiler, tools and options
|
---|
10 |
|
---|
11 | CC = gcc
|
---|
12 | CXX = g++
|
---|
13 | LEX = flex
|
---|
14 | YACC = yacc
|
---|
15 | CFLAGS = -pipe -Wall -W -I/usr/include/freetype2 -I/usr/include/freetype2/freetype -O2 -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fno-exceptions -DQT_NO_DEBUG
|
---|
16 | CXXFLAGS = -pipe -Wall -W -I/usr/include/freetype2 -I/usr/include/freetype2/freetype -O2 -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fno-exceptions -DQT_NO_DEBUG
|
---|
17 | LEXFLAGS =
|
---|
18 | YACCFLAGS= -d
|
---|
19 | INCPATH = -I$(QTDIR)/include -I.ui/ -I../tmp -I.moc/ -I$(QTDIR)/mkspecs/default
|
---|
20 | LINK = g++
|
---|
21 | LFLAGS =
|
---|
22 | LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
|
---|
23 | AR = ar cqs
|
---|
24 | RANLIB =
|
---|
25 | MOC = $(QTDIR)/bin/moc
|
---|
26 | UIC = $(QTDIR)/bin/uic
|
---|
27 | QMAKE = qmake
|
---|
28 | TAR = tar -cf
|
---|
29 | GZIP = gzip -9f
|
---|
30 | COPY = cp -f
|
---|
31 | COPY_FILE= $(COPY) -p
|
---|
32 | COPY_DIR = $(COPY) -pR
|
---|
33 | DEL_FILE = rm -f
|
---|
34 | SYMLINK = ln -sf
|
---|
35 | DEL_DIR = rmdir
|
---|
36 | MOVE = mv
|
---|
37 |
|
---|
38 | ####### Output directory
|
---|
39 |
|
---|
40 | OBJECTS_DIR = .obj/
|
---|
41 |
|
---|
42 | ####### Files
|
---|
43 |
|
---|
44 | HEADERS =
|
---|
45 | SOURCES =
|
---|
46 | OBJECTS = .obj/form1.o
|
---|
47 | FORMS = form1.ui
|
---|
48 | UICDECLS = .ui/form1.h
|
---|
49 | UICIMPLS = .ui/form1.cpp
|
---|
50 | SRCMOC = .moc/moc_form1.cpp
|
---|
51 | OBJMOC = .obj/moc_form1.o
|
---|
52 | DIST = unnamed.pro
|
---|
53 | QMAKE_TARGET = unnamed
|
---|
54 | DESTDIR =
|
---|
55 | TARGET = unnamed
|
---|
56 |
|
---|
57 | first: all
|
---|
58 | ####### Implicit rules
|
---|
59 |
|
---|
60 | .SUFFIXES: .c .cpp .cc .cxx .C
|
---|
61 |
|
---|
62 | .cpp.o:
|
---|
63 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
---|
64 |
|
---|
65 | .cc.o:
|
---|
66 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
---|
67 |
|
---|
68 | .cxx.o:
|
---|
69 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
---|
70 |
|
---|
71 | .C.o:
|
---|
72 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
---|
73 |
|
---|
74 | .c.o:
|
---|
75 | $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
|
---|
76 |
|
---|
77 | ####### Build rules
|
---|
78 |
|
---|
79 | all: Makefile $(TARGET)
|
---|
80 |
|
---|
81 | $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
|
---|
82 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
|
---|
83 |
|
---|
84 | mocables: $(SRCMOC)
|
---|
85 |
|
---|
86 | $(MOC):
|
---|
87 | ( cd $(QTDIR)/src/moc ; $(MAKE) )
|
---|
88 |
|
---|
89 | Makefile: unnamed.pro $(QTDIR)/mkspecs/default/qmake.conf
|
---|
90 | $(QMAKE) unnamed.pro
|
---|
91 | qmake:
|
---|
92 | @$(QMAKE) unnamed.pro
|
---|
93 |
|
---|
94 | dist:
|
---|
95 | @mkdir -p .obj/unnamed && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/unnamed/ && ( cd `dirname .obj/unnamed` && $(TAR) unnamed.tar unnamed && $(GZIP) unnamed.tar ) && $(MOVE) `dirname .obj/unnamed`/unnamed.tar.gz . && $(DEL_DIR) .obj/unnamed
|
---|
96 |
|
---|
97 | mocclean:
|
---|
98 | -$(DEL_FILE) $(OBJMOC)
|
---|
99 | -$(DEL_FILE) $(SRCMOC)
|
---|
100 |
|
---|
101 | uiclean:
|
---|
102 | -$(DEL_FILE) $(UICIMPLS) $(UICDECLS)
|
---|
103 |
|
---|
104 | clean: mocclean uiclean
|
---|
105 | -$(DEL_FILE) $(OBJECTS)
|
---|
106 | -$(DEL_FILE) *~ core *.core
|
---|
107 |
|
---|
108 |
|
---|
109 | ####### Sub-libraries
|
---|
110 |
|
---|
111 | distclean: clean
|
---|
112 | -$(DEL_FILE) $(TARGET) $(TARGET)
|
---|
113 |
|
---|
114 |
|
---|
115 | FORCE:
|
---|
116 |
|
---|
117 | ####### Compile
|
---|
118 |
|
---|
119 | .ui/form1.h: form1.ui
|
---|
120 | $(UIC) form1.ui -o .ui/form1.h
|
---|
121 |
|
---|
122 | .ui/form1.cpp: .ui/form1.h form1.ui
|
---|
123 | $(UIC) form1.ui -i form1.h -o .ui/form1.cpp
|
---|
124 |
|
---|
125 | .obj/form1.o: .ui/form1.cpp .ui/form1.h
|
---|
126 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/form1.o .ui/form1.cpp
|
---|
127 |
|
---|
128 | .obj/moc_form1.o: .moc/moc_form1.cpp .ui/form1.h
|
---|
129 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_form1.o .moc/moc_form1.cpp
|
---|
130 |
|
---|
131 | .moc/moc_form1.cpp: $(MOC) .ui/form1.h
|
---|
132 | $(MOC) .ui/form1.h -o .moc/moc_form1.cpp
|
---|
133 |
|
---|
134 | ####### Install
|
---|
135 |
|
---|
136 | install: all
|
---|
137 |
|
---|
138 | uninstall:
|
---|
139 |
|
---|