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$(QMKSRC) -I$(QMKSRC)/generators -I$(QMKSRC)/generators/unix -I$(QMKSRC)/generators/win32 -I$(QMKSRC)/generators/mac -I$(QMKSRC)/generators/integrity \
47 -I$(BUILD_PATH)/include -I$(BUILD_PATH)/include/QtCore -I$(BUILD_PATH)/include/QtCore/$(QT_VERSION) -I$(BUILD_PATH)/include/QtCore/$(QT_VERSION)/QtCore \
48 -I$(BUILD_PATH)/src/corelib/global -DHAVE_QCONFIG_CPP \
49 -I$(SOURCE_PATH)/mkspecs/win32-g++ \
50 -I$(SOURCE_PATH)/tools/shared \
51 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED \
52 -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS \
53 -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM \
56 LFLAGS = -static-libgcc -s
57 LIBS = -lole32 -luuid -ladvapi32 -lkernel32
58 LINKQMAKE = g++ $(LFLAGS) -o qmake.exe $(OBJS) $(QTOBJS) $(LIBS)
63 OBJS = project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.o \
64 option.o winmakefile.o projectgenerator.o property.o meta.o \
65 makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o \
66 msvc_nmake.o msvc_vcproj.o msvc_vcxproj.o \
67 msvc_objectmodel.o msbuild_objectmodel.o registry.o gbuild.o \
70 ifdef QMAKE_OPENSOURCE_EDITION
71 CFLAGS += -DQMAKE_OPENSOURCE_EDITION
80 qcryptographichash.o \
91 qabstractfileengine.o \
94 qfilesystemengine_win.o \
95 qfilesystemiterator_win.o \
97 qfsfileengine_iterator.o \
131 qmake.exe: $(OBJS) $(QTOBJS)
133 -$(COPY) qmake.exe $(BUILD_PATH)\bin\qmake.exe
135 Makefile: $(SOURCE_PATH)/qmake/Makefile.win32-g++
136 @echo "Out of date, please rerun configure"
139 -$(DEL) $(OBJS) $(QTOBJS) $(ADDCLEAN)
148 $(CXX) $(CXXFLAGS) $<
150 QTVPATH = $(TOOLSRC)/shared/windows:$(CORESRC)/global:$(CORESRC)/kernel:$(CORESRC)/tools:$(CORESRC)/codecs:$(CORESRC)/io:$(CORESRC)/xml:$(CORESRC)/plugin:$(BUILD_PATH)/src/corelib/global
151 VPATH = $(QMKSRC):$(QMKSRC)/generators:$(QMKSRC)/generators/unix:$(QMKSRC)/generators/mac:$(QMKSRC)/generators/win32:$(QMKSRC)/generators/integrity:$(QTVPATH)
153 project.o: $(QMKSRC)/project.h $(QMKSRC)/option.h
154 meta.o: $(QMKSRC)/project.h $(QMKSRC)/option.h
155 main.o: $(QMKSRC)/project.h
156 option.o: $(QMKSRC)/option.h
157 property.o: $(QMKSRC)/project.h $(QMKSRC)/option.h