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

📄 makefile.release

📁 linux窗口程序设计一书的第三章代码-对话框进阶,希望对大家有用
💻 RELEASE
字号:
#############################################################################
# Makefile for building: splash
# Generated by qmake (2.01a) (Qt 4.2.1) on: ??? ?? 12 15:43:48 2008
# Project:  splash.pro
# Template: app
#############################################################################

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

CC            = gcc
CXX           = g++
LEX           = flex
YACC          = byacc
DEFINES       = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
CFLAGS        = -O2 -O2 -Wall $(DEFINES)
CXXFLAGS      = -O2 -O2 -frtti -fexceptions -Wall $(DEFINES)
LEXFLAGS      = 
YACCFLAGS     = -d
INCPATH       = -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include" -I"C:/Qt/4.2.1/include/QtTest" -I"." -I"C:/Qt/4.2.1/include/ActiveQt" -I"release" -I"." -I"c:\Qt\4.2.1\mkspecs\win32-g++"
LINK        =        g++
LFLAGS        =        -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,console
LIBS        =        -L"c:\Qt\4.2.1\lib" -lQtTest4 -lQtGui4 -lQtCore4
QMAKE         = qmake
IDC           = c:\Qt\4.2.1\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_DIR   = $(COPY_DIR)

####### Output directory

OBJECTS_DIR   = release

####### Files

SOURCES       = main.cpp \
		mainwindow.cpp release\moc_mainwindow.cpp \
		release\qrc_splash.cpp
OBJECTS       = release\main.o \
		release\mainwindow.o \
		release\moc_mainwindow.o \
		release\qrc_splash.o
DIST          = 
QMAKE_TARGET  = splash
DESTDIR        = release\ #avoid trailing-slash linebreak
TARGET         = splash.exe
DESTDIR_TARGET = release\splash.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.Release  $(DESTDIR_TARGET)

$(DESTDIR_TARGET):  $(OBJECTS) 
	$(LINK) $(LFLAGS) -o "$(DESTDIR_TARGET)" $(OBJECTS)  $(LIBS)


qmake:  FORCE
	@$(QMAKE) -win32 -o Makefile.Release splash.pro

dist:
	$(ZIP) splash.zip $(SOURCES) $(DIST) splash.pro C:/Qt/4.2.1/mkspecs/qconfig.pri c:\Qt\4.2.1\mkspecs\features\qt_functions.prf c:\Qt\4.2.1\mkspecs\features\qt_config.prf c:\Qt\4.2.1\mkspecs\features\exclusive_builds.prf c:\Qt\4.2.1\mkspecs\features\default_pre.prf c:\Qt\4.2.1\mkspecs\features\win32\default_pre.prf c:\Qt\4.2.1\mkspecs\features\release.prf c:\Qt\4.2.1\mkspecs\features\debug_and_release.prf c:\Qt\4.2.1\mkspecs\features\default_post.prf c:\Qt\4.2.1\mkspecs\features\build_pass.prf c:\Qt\4.2.1\mkspecs\features\Release.prf c:\Qt\4.2.1\mkspecs\features\qtestlib.prf c:\Qt\4.2.1\mkspecs\features\win32\console.prf c:\Qt\4.2.1\mkspecs\features\win32\rtti.prf c:\Qt\4.2.1\mkspecs\features\win32\exceptions.prf c:\Qt\4.2.1\mkspecs\features\win32\stl.prf c:\Qt\4.2.1\mkspecs\features\shared.prf c:\Qt\4.2.1\mkspecs\features\warn_on.prf c:\Qt\4.2.1\mkspecs\features\qt.prf c:\Qt\4.2.1\mkspecs\features\win32\thread.prf c:\Qt\4.2.1\mkspecs\features\moc.prf c:\Qt\4.2.1\mkspecs\features\resources.prf c:\Qt\4.2.1\mkspecs\features\uic.prf  HEADERS RESOURCES IMAGES SOURCES FORMS 

clean: compiler_clean
	-$(DEL_FILE) release\main.o release\mainwindow.o release\moc_mainwindow.o release\qrc_splash.o

distclean: clean
	-$(DEL_FILE) "$(DESTDIR_TARGET)"
	-$(DEL_FILE) Makefile.Release

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: release\moc_mainwindow.cpp
compiler_moc_header_clean:
	-$(DEL_FILE) release\moc_mainwindow.cpp
release\moc_mainwindow.cpp: mainwindow.h
	c:\Qt\4.2.1\bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 mainwindow.h -o release\moc_mainwindow.cpp

compiler_rcc_make_all: release\qrc_splash.cpp
compiler_rcc_clean:
	-$(DEL_FILE) release\qrc_splash.cpp
release\qrc_splash.cpp: splash.qrc \
		c:\Qt\4.2.1\bin\rcc.exe \
		splash.jpg \
		images\new.png \
		images\cut.png \
		images\copy.png \
		images\save.png \
		images\paste.png \
		images\open.png
	c:\Qt\4.2.1\bin\rcc.exe -name splash splash.qrc -o release\qrc_splash.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:
compiler_uic_clean:
compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_image_collection_clean compiler_moc_source_clean compiler_uic_clean 



####### Compile

release\main.o: main.cpp mainwindow.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\main.o main.cpp

release\mainwindow.o: mainwindow.cpp mainwindow.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\mainwindow.o mainwindow.cpp

release\moc_mainwindow.o: release\moc_mainwindow.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_mainwindow.o release\moc_mainwindow.cpp

release\qrc_splash.o: release\qrc_splash.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\qrc_splash.o release\qrc_splash.cpp

####### Install

install:   FORCE

uninstall:   FORCE

FORCE:

⌨️ 快捷键说明

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