1 ifeq "$(SOURCE_PATH)" ""
5 ifeq "$(BUILD_PATH)" ""
9 CORESRC = $(SOURCE_PATH)/src/corelib
10 TOOLSRC = $(SOURCE_PATH)/tools
11 QMKSRC = $(SOURCE_PATH)/qmake
13 # SHELL is the full path of sh.exe, unless
14 # 1) it is found in the current directory
15 # 2) it is not found at all
16 # 3) it is overridden on the command line with an existing file
17 # ... otherwise it is always sh.exe. Specifically, SHELL from the
18 # environment has no effect.
20 # This check will fail if SHELL is explicitly set to a not
21 # sh-compatible shell. This is not a problem, because configure.exe
23 ifeq ($(SHELL), sh.exe)
24 ifeq ($(wildcard $(CURDIR)/sh.exe), )
42 # specific stuff for mingw g++ make
46 -I. -Igenerators -Igenerators/unix \
47 -Igenerators/win32 -Igenerators/mac \
48 -Igenerators/integrity \
49 -I$(BUILD_PATH)/include -I$(BUILD_PATH)/include/QtCore -I$(BUILD_PATH)/include/QtCore/$(QT_VERSION) -I$(BUILD_PATH)/include/QtCore/$(QT_VERSION)/QtCore \
50 -I$(SOURCE_PATH)/include -I$(SOURCE_PATH)/include/QtCore -I$(SOURCE_PATH)/include/QtCore/$(QT_VERSION) -I$(SOURCE_PATH)/include/QtCore/$(QT_VERSION)/QtCore \
51 -I$(BUILD_PATH)/src/corelib/global \
52 -I$(BUILD_PATH)/src/corelib/xml \
53 -I$(SOURCE_PATH)/mkspecs/win32-g++ \
54 -I$(SOURCE_PATH)/tools/shared \
55 -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT \
56 -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP \
57 -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM \
60 LFLAGS = -static-libgcc -s
61 LIBS = -lole32 -luuid -ladvapi32 -lkernel32
62 LINKQMAKE = g++ $(LFLAGS) -o qmake.exe $(OBJS) $(QTOBJS) $(LIBS)
67 OBJS = project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.o \
68 option.o winmakefile.o projectgenerator.o property.o meta.o \
69 makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o \
70 borland_bmake.o msvc_nmake.o msvc_vcproj.o msvc_vcxproj.o \
71 msvc_objectmodel.o msbuild_objectmodel.o registry.o gbuild.o
73 ifdef QMAKE_OPENSOURCE_EDITION
74 CFLAGS += -DQMAKE_OPENSOURCE_EDITION
82 qcryptographichash.o \
92 qabstractfileengine.o \
95 qfilesystemengine_win.o \
96 qfilesystemiterator_win.o \
98 qfsfileengine_iterator.o \
132 qmake.exe: $(OBJS) $(QTOBJS)
134 -$(COPY) qmake.exe $(BUILD_PATH)\bin\qmake.exe
136 Makefile: Makefile.win32-g++
137 @echo "Out of date, please rerun configure"
140 -$(DEL) $(OBJS) $(QTOBJS) $(ADDCLEAN)
149 $(CXX) $(CXXFLAGS) $<
151 QTVPATH = $(TOOLSRC)/shared/windows:$(CORESRC)/global:$(CORESRC)/kernel:$(CORESRC)/tools:$(CORESRC)/codecs:$(CORESRC)/io:$(CORESRC)/xml:$(CORESRC)/plugin:$(BUILD_PATH)/src/corelib/global
152 VPATH = $(QMKSRC):$(QMKSRC)/generators:$(QMKSRC)/generators/unix:$(QMKSRC)/generators/mac:$(QMKSRC)/generators/win32:$(QMKSRC)/generators/integrity:$(QTVPATH)
154 project.o: $(QMKSRC)/project.h $(QMKSRC)/option.h
155 meta.o: $(QMKSRC)/project.h $(QMKSRC)/option.h
156 main.o: $(QMKSRC)/project.h
157 option.o: $(QMKSRC)/option.h
158 property.o: $(QMKSRC)/project.h $(QMKSRC)/option.h