summaryrefslogtreecommitdiff
path: root/qmake/Makefile
blob: faaeafe6ae363b2ca6c7f1dfd9a88a1cfb7bba74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
TOPDIR=$(shell pwd)
QMAKESPECSDIR=$(OPIEDIR)/mkspecs

########################################################################
## This file was autogenerated by configure, all changes will be lost ##
########################################################################
CC		= gcc
CXX		= g++

#qmake code
OBJS=project.o main.o makefile.o unixmake2.o unixmake.o borland_bmake.o \
     msvc_nmake.o msvc_dsp.o msvc_vcproj.o option.o winmakefile.o \
     projectgenerator.o metrowerks_xml.o  pbuilder_pbx.o msvc_objectmodel.o

#qt code
QOBJS=qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o \
      qdatastream.o qgarray.o qbuffer.o qglist.o qptrcollection.o qfile.o \
      qfile_unix.o qregexp.o qgvector.o qgcache.o qbitarray.o qdir.o \
      qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o \
      qconfig.o

CFLAGS=  \
	-I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac \
	-I$(TOPDIR)/include -I$(TOPDIR)/include/qmake -I$(QMAKESPECSDIR)/default \
	-I$(TOPDIR)/include/private \
	-DQT_NO_TEXTCODEC -DQT_LITE_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I$(QMAKESPECSDIR)/qws/linux-x86-g++
CXXFLAGS= $(CFLAGS)
LFLAGS=

qmake: $(OBJS) $(QOBJS)
	$(CXX) -o $@ $(OBJS) $(QOBJS) $(LFLAGS)
	$(if $(OPIEDIR),rm -f $(OPIEDIR)/bin/$@)
	$(if $(OPIEDIR),ln -s ../qmake/$@ $(OPIEDIR)/bin/$@)

install: qmake
	[ -d $(INSTALL_ROOT)$(QTDIR)/bin ] || mkdir -p $(INSTALL_ROOT)$(QTDIR)/bin
	-cp -f $(QTDIR)/bin/qmake $(INSTALL_ROOT)$(QTDIR)/bin
	[ -d $(INSTALL_ROOT)$(QTDIR) ] || mkdir -p $(INSTALL_ROOT)$(QTDIR)
	-cp -r -f $(QMAKESPECDIR) $(INSTALL_ROOT)$(QTDIR)

clean::
	rm -f $(OBJS) $(QOBJS)

distclean:: clean
	rm -rf qmake .deps

# don't use optimization for these
qtextstream.o: $(TOPDIR)/tools/qtextstream.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qtextstream.cpp

qiodevice.o: $(TOPDIR)/tools/qiodevice.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qiodevice.cpp

qglobal.o: $(TOPDIR)/tools/qglobal.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qglobal.cpp

qgdict.o: $(TOPDIR)/tools/qgdict.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qgdict.cpp

qcstring.o: $(TOPDIR)/tools/qcstring.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qcstring.cpp

qstring.o: $(TOPDIR)/tools/qstring.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qstring.cpp

qdatastream.o: $(TOPDIR)/tools/qdatastream.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qdatastream.cpp

qgarray.o: $(TOPDIR)/tools/qgarray.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qgarray.cpp

qbuffer.o: $(TOPDIR)/tools/qbuffer.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qbuffer.cpp

qglist.o: $(TOPDIR)/tools/qglist.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qglist.cpp

qptrcollection.o: $(TOPDIR)/tools/qptrcollection.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qptrcollection.cpp

qfile.o: $(TOPDIR)/tools/qfile.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qfile.cpp

qfile_unix.o: $(TOPDIR)/tools/qfile_unix.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qfile_unix.cpp

qregexp.o: $(TOPDIR)/tools/qregexp.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qregexp.cpp

qgvector.o: $(TOPDIR)/tools/qgvector.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qgvector.cpp

qgcache.o: $(TOPDIR)/tools/qgcache.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qgcache.cpp

qbitarray.o: $(TOPDIR)/tools/qbitarray.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qbitarray.cpp

qdir.o: $(TOPDIR)/tools/qdir.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qdir.cpp

qfileinfo_unix.o: $(TOPDIR)/tools/qfileinfo_unix.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qfileinfo_unix.cpp

qdir_unix.o: $(TOPDIR)/tools/qdir_unix.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qdir_unix.cpp

qfileinfo.o: $(TOPDIR)/tools/qfileinfo.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qfileinfo.cpp

qdatetime.o: $(TOPDIR)/tools/qdatetime.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qdatetime.cpp

qstringlist.o: $(TOPDIR)/tools/qstringlist.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qstringlist.cpp

qmap.o: $(TOPDIR)/tools/qmap.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qmap.cpp

qconfig.o: $(TOPDIR)/tools/qconfig.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) $(TOPDIR)/tools/qconfig.cpp

winmakefile.o: generators/win32/winmakefile.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) generators/win32/winmakefile.cpp

project.o: project.cpp project.h option.h
	$(CXX) -c -o $@ $(CXXFLAGS) project.cpp

main.o: main.cpp project.h
	$(CXX) -c -o $@ $(CXXFLAGS) main.cpp

option.o: option.cpp option.h
	$(CXX) -c -o $@ $(CXXFLAGS) option.cpp

makefile.o: generators/makefile.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) generators/makefile.cpp

unixmake.o: generators/unix/unixmake.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) generators/unix/unixmake.cpp

unixmake2.o: generators/unix/unixmake2.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) generators/unix/unixmake2.cpp

borland_bmake.o: generators/win32/borland_bmake.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) generators/win32/borland_bmake.cpp

msvc_objectmodel.o: generators/win32/msvc_objectmodel.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_objectmodel.cpp

msvc_vcproj.o: generators/win32/msvc_vcproj.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_vcproj.cpp

msvc_nmake.o: generators/win32/msvc_nmake.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_nmake.cpp

metrowerks_xml.o: generators/mac/metrowerks_xml.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) generators/mac/metrowerks_xml.cpp

pbuilder_pbx.o: generators/mac/pbuilder_pbx.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) generators/mac/pbuilder_pbx.cpp

msvc_dsp.o: generators/win32/msvc_dsp.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) generators/win32/msvc_dsp.cpp

projectgenerator.o: generators/projectgenerator.cpp
	$(CXX) -c -o $@ $(CXXFLAGS) generators/projectgenerator.cpp

#default rules
.c.o:
	$(CC) -c -o $@ $(CFLAGS) $<

.cpp.o:
	$(CXX) -c -o $@ $(CXXFLAGS) $<