source: XmlTools2/trunk/Makefile.Release@ 1023

Last change on this file since 1023 was 906, checked in by s10k, 11 years ago
File size: 6.9 KB
RevLine 
[906]1#############################################################################
2# Makefile for building: XmlTools
3# Generated by qmake (2.01a) (Qt 4.8.1) on: sex 10. Jan 22:50:58 2014
4# Project: XmlTools.pro
5# Template: app
6#############################################################################
7
8####### Compiler, tools and options
9
10CC = gcc
11CXX = g++
12DEFINES = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT
13CFLAGS = -O2 -Wall $(DEFINES)
14CXXFLAGS = -O2 -frtti -fexceptions -mthreads -Wall $(DEFINES)
15INCPATH = -I"..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtCore" -I"..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtGui" -I"..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtScript" -I"..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\include" -I"libs" -I"..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\include\ActiveQt" -I"release" -I"..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\win32-g++"
16LINK = g++
17LFLAGS = -Wl,-s -Wl,-subsystem,console -mthreads
18LIBS = -L"c:\QtSDK\Desktop\Qt\4.8.1\mingw\lib" -lQtScript4 -lQtGui4 -lQtCore4
19QMAKE = c:\qtsdk\desktop\qt\4.8.1\mingw\bin\qmake.exe
20IDC = c:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\idc.exe
21IDL = midl
22ZIP = zip -r -9
23DEF_FILE =
24RES_FILE =
25COPY = copy /y
26SED =
27COPY_FILE = $(COPY)
28COPY_DIR = xcopy /s /q /y /i
29DEL_FILE = del
30DEL_DIR = rmdir
31MOVE = move
32CHK_DIR_EXISTS= if not exist
33MKDIR = mkdir
34INSTALL_FILE = $(COPY_FILE)
35INSTALL_PROGRAM = $(COPY_FILE)
36INSTALL_DIR = $(COPY_DIR)
37
38####### Output directory
39
40OBJECTS_DIR = release
41
42####### Files
43
44SOURCES = main.cpp \
45 libs\pugixml.cpp \
46 xmltools.cpp \
47 util.cpp release\qrc_resources.cpp
48OBJECTS = release/main.o \
49 release/pugixml.o \
50 release/xmltools.o \
51 release/util.o \
52 release/qrc_resources.o
53DIST =
54QMAKE_TARGET = XmlTools
55DESTDIR = release\ #avoid trailing-slash linebreak
56TARGET = XmlTools.exe
57DESTDIR_TARGET = release\XmlTools.exe
58
59####### Implicit rules
60
61.SUFFIXES: .cpp .cc .cxx .c
62
63.cpp.o:
64 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
65
66.cc.o:
67 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
68
69.cxx.o:
70 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
71
72.c.o:
73 $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
74
75####### Build rules
76
77first: all
78all: Makefile.Release $(DESTDIR_TARGET)
79
80$(DESTDIR_TARGET): $(OBJECTS)
81 $(LINK) $(LFLAGS) -o $(DESTDIR_TARGET) $(OBJECTS) $(LIBS)
82
83qmake: FORCE
84 @$(QMAKE) -spec ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\win32-g++ CONFIG+=declarative_debug -o Makefile.Release XmlTools.pro
85
86dist:
87 $(ZIP) XmlTools.zip $(SOURCES) $(DIST) XmlTools.pro ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\qconfig.pri ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\modules\qt_webkit_version.pri ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\qt_functions.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\qt_config.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\exclusive_builds.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\default_pre.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\default_pre.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\release.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\debug_and_release.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\default_post.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\default_post.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\build_pass.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\console.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\declarative_debug.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\rtti.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\exceptions.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\stl.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\shared.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\warn_on.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\qt.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\thread.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\moc.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\resources.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\uic.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\yacc.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\lex.prf ..\..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\include_source_dir.prf HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES
88
89clean: compiler_clean
90 -$(DEL_FILE) release\main.o release\pugixml.o release\xmltools.o release\util.o release\qrc_resources.o
91
92distclean: clean
93 -$(DEL_FILE) $(DESTDIR_TARGET)
94 -$(DEL_FILE) Makefile.Release
95
96check: first
97
98mocclean: compiler_moc_header_clean compiler_moc_source_clean
99
100mocables: compiler_moc_header_make_all compiler_moc_source_make_all
101
102compiler_moc_header_make_all:
103compiler_moc_header_clean:
104compiler_rcc_make_all: release/qrc_resources.cpp
105compiler_rcc_clean:
106 -$(DEL_FILE) release\qrc_resources.cpp
107release/qrc_resources.cpp: resources.qrc \
108 libs/jsxml.js \
109 libs/rexml.js
110 c:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\rcc.exe -name resources resources.qrc -o release\qrc_resources.cpp
111
112compiler_image_collection_make_all: qmake_image_collection.cpp
113compiler_image_collection_clean:
114 -$(DEL_FILE) qmake_image_collection.cpp
115compiler_moc_source_make_all:
116compiler_moc_source_clean:
117compiler_uic_make_all:
118compiler_uic_clean:
119compiler_yacc_decl_make_all:
120compiler_yacc_decl_clean:
121compiler_yacc_impl_make_all:
122compiler_yacc_impl_clean:
123compiler_lex_make_all:
124compiler_lex_clean:
125compiler_clean: compiler_rcc_clean
126
127
128
129####### Compile
130
131release/main.o: main.cpp main.h \
132 xmltools.h \
133 libs/pugixml.hpp \
134 libs/pugiconfig.hpp \
135 util.h
136 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\main.o main.cpp
137
138release/pugixml.o: libs/pugixml.cpp libs/pugixml.hpp \
139 libs/pugiconfig.hpp
140 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\pugixml.o libs\pugixml.cpp
141
142release/xmltools.o: xmltools.cpp xmltools.h \
143 libs/pugixml.hpp \
144 libs/pugiconfig.hpp \
145 util.h
146 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\xmltools.o xmltools.cpp
147
148release/util.o: util.cpp util.h
149 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\util.o util.cpp
150
151release/qrc_resources.o: release/qrc_resources.cpp
152 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\qrc_resources.o release\qrc_resources.cpp
153
154####### Install
155
156install: FORCE
157
158uninstall: FORCE
159
160FORCE:
161
Note: See TracBrowser for help on using the repository browser.