1 ifeq "$(SOURCE_PATH)" ""
5 ifeq "$(BUILD_PATH)" ""
9 CORESRC = $(SOURCE_PATH)/src/corelib
10 TOOLSRC = $(SOURCE_PATH)/tools
11 QMKSRC = $(SOURCE_PATH)/qmake
12 QMKLIBSRC = $(QMKSRC)/library
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.
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
24 ifeq ($(SHELL), sh.exe)
25 ifeq ($(wildcard $(CURDIR)/sh.exe), )
43 # specific stuff for mingw g++ make
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 \
57 LFLAGS = -static-libgcc -s
58 LIBS = -lole32 -luuid -ladvapi32 -lkernel32
59 LINKQMAKE = g++ $(LFLAGS) -o qmake.exe $(OBJS) $(QTOBJS) $(LIBS)
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 \
73 ifdef QMAKE_OPENSOURCE_EDITION
74 CFLAGS += -DQMAKE_OPENSOURCE_EDITION
83 qcryptographichash.o \
94 qabstractfileengine.o \
97 qfilesystemengine_win.o \
98 qfilesystemiterator_win.o \
100 qfsfileengine_iterator.o \
101 qfsfileengine_win.o \
134 qmake.exe: $(OBJS) $(QTOBJS)
136 -$(COPY) qmake.exe $(BUILD_PATH)\bin\qmake.exe
138 Makefile: $(SOURCE_PATH)/qmake/Makefile.win32-g++
139 @echo "Out of date, please rerun configure"
142 -$(DEL) $(OBJS) $(QTOBJS) $(ADDCLEAN)
151 $(CXX) $(CXXFLAGS) $<
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)
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