mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-01-28 06:02:56 +08:00
214 lines
8.0 KiB
Makefile
214 lines
8.0 KiB
Makefile
|
#############################################################################
|
||
|
# Makefile for building: game-gui
|
||
|
# Generated by qmake (2.01a) (Qt 4.8.1) on: Mon Aug 13 16:20:46 2012
|
||
|
# Project: game-gui.pro
|
||
|
# Template: app
|
||
|
#############################################################################
|
||
|
|
||
|
####### Compiler, tools and options
|
||
|
|
||
|
CC = gcc
|
||
|
CXX = g++
|
||
|
DEFINES = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_STATEMACHINE -DQ_SPY -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
|
||
|
CFLAGS = -g -Wall $(DEFINES)
|
||
|
CXXFLAGS = -g -frtti -fexceptions -mthreads -Wall $(DEFINES)
|
||
|
INCPATH = -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtCore" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtGui" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include" -I"." -I"$(QPCPP)\include" -I"$(QPCPP)\ports\80x86\qt\mingw" -I"$(QTOOLS)\qspy\include" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\ActiveQt" -I"debug" -I"." -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\win32-g++"
|
||
|
LINK = g++
|
||
|
LFLAGS = -mthreads -Wl,-subsystem,windows
|
||
|
LIBS = -L"c:\QtSDK\Desktop\Qt\4.8.1\mingw\lib" -lmingw32 -lqtmaind debug\gui_res.o -L$(QPCPP)/ports/80x86/qt/mingw/debug -lqp -lQtGuid4 -lQtCored4
|
||
|
QMAKE = c:\qtsdk\desktop\qt\4.8.1\mingw\bin\qmake.exe
|
||
|
IDC = c:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\idc.exe
|
||
|
IDL = midl
|
||
|
ZIP = zip -r -9
|
||
|
DEF_FILE =
|
||
|
RES_FILE = debug\gui_res.o
|
||
|
COPY = copy /y
|
||
|
SED =
|
||
|
COPY_FILE = $(COPY)
|
||
|
COPY_DIR = xcopy /s /q /y /i
|
||
|
DEL_FILE = del
|
||
|
DEL_DIR = rmdir
|
||
|
MOVE = move
|
||
|
CHK_DIR_EXISTS= if not exist
|
||
|
MKDIR = mkdir
|
||
|
INSTALL_FILE = $(COPY_FILE)
|
||
|
INSTALL_PROGRAM = $(COPY_FILE)
|
||
|
INSTALL_DIR = $(COPY_DIR)
|
||
|
|
||
|
####### Output directory
|
||
|
|
||
|
OBJECTS_DIR = debug
|
||
|
|
||
|
####### Files
|
||
|
|
||
|
SOURCES = main.cpp \
|
||
|
gui.cpp \
|
||
|
bsp.cpp \
|
||
|
missile.cpp \
|
||
|
mine2.cpp \
|
||
|
mine1.cpp \
|
||
|
tunnel.cpp \
|
||
|
ship.cpp \
|
||
|
$(QTOOLS)\qspy\source\qspy.c debug\moc_gui.cpp \
|
||
|
debug\qrc_gui.cpp
|
||
|
OBJECTS = debug/main.o \
|
||
|
debug/gui.o \
|
||
|
debug/bsp.o \
|
||
|
debug/missile.o \
|
||
|
debug/mine2.o \
|
||
|
debug/mine1.o \
|
||
|
debug/tunnel.o \
|
||
|
debug/ship.o \
|
||
|
debug/qspy.o \
|
||
|
debug/moc_gui.o \
|
||
|
debug/qrc_gui.o
|
||
|
DIST =
|
||
|
QMAKE_TARGET = game-gui
|
||
|
DESTDIR = debug\ #avoid trailing-slash linebreak
|
||
|
TARGET = game-gui.exe
|
||
|
DESTDIR_TARGET = debug\game-gui.exe
|
||
|
|
||
|
####### Implicit rules
|
||
|
|
||
|
.SUFFIXES: .cpp .cc .cxx .c
|
||
|
|
||
|
.cpp.o:
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
||
|
|
||
|
.cc.o:
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
||
|
|
||
|
.cxx.o:
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
||
|
|
||
|
.c.o:
|
||
|
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
|
||
|
|
||
|
####### Build rules
|
||
|
|
||
|
first: all
|
||
|
all: Makefile.Debug $(DESTDIR_TARGET)
|
||
|
|
||
|
$(DESTDIR_TARGET): ui_gui.h $(OBJECTS) debug/gui_res.o
|
||
|
$(LINK) $(LFLAGS) -o $(DESTDIR_TARGET) object_script.game-gui.Debug $(LIBS)
|
||
|
|
||
|
debug/gui_res.o: gui.rc
|
||
|
windres -i gui.rc -o debug\gui_res.o --include-dir=. $(DEFINES)
|
||
|
|
||
|
qmake: FORCE
|
||
|
@$(QMAKE) -spec c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\win32-g++ CONFIG+=declarative_debug -o Makefile.Debug game-gui.pro
|
||
|
|
||
|
dist:
|
||
|
$(ZIP) game-gui.zip $(SOURCES) $(DIST) game-gui.pro c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\qconfig.pri c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\modules\qt_webkit_version.pri c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\qt_functions.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\qt_config.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\exclusive_builds.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\default_pre.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\default_pre.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\debug.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\debug_and_release.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\default_post.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\default_post.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\build_pass.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\declarative_debug.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\rtti.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\exceptions.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\stl.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\shared.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\warn_on.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\qt.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\thread.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\moc.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\win32\windows.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\resources.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\uic.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\yacc.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\lex.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\features\include_source_dir.prf c:\QtSDK\Desktop\Qt\4.8.1\mingw\lib\qtmaind.prl HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES
|
||
|
|
||
|
clean: compiler_clean
|
||
|
-$(DEL_FILE) debug\main.o debug\gui.o debug\bsp.o debug\missile.o debug\mine2.o debug\mine1.o debug\tunnel.o debug\ship.o debug\qspy.o debug\moc_gui.o debug\qrc_gui.o
|
||
|
-$(DEL_FILE) debug\gui_res.o
|
||
|
|
||
|
distclean: clean
|
||
|
-$(DEL_FILE) $(DESTDIR_TARGET)
|
||
|
-$(DEL_FILE) Makefile.Debug
|
||
|
|
||
|
check: first
|
||
|
|
||
|
mocclean: compiler_moc_header_clean compiler_moc_source_clean
|
||
|
|
||
|
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
|
||
|
|
||
|
compiler_moc_header_make_all: debug/moc_gui.cpp
|
||
|
compiler_moc_header_clean:
|
||
|
-$(DEL_FILE) debug\moc_gui.cpp
|
||
|
debug/moc_gui.cpp: ui_gui.h \
|
||
|
gui.h
|
||
|
C:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 gui.h -o debug\moc_gui.cpp
|
||
|
|
||
|
compiler_rcc_make_all: debug/qrc_gui.cpp
|
||
|
compiler_rcc_clean:
|
||
|
-$(DEL_FILE) debug\qrc_gui.cpp
|
||
|
debug/qrc_gui.cpp: gui.qrc \
|
||
|
res/LED_ON.png \
|
||
|
res/EK-LM3S811.png \
|
||
|
res/EK-BTN_DWN.png \
|
||
|
res/LED_OFF.png \
|
||
|
res/EK-BTN_UP.png
|
||
|
c:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\rcc.exe -name gui gui.qrc -o debug\qrc_gui.cpp
|
||
|
|
||
|
compiler_image_collection_make_all: qmake_image_collection.cpp
|
||
|
compiler_image_collection_clean:
|
||
|
-$(DEL_FILE) qmake_image_collection.cpp
|
||
|
compiler_moc_source_make_all:
|
||
|
compiler_moc_source_clean:
|
||
|
compiler_uic_make_all: ui_gui.h
|
||
|
compiler_uic_clean:
|
||
|
-$(DEL_FILE) ui_gui.h
|
||
|
ui_gui.h: gui.ui
|
||
|
c:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\uic.exe gui.ui -o ui_gui.h
|
||
|
|
||
|
compiler_yacc_decl_make_all:
|
||
|
compiler_yacc_decl_clean:
|
||
|
compiler_yacc_impl_make_all:
|
||
|
compiler_yacc_impl_clean:
|
||
|
compiler_lex_make_all:
|
||
|
compiler_lex_clean:
|
||
|
compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_uic_clean
|
||
|
|
||
|
|
||
|
|
||
|
####### Compile
|
||
|
|
||
|
debug/main.o: main.cpp gui.h \
|
||
|
ui_gui.h \
|
||
|
game.h \
|
||
|
bsp.h
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\main.o main.cpp
|
||
|
|
||
|
debug/gui.o: gui.cpp gui.h \
|
||
|
ui_gui.h \
|
||
|
game.h \
|
||
|
bsp.h
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\gui.o gui.cpp
|
||
|
|
||
|
debug/bsp.o: bsp.cpp gui.h \
|
||
|
ui_gui.h \
|
||
|
game.h \
|
||
|
bsp.h
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\bsp.o bsp.cpp
|
||
|
|
||
|
debug/missile.o: missile.cpp bsp.h \
|
||
|
game.h
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\missile.o missile.cpp
|
||
|
|
||
|
debug/mine2.o: mine2.cpp bsp.h \
|
||
|
game.h
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\mine2.o mine2.cpp
|
||
|
|
||
|
debug/mine1.o: mine1.cpp bsp.h \
|
||
|
game.h
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\mine1.o mine1.cpp
|
||
|
|
||
|
debug/tunnel.o: tunnel.cpp bsp.h \
|
||
|
game.h
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\tunnel.o tunnel.cpp
|
||
|
|
||
|
debug/ship.o: ship.cpp bsp.h \
|
||
|
game.h
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\ship.o ship.cpp
|
||
|
|
||
|
debug/qspy.o: $(QTOOLS)/qspy/source/qspy.c
|
||
|
$(CC) -c $(CFLAGS) $(INCPATH) -o debug\qspy.o $(QTOOLS)\qspy\source\qspy.c
|
||
|
|
||
|
debug/moc_gui.o: debug/moc_gui.cpp
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\moc_gui.o debug\moc_gui.cpp
|
||
|
|
||
|
debug/qrc_gui.o: debug/qrc_gui.cpp
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\qrc_gui.o debug\qrc_gui.cpp
|
||
|
|
||
|
####### Install
|
||
|
|
||
|
install: FORCE
|
||
|
|
||
|
uninstall: FORCE
|
||
|
|
||
|
FORCE:
|
||
|
|