Fixed instances of "to to" in qtbase.
[profile/ivi/qtbase.git] / qmake / Makefile.win32-g++
1 ifeq "$(SOURCE_PATH)" ""
2 SOURCE_PATH = ..
3 endif
4
5 ifeq "$(BUILD_PATH)" ""
6 BUILD_PATH = ..
7 endif
8
9 CORESRC = $(SOURCE_PATH)/src/corelib
10 TOOLSRC = $(SOURCE_PATH)/tools
11 QMKSRC = $(SOURCE_PATH)/qmake
12 QMKLIBSRC = $(QMKSRC)/library
13
14 # SHELL is the full path of sh.exe, unless
15 # 1) it is found in the current directory
16 # 2) it is not found at all
17 # 3) it is overridden on the command line with an existing file
18 # ... otherwise it is always sh.exe. Specifically, SHELL from the
19 # environment has no effect.
20 #
21 # This check will fail if SHELL is explicitly set to a not
22 # sh-compatible shell. This is not a problem, because configure.exe
23 # will not do that.
24 ifeq ($(SHELL), sh.exe)
25     ifeq ($(wildcard $(CURDIR)/sh.exe), )
26         SH = 0
27     else
28         SH = 1
29     endif
30 else
31     SH = 1
32 endif
33
34 ifeq ($(SH), 1)
35     COPY = cp
36     DEL = rm -f
37 else
38     COPY = copy
39     DEL = del /f
40 endif
41
42 #
43 # specific stuff for mingw g++ make
44 #
45 CXX         =   g++
46 CFLAGS      =   -c -o$@ -O \
47                 -I$(QMKSRC) -I$(QMKLIBSRC) -I$(QMKSRC)/generators -I$(QMKSRC)/generators/unix -I$(QMKSRC)/generators/win32 -I$(QMKSRC)/generators/mac -I$(QMKSRC)/generators/integrity \
48                 -I$(BUILD_PATH)/include -I$(BUILD_PATH)/include/QtCore -I$(BUILD_PATH)/include/QtCore/$(QT_VERSION) -I$(BUILD_PATH)/include/QtCore/$(QT_VERSION)/QtCore \
49                 -I$(BUILD_PATH)/src/corelib/global -DHAVE_QCONFIG_CPP \
50                 -I$(SOURCE_PATH)/mkspecs/win32-g++  \
51                 -I$(SOURCE_PATH)/tools/shared \
52                 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DPROEVALUATOR_DEBUG \
53                 -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS \
54                 -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM \
55                 -DUNICODE
56 CXXFLAGS    =   $(CFLAGS)
57 LFLAGS      = -static-libgcc -s
58 LIBS        = -lole32 -luuid -ladvapi32 -lkernel32
59 LINKQMAKE   =   g++ $(LFLAGS) -o qmake.exe $(OBJS) $(QTOBJS) $(LIBS)
60 ADDCLEAN    =
61
62
63 #qmake code
64 OBJS        = project.o main.o ioutils.o proitems.o \
65               qmakeglobals.o qmakeparser.o qmakeevaluator.o qmakebuiltins.o \
66               makefile.o unixmake.o unixmake2.o mingw_make.o \
67               option.o winmakefile.o projectgenerator.o property.o meta.o \
68               makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o \
69               msvc_nmake.o msvc_vcproj.o msvc_vcxproj.o \
70               msvc_objectmodel.o msbuild_objectmodel.o registry.o gbuild.o \
71               cesdkhandler.o
72
73 ifdef QMAKE_OPENSOURCE_EDITION
74 CFLAGS      += -DQMAKE_OPENSOURCE_EDITION
75 endif
76
77 #qt code
78 QTOBJS= \
79         qbitarray.o \
80         qbuffer.o \
81         qarraydata.o \
82         qbytearray.o \
83         qcryptographichash.o \
84         qvsnprintf.o \
85         qbytearraymatcher.o \
86         qconfig.o \
87         qdatetime.o \
88         qdir.o \
89         qdiriterator.o \
90         qfiledevice.o \
91         qfile.o \
92         qtemporaryfile.o \
93         qfileinfo.o \
94         qabstractfileengine.o \
95         qfilesystementry.o \
96         qfilesystemengine.o \
97         qfilesystemengine_win.o \
98         qfilesystemiterator_win.o \
99         qfsfileengine.o \
100         qfsfileengine_iterator.o \
101         qfsfileengine_win.o \
102         qglobal.o \
103         qhash.o \
104         qiodevice.o \
105         qlibraryinfo.o \
106         qlist.o \
107         qlinkedlist.o \
108         qlocale.o \
109         qlocale_tools.o \
110         qlocale_win.o \
111         qmalloc.o \
112         qmap.o \
113         qregexp.o \
114         qtextcodec.o \
115         qutfcodec.o \
116         qstring.o \
117         qstringlist.o \
118         qstringbuilder.o \
119         qsystemerror.o \
120         qsystemlibrary.o \
121         qtextstream.o \
122         quuid.o \
123         qvector.o \
124         qsettings.o \
125         qsettings_win.o \
126         qvariant.o \
127         qmetatype.o \
128         qxmlstream.o \
129         qxmlutils.o \
130         qnumeric.o \
131         qlogging.o
132
133
134 qmake.exe: $(OBJS) $(QTOBJS)
135         $(LINKQMAKE)
136         -$(COPY) qmake.exe $(BUILD_PATH)\bin\qmake.exe
137
138 Makefile: $(SOURCE_PATH)/qmake/Makefile.win32-g++
139         @echo "Out of date, please rerun configure"
140
141 clean::
142         -$(DEL) $(OBJS) $(QTOBJS) $(ADDCLEAN)
143
144 distclean:: clean
145         -$(DEL) qmake.exe
146
147 .c.o:
148         $(CXX) $(CFLAGS) $<
149
150 .cpp.o:
151         $(CXX) $(CXXFLAGS) $<
152
153 QTVPATH = $(TOOLSRC)/shared/windows:$(CORESRC)/global:$(CORESRC)/kernel:$(CORESRC)/tools:$(CORESRC)/codecs:$(CORESRC)/io:$(CORESRC)/xml:$(CORESRC)/plugin:$(BUILD_PATH)/src/corelib/global
154 VPATH = $(QMKSRC):$(QMKLIBSRC):$(QMKSRC)/generators:$(QMKSRC)/generators/unix:$(QMKSRC)/generators/mac:$(QMKSRC)/generators/win32:$(QMKSRC)/generators/integrity:$(QTVPATH)
155
156 project.o: $(QMKSRC)/project.h $(QMKSRC)/option.h
157 meta.o: $(QMKSRC)/project.h $(QMKSRC)/option.h
158 main.o: $(QMKSRC)/project.h
159 option.o: $(QMKSRC)/option.h
160 property.o: $(QMKSRC)/project.h $(QMKSRC)/option.h