2011-04-27 10:05:43 +00:00
|
|
|
ifeq "$(SOURCE_PATH)" ""
|
|
|
|
SOURCE_PATH = ..
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq "$(BUILD_PATH)" ""
|
|
|
|
BUILD_PATH = ..
|
|
|
|
endif
|
|
|
|
|
2012-02-29 20:01:15 +00:00
|
|
|
CORESRC = $(SOURCE_PATH)/src/corelib
|
|
|
|
TOOLSRC = $(SOURCE_PATH)/tools
|
|
|
|
QMKSRC = $(SOURCE_PATH)/qmake
|
|
|
|
|
2012-02-29 18:38:03 +00:00
|
|
|
# SHELL is the full path of sh.exe, unless
|
|
|
|
# 1) it is found in the current directory
|
|
|
|
# 2) it is not found at all
|
|
|
|
# 3) it is overridden on the command line with an existing file
|
|
|
|
# ... otherwise it is always sh.exe. Specifically, SHELL from the
|
|
|
|
# environment has no effect.
|
|
|
|
#
|
|
|
|
# This check will fail if SHELL is explicitly set to a not
|
|
|
|
# sh-compatible shell. This is not a problem, because configure.exe
|
|
|
|
# will not do that.
|
|
|
|
ifeq ($(SHELL), sh.exe)
|
|
|
|
ifeq ($(wildcard $(CURDIR)/sh.exe), )
|
|
|
|
SH = 0
|
|
|
|
else
|
|
|
|
SH = 1
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
SH = 1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(SH), 1)
|
|
|
|
COPY = cp
|
|
|
|
DEL = rm -f
|
|
|
|
else
|
|
|
|
COPY = copy
|
|
|
|
DEL = del /f
|
|
|
|
endif
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
#
|
|
|
|
# specific stuff for mingw g++ make
|
|
|
|
#
|
|
|
|
CXX = g++
|
|
|
|
CFLAGS = -c -o$@ -O \
|
2012-03-09 09:50:23 +00:00
|
|
|
-I$(QMKSRC) -I$(QMKSRC)/generators -I$(QMKSRC)/generators/unix -I$(QMKSRC)/generators/win32 -I$(QMKSRC)/generators/mac -I$(QMKSRC)/generators/integrity \
|
2011-04-20 18:57:51 +00:00
|
|
|
-I$(BUILD_PATH)/include -I$(BUILD_PATH)/include/QtCore -I$(BUILD_PATH)/include/QtCore/$(QT_VERSION) -I$(BUILD_PATH)/include/QtCore/$(QT_VERSION)/QtCore \
|
2012-08-21 16:02:35 +00:00
|
|
|
-I$(BUILD_PATH)/src/corelib/global -DHAVE_QCONFIG_CPP \
|
2011-04-27 10:05:43 +00:00
|
|
|
-I$(SOURCE_PATH)/mkspecs/win32-g++ \
|
|
|
|
-I$(SOURCE_PATH)/tools/shared \
|
2012-08-21 16:02:35 +00:00
|
|
|
-DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED \
|
|
|
|
-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS \
|
|
|
|
-DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM \
|
|
|
|
-DUNICODE
|
2011-04-27 10:05:43 +00:00
|
|
|
CXXFLAGS = $(CFLAGS)
|
2011-11-17 08:18:05 +00:00
|
|
|
LFLAGS = -static-libgcc -s
|
2011-04-27 10:05:43 +00:00
|
|
|
LIBS = -lole32 -luuid -ladvapi32 -lkernel32
|
|
|
|
LINKQMAKE = g++ $(LFLAGS) -o qmake.exe $(OBJS) $(QTOBJS) $(LIBS)
|
|
|
|
ADDCLEAN =
|
|
|
|
|
|
|
|
|
|
|
|
#qmake code
|
|
|
|
OBJS = project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.o \
|
|
|
|
option.o winmakefile.o projectgenerator.o property.o meta.o \
|
|
|
|
makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o \
|
2012-04-25 15:12:53 +00:00
|
|
|
msvc_nmake.o msvc_vcproj.o msvc_vcxproj.o \
|
2012-05-11 08:24:28 +00:00
|
|
|
msvc_objectmodel.o msbuild_objectmodel.o registry.o gbuild.o \
|
|
|
|
cesdkhandler.o
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
ifdef QMAKE_OPENSOURCE_EDITION
|
|
|
|
CFLAGS += -DQMAKE_OPENSOURCE_EDITION
|
|
|
|
endif
|
|
|
|
|
|
|
|
#qt code
|
|
|
|
QTOBJS= \
|
|
|
|
qbitarray.o \
|
|
|
|
qbuffer.o \
|
2012-03-27 09:21:27 +00:00
|
|
|
qarraydata.o \
|
2011-04-27 10:05:43 +00:00
|
|
|
qbytearray.o \
|
|
|
|
qcryptographichash.o \
|
|
|
|
qvsnprintf.o \
|
|
|
|
qbytearraymatcher.o \
|
|
|
|
qconfig.o \
|
|
|
|
qdatetime.o \
|
|
|
|
qdir.o \
|
|
|
|
qdiriterator.o \
|
2012-02-26 09:05:39 +00:00
|
|
|
qfiledevice.o \
|
2011-04-27 10:05:43 +00:00
|
|
|
qfile.o \
|
|
|
|
qtemporaryfile.o \
|
|
|
|
qfileinfo.o \
|
|
|
|
qabstractfileengine.o \
|
|
|
|
qfilesystementry.o \
|
|
|
|
qfilesystemengine.o \
|
|
|
|
qfilesystemengine_win.o \
|
|
|
|
qfilesystemiterator_win.o \
|
|
|
|
qfsfileengine.o \
|
|
|
|
qfsfileengine_iterator.o \
|
|
|
|
qfsfileengine_win.o \
|
|
|
|
qglobal.o \
|
|
|
|
qhash.o \
|
|
|
|
qiodevice.o \
|
|
|
|
qlibraryinfo.o \
|
|
|
|
qlist.o \
|
|
|
|
qlinkedlist.o \
|
|
|
|
qlocale.o \
|
|
|
|
qlocale_tools.o \
|
|
|
|
qlocale_win.o \
|
|
|
|
qmalloc.o \
|
|
|
|
qmap.o \
|
|
|
|
qregexp.o \
|
|
|
|
qtextcodec.o \
|
|
|
|
qutfcodec.o \
|
|
|
|
qstring.o \
|
|
|
|
qstringlist.o \
|
2012-02-26 14:20:24 +00:00
|
|
|
qstringbuilder.o \
|
2011-04-27 10:05:43 +00:00
|
|
|
qsystemerror.o \
|
|
|
|
qsystemlibrary.o \
|
|
|
|
qtextstream.o \
|
|
|
|
quuid.o \
|
|
|
|
qvector.o \
|
|
|
|
qsettings.o \
|
|
|
|
qsettings_win.o \
|
|
|
|
qvariant.o \
|
|
|
|
qmetatype.o \
|
|
|
|
qxmlstream.o \
|
|
|
|
qxmlutils.o \
|
2012-02-03 08:35:22 +00:00
|
|
|
qnumeric.o \
|
|
|
|
qlogging.o
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
qmake.exe: $(OBJS) $(QTOBJS)
|
|
|
|
$(LINKQMAKE)
|
2012-02-29 18:38:03 +00:00
|
|
|
-$(COPY) qmake.exe $(BUILD_PATH)\bin\qmake.exe
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2012-03-09 09:50:23 +00:00
|
|
|
Makefile: $(SOURCE_PATH)/qmake/Makefile.win32-g++
|
2011-04-27 10:05:43 +00:00
|
|
|
@echo "Out of date, please rerun configure"
|
|
|
|
|
|
|
|
clean::
|
2012-02-29 18:38:03 +00:00
|
|
|
-$(DEL) $(OBJS) $(QTOBJS) $(ADDCLEAN)
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
distclean:: clean
|
2012-02-29 18:38:03 +00:00
|
|
|
-$(DEL) qmake.exe
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CXX) $(CFLAGS) $<
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
2012-02-29 20:01:15 +00:00
|
|
|
QTVPATH = $(TOOLSRC)/shared/windows:$(CORESRC)/global:$(CORESRC)/kernel:$(CORESRC)/tools:$(CORESRC)/codecs:$(CORESRC)/io:$(CORESRC)/xml:$(CORESRC)/plugin:$(BUILD_PATH)/src/corelib/global
|
|
|
|
VPATH = $(QMKSRC):$(QMKSRC)/generators:$(QMKSRC)/generators/unix:$(QMKSRC)/generators/mac:$(QMKSRC)/generators/win32:$(QMKSRC)/generators/integrity:$(QTVPATH)
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2012-02-29 20:01:15 +00:00
|
|
|
project.o: $(QMKSRC)/project.h $(QMKSRC)/option.h
|
|
|
|
meta.o: $(QMKSRC)/project.h $(QMKSRC)/option.h
|
|
|
|
main.o: $(QMKSRC)/project.h
|
|
|
|
option.o: $(QMKSRC)/option.h
|
|
|
|
property.o: $(QMKSRC)/project.h $(QMKSRC)/option.h
|