⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.debug

📁 在qt4下编写的一个小游戏程序
💻 DEBUG
字号:
#############################################################################
# Makefile for building: t13
# Generated by qmake (2.01a) (Qt 4.3.4) on: ??? ?? 30 10:12:57 2008
# Project:  game.pro
# Template: app
#############################################################################

####### Compiler, tools and options

CC            = gcc
CXX           = g++
DEFINES       = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
CFLAGS        = -g -Wall $(DEFINES)
CXXFLAGS      = -g -Wall -frtti -fexceptions -mthreads $(DEFINES)
INCPATH       = -I"..\..\Qt\4.3.4\include\QtCore" -I"..\..\Qt\4.3.4\include\QtCore" -I"..\..\Qt\4.3.4\include\QtGui" -I"..\..\Qt\4.3.4\include\QtGui" -I"..\..\Qt\4.3.4\include" -I"d:\Qt\4.3.4\include\ActiveQt" -I"debug" -I"." -I"..\..\Qt\4.3.4\mkspecs\win32-g++"
LINK        =        g++
LFLAGS        =        -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows
LIBS        =        -L"d:\Qt\4.3.4\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
QMAKE         = d:\qt\4.3.4\bin\qmake.exe
IDC           = d:\Qt\4.3.4\bin\idc.exe
IDL           = midl
ZIP           = zip -r -9
DEF_FILE      = 
RES_FILE      = 
COPY          = copy /y
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       = cannonfield.cpp \
		gameboard.cpp \
		lcdrange.cpp \
		main.cpp debug\moc_cannonfield.cpp \
		debug\moc_gameboard.cpp \
		debug\moc_lcdrange.cpp
OBJECTS       = debug/cannonfield.o \
		debug/gameboard.o \
		debug/lcdrange.o \
		debug/main.o \
		debug/moc_cannonfield.o \
		debug/moc_gameboard.o \
		debug/moc_lcdrange.o
DIST          = 
QMAKE_TARGET  = t13
DESTDIR        = debug\ #avoid trailing-slash linebreak
TARGET         = t13.exe
DESTDIR_TARGET = debug\t13.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):  $(OBJECTS) 
	$(LINK) $(LFLAGS) -o $(DESTDIR_TARGET) $(OBJECTS)  $(LIBS)


qmake:  FORCE
	@$(QMAKE) -win32 -o Makefile.Debug game.pro

dist:
	$(ZIP) t13.zip $(SOURCES) $(DIST) game.pro ..\..\Qt\4.3.4\mkspecs\qconfig.pri ..\..\Qt\4.3.4\mkspecs\features\qt_functions.prf ..\..\Qt\4.3.4\mkspecs\features\qt_config.prf ..\..\Qt\4.3.4\mkspecs\features\exclusive_builds.prf ..\..\Qt\4.3.4\mkspecs\features\default_pre.prf ..\..\Qt\4.3.4\mkspecs\features\win32\default_pre.prf ..\..\Qt\4.3.4\mkspecs\features\debug.prf ..\..\Qt\4.3.4\mkspecs\features\debug_and_release.prf ..\..\Qt\4.3.4\mkspecs\features\default_post.prf ..\..\Qt\4.3.4\mkspecs\features\build_pass.prf ..\..\Qt\4.3.4\mkspecs\features\warn_on.prf ..\..\Qt\4.3.4\mkspecs\features\qt.prf ..\..\Qt\4.3.4\mkspecs\features\win32\thread.prf ..\..\Qt\4.3.4\mkspecs\features\moc.prf ..\..\Qt\4.3.4\mkspecs\features\win32\rtti.prf ..\..\Qt\4.3.4\mkspecs\features\win32\exceptions.prf ..\..\Qt\4.3.4\mkspecs\features\win32\stl.prf ..\..\Qt\4.3.4\mkspecs\features\shared.prf ..\..\Qt\4.3.4\mkspecs\features\win32\windows.prf ..\..\Qt\4.3.4\mkspecs\features\resources.prf ..\..\Qt\4.3.4\mkspecs\features\uic.prf ..\..\Qt\4.3.4\mkspecs\features\yacc.prf ..\..\Qt\4.3.4\mkspecs\features\lex.prf d:\Qt\4.3.4\lib\qtmaind.prl  HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES 

clean: compiler_clean 
	-$(DEL_FILE) debug\cannonfield.o debug\gameboard.o debug\lcdrange.o debug\main.o debug\moc_cannonfield.o debug\moc_gameboard.o debug\moc_lcdrange.o

distclean: clean
	-$(DEL_FILE) $(DESTDIR_TARGET)
	-$(DEL_FILE) Makefile.Debug

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_cannonfield.cpp debug/moc_gameboard.cpp debug/moc_lcdrange.cpp
compiler_moc_header_clean:
	-$(DEL_FILE) debug\moc_cannonfield.cpp debug\moc_gameboard.cpp debug\moc_lcdrange.cpp
debug/moc_cannonfield.cpp: cannonfield.h
	D:/Qt/4.3.4/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 cannonfield.h -o debug\moc_cannonfield.cpp

debug/moc_gameboard.cpp: gameboard.h
	D:/Qt/4.3.4/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 gameboard.h -o debug\moc_gameboard.cpp

debug/moc_lcdrange.cpp: lcdrange.h
	D:/Qt/4.3.4/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 lcdrange.h -o debug\moc_lcdrange.cpp

compiler_rcc_make_all:
compiler_rcc_clean:
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:
compiler_uic_clean:
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 



####### Compile

debug/cannonfield.o: cannonfield.cpp cannonfield.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\cannonfield.o cannonfield.cpp

debug/gameboard.o: gameboard.cpp cannonfield.h \
		gameboard.h \
		lcdrange.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\gameboard.o gameboard.cpp

debug/lcdrange.o: lcdrange.cpp lcdrange.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\lcdrange.o lcdrange.cpp

debug/main.o: main.cpp gameboard.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\main.o main.cpp

debug/moc_cannonfield.o: debug/moc_cannonfield.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\moc_cannonfield.o debug\moc_cannonfield.cpp

debug/moc_gameboard.o: debug/moc_gameboard.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\moc_gameboard.o debug\moc_gameboard.cpp

debug/moc_lcdrange.o: debug/moc_lcdrange.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\moc_lcdrange.o debug\moc_lcdrange.cpp

####### Install

install_target: first FORCE
	@$(CHK_DIR_EXISTS) d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13 $(MKDIR) d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13 
	-$(INSTALL_FILE) "$(DESTDIR_TARGET)" "d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13\$(TARGET)"

uninstall_target:  FORCE
	-$(DEL_FILE) "d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13\$(TARGET)"
	-$(DEL_DIR) d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13 


install_sources: first FORCE
	@$(CHK_DIR_EXISTS) d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13 $(MKDIR) d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13 
	-$(INSTALL_FILE) d:\studywork\game\cannonfield.cpp d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13
	-$(INSTALL_FILE) d:\studywork\game\gameboard.cpp d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13
	-$(INSTALL_FILE) d:\studywork\game\lcdrange.cpp d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13
	-$(INSTALL_FILE) d:\studywork\game\main.cpp d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13
	-$(INSTALL_FILE) d:\studywork\game\cannonfield.h d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13
	-$(INSTALL_FILE) d:\studywork\game\gameboard.h d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13
	-$(INSTALL_FILE) d:\studywork\game\lcdrange.h d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13


uninstall_sources:  FORCE
	-$(DEL_FILE) d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13\cannonfield.cpp 
	 -$(DEL_FILE) d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13\gameboard.cpp 
	 -$(DEL_FILE) d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13\lcdrange.cpp 
	 -$(DEL_FILE) d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13\main.cpp 
	 -$(DEL_FILE) d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13\cannonfield.h 
	 -$(DEL_FILE) d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13\gameboard.h 
	 -$(DEL_FILE) d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13\lcdrange.h
	-$(DEL_DIR) d:$(INSTALL_ROOT)\Qt\4.3.4\examples\tutorial\t13 


install:  install_target install_sources  FORCE

uninstall: uninstall_target uninstall_sources   FORCE

FORCE:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -