2012-02-08 10:38:07 +00:00
|
|
|
CORESRC = $(QTSRC)src/corelib
|
|
|
|
TOOLSRC = $(QTSRC)tools
|
|
|
|
CONFSRC = $(TOOLSRC)/configure
|
|
|
|
|
|
|
|
RAW_PCH = configure_pch.h
|
|
|
|
PCH = $(RAW_PCH).gch/c++
|
2015-09-18 01:17:40 +00:00
|
|
|
DEFINES = -DUNICODE -DQT_NO_DATASTREAM -DQT_NO_CODECS -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -D_CRT_SECURE_NO_DEPRECATE -DQT_BOOTSTRAPPED -DQT_BUILD_CONFIGURE -DQT_VERSION_STR=\"$(QTVERSION)\" -DQT_VERSION_MAJOR=$(QT_VERSION_MAJOR) -DQT_VERSION_MINOR=$(QT_VERSION_MINOR) -DQT_VERSION_PATCH=$(QT_VERSION_PATCH)
|
2012-02-08 10:38:07 +00:00
|
|
|
INCPATH = -I"../../include" -I"../../include/QtCore" -I"../../include/QtCore/$(QTVERSION)" -I"../../include/QtCore/$(QTVERSION)/QtCore" -I"$(TOOLSRC)/shared" -I"$(QTSRC)mkspecs/win32-g++"
|
2015-11-11 23:56:15 +00:00
|
|
|
CXXFLAGS_BARE = -std=c++11 -fno-rtti -fno-exceptions -mthreads -Wall -Wextra $(DEFINES) $(INCPATH)
|
2012-02-08 10:38:07 +00:00
|
|
|
CXXFLAGS = -include $(RAW_PCH) $(CXXFLAGS_BARE)
|
|
|
|
LINK = g++
|
|
|
|
LFLAGS = -Wl,-subsystem,console -mthreads
|
|
|
|
LIBS = -lole32 -ladvapi32 -luuid
|
|
|
|
|
|
|
|
TARGET = ../../configure.exe
|
|
|
|
|
|
|
|
OBJECTS = \
|
|
|
|
main.o \
|
|
|
|
configureapp.o \
|
|
|
|
environment.o \
|
|
|
|
tools.o \
|
2012-03-27 09:21:27 +00:00
|
|
|
qarraydata.o \
|
2012-02-08 10:38:07 +00:00
|
|
|
qbytearray.o \
|
|
|
|
qbytearraymatcher.o \
|
|
|
|
qhash.o \
|
|
|
|
qlist.o \
|
|
|
|
qlocale.o \
|
|
|
|
qlocale_win.o \
|
|
|
|
qlocale_tools.o \
|
|
|
|
qvector.o \
|
|
|
|
qutfcodec.o \
|
|
|
|
qtextcodec.o \
|
|
|
|
qglobal.o \
|
|
|
|
qnumeric.o \
|
|
|
|
qbuffer.o \
|
|
|
|
qdatastream.o \
|
|
|
|
qdir.o \
|
|
|
|
qdiriterator.o \
|
2012-02-26 09:05:39 +00:00
|
|
|
qfiledevice.o \
|
2012-02-08 10:38:07 +00:00
|
|
|
qfile.o \
|
|
|
|
qfileinfo.o \
|
|
|
|
qabstractfileengine.o \
|
|
|
|
qfilesystementry.o \
|
|
|
|
qfilesystemengine.o \
|
|
|
|
qfilesystemengine_win.o \
|
|
|
|
qfilesystemiterator_win.o \
|
|
|
|
qfsfileengine.o \
|
|
|
|
qfsfileengine_win.o \
|
|
|
|
qfsfileengine_iterator.o \
|
|
|
|
qiodevice.o \
|
2015-05-01 11:02:16 +00:00
|
|
|
qringbuffer.o \
|
2014-04-29 10:39:31 +00:00
|
|
|
qdebug.o \
|
2012-02-08 10:38:07 +00:00
|
|
|
qtextstream.o \
|
|
|
|
qlogging.o \
|
|
|
|
qtemporaryfile.o \
|
2012-11-01 13:31:16 +00:00
|
|
|
qstandardpaths.o \
|
|
|
|
qstandardpaths_win.o \
|
2012-02-08 10:38:07 +00:00
|
|
|
qsystemlibrary.o \
|
|
|
|
qbitarray.o \
|
|
|
|
qdatetime.o \
|
|
|
|
qmap.o \
|
|
|
|
qregexp.o \
|
|
|
|
qstring.o \
|
2013-10-09 19:14:01 +00:00
|
|
|
qstring_compat.o \
|
2012-02-08 10:38:07 +00:00
|
|
|
qstringlist.o \
|
|
|
|
qvsnprintf.o \
|
|
|
|
qvariant.o \
|
|
|
|
qsystemerror.o \
|
|
|
|
qmetatype.o \
|
|
|
|
qmalloc.o \
|
|
|
|
qxmlstream.o \
|
|
|
|
qxmlutils.o \
|
|
|
|
quuid.o \
|
|
|
|
registry.o
|
|
|
|
|
|
|
|
$(TARGET): $(OBJECTS)
|
|
|
|
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
|
|
|
|
|
|
|
|
$(OBJECTS): $(PCH)
|
|
|
|
|
2012-02-24 11:36:59 +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.bat
|
|
|
|
# will not do that.
|
|
|
|
ifeq ($(SHELL), sh.exe)
|
2015-09-22 14:36:03 +00:00
|
|
|
ifeq ($(wildcard "$(CURDIR)/sh.exe"), )
|
2012-02-24 11:36:59 +00:00
|
|
|
SH = 0
|
|
|
|
else
|
|
|
|
SH = 1
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
SH = 1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(SH), 1)
|
|
|
|
CHK_DIR_EXISTS = test -d
|
|
|
|
CHK_DIR_EXISTS_GLUE = ||
|
|
|
|
MKDIR = mkdir -p
|
|
|
|
else
|
|
|
|
CHK_DIR_EXISTS = if not exist
|
|
|
|
CHK_DIR_EXISTS_GLUE =
|
|
|
|
MKDIR = md
|
|
|
|
endif
|
|
|
|
|
2012-02-08 10:38:07 +00:00
|
|
|
$(PCH): $(CONFSRC)/configure_pch.h
|
2012-02-24 11:36:59 +00:00
|
|
|
@$(CHK_DIR_EXISTS) $(RAW_PCH).gch $(CHK_DIR_EXISTS_GLUE) $(MKDIR) $(RAW_PCH).gch
|
2012-02-08 10:38:07 +00:00
|
|
|
$(CXX) -x c++-header -c $(CXXFLAGS_BARE) -o $@ $<
|
|
|
|
|
|
|
|
VPATH = $(CONFSRC):$(TOOLSRC)/shared/windows:$(CORESRC)/global:$(CORESRC)/kernel:$(CORESRC)/tools:$(CORESRC)/codecs:$(CORESRC)/io:$(CORESRC)/xml:$(CORESRC)/plugin
|
|
|
|
|
|
|
|
main.o: $(CONFSRC)/configureapp.h
|
|
|
|
configureapp.o: $(CONFSRC)/configureapp.h $(CONFSRC)/environment.h $(CONFSRC)/tools.h
|
|
|
|
environment.o: $(CONFSRC)/environment.h
|
|
|
|
tools.o: $(CONFSRC)/tools.h
|
|
|
|
|
2013-12-14 00:43:43 +00:00
|
|
|
# Make sure qstring_compat.obj isn't compiled with PCH enabled
|
|
|
|
qstring_compat.o: $(CORESRC)/tools/qstring_compat.cpp
|
|
|
|
$(CXX) -c $(CXXFLAGS_BARE) -o $@ $<
|
|
|
|
|
2012-02-08 10:38:07 +00:00
|
|
|
clean:
|
|
|
|
-rm -f *.o
|
|
|
|
-rm -rf *.gch
|