📄 makefile.release
字号:
#############################################################################
# Makefile for building: xcom
# Generated by qmake (2.01a) (Qt 4.4.3) on: ??? ?? 30 14:27:25 2009
# Project: xcom.pro
# Template: app
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
DEFINES = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
CFLAGS = -O2 -Wall $(DEFINES)
CXXFLAGS = -O2 -frtti -fexceptions -mthreads -Wall $(DEFINES)
INCPATH = -I"c:\Qt\QtCreator\qt\include\QtCore" -I"c:\Qt\QtCreator\qt\include\QtCore" -I"c:\Qt\QtCreator\qt\include\QtNetwork" -I"c:\Qt\QtCreator\qt\include\QtNetwork" -I"c:\Qt\QtCreator\qt\include\QtGui" -I"c:\Qt\QtCreator\qt\include\QtGui" -I"c:\Qt\QtCreator\qt\include" -I"." -I"c:\Qt\QtCreator\qt\include\ActiveQt" -I"release" -I"." -I"c:\Qt\QtCreator\qt\mkspecs\win32-g++"
LINK = g++
LFLAGS = -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows
LIBS = -L"c:\Qt\QtCreator\qt\lib" -lmingw32 -lqtmain release\myapp_res.o -lQtGui4 -lQtNetwork4 -lQtCore4
QMAKE = c:\Qt\QtCreator\qt\bin\qmake.exe
IDC = c:\Qt\QtCreator\qt\bin\idc.exe
IDL = midl
ZIP = zip -r -9
DEF_FILE =
RES_FILE = release\myapp_res.o
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 = release
####### Files
SOURCES = main.cpp \
src\xcom.cpp \
src\qextserialbase.cpp \
src\qextserialport.cpp \
src\win_qextserialport.cpp \
c:\Qt\QtCreator\bin\gdbmacros\gdbmacros.cpp release\moc_xcom.cpp \
release\moc_comthread.cpp \
release\moc_comtest.cpp
OBJECTS = release/main.o \
release/xcom.o \
release/qextserialbase.o \
release/qextserialport.o \
release/win_qextserialport.o \
release/gdbmacros.o \
release/moc_xcom.o \
release/moc_comthread.o \
release/moc_comtest.o
DIST =
QMAKE_TARGET = xcom
DESTDIR = release\ #avoid trailing-slash linebreak
TARGET = xcom.exe
DESTDIR_TARGET = release\xcom.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): ui_xcom.h $(OBJECTS) release/myapp_res.o
$(LINK) $(LFLAGS) -o $(DESTDIR_TARGET) $(OBJECTS) $(LIBS)
release/myapp_res.o: myapp.rc
windres -i myapp.rc -o release\myapp_res.o --include-dir=.
qmake: FORCE
@$(QMAKE) -spec c:\Qt\QtCreator\qt\mkspecs\win32-g++ -win32 CONFIG+=debug_and_release -after SOURCES*=C:/Qt/QtCreator/bin/gdbmacros/gdbmacros.cpp QT*=network -o Makefile.Release xcom.pro
dist:
$(ZIP) xcom.zip $(SOURCES) $(DIST) xcom.pro c:\Qt\QtCreator\qt\mkspecs\qconfig.pri c:\Qt\QtCreator\qt\mkspecs\features\qt_functions.prf c:\Qt\QtCreator\qt\mkspecs\features\qt_config.prf c:\Qt\QtCreator\qt\mkspecs\features\exclusive_builds.prf c:\Qt\QtCreator\qt\mkspecs\features\default_pre.prf c:\Qt\QtCreator\qt\mkspecs\features\win32\default_pre.prf c:\Qt\QtCreator\qt\mkspecs\features\release.prf c:\Qt\QtCreator\qt\mkspecs\features\debug_and_release.prf c:\Qt\QtCreator\qt\mkspecs\features\default_post.prf c:\Qt\QtCreator\qt\mkspecs\features\build_pass.prf c:\Qt\QtCreator\qt\mkspecs\features\win32\rtti.prf c:\Qt\QtCreator\qt\mkspecs\features\win32\exceptions.prf c:\Qt\QtCreator\qt\mkspecs\features\win32\stl.prf c:\Qt\QtCreator\qt\mkspecs\features\shared.prf c:\Qt\QtCreator\qt\mkspecs\features\warn_on.prf c:\Qt\QtCreator\qt\mkspecs\features\qt.prf c:\Qt\QtCreator\qt\mkspecs\features\win32\thread.prf c:\Qt\QtCreator\qt\mkspecs\features\moc.prf c:\Qt\QtCreator\qt\mkspecs\features\win32\windows.prf c:\Qt\QtCreator\qt\mkspecs\features\resources.prf c:\Qt\QtCreator\qt\mkspecs\features\uic.prf c:\Qt\QtCreator\qt\mkspecs\features\yacc.prf c:\Qt\QtCreator\qt\mkspecs\features\lex.prf c:\Qt\QtCreator\qt\lib\qtmain.prl HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES
clean: compiler_clean
-$(DEL_FILE) release\main.o release\xcom.o release\qextserialbase.o release\qextserialport.o release\win_qextserialport.o release\gdbmacros.o release\moc_xcom.o release\moc_comthread.o release\moc_comtest.o
-$(DEL_FILE) release\myapp_res.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_xcom.cpp release/moc_comthread.cpp release/moc_comtest.cpp
compiler_moc_header_clean:
-$(DEL_FILE) release\moc_xcom.cpp release\moc_comthread.cpp release\moc_comtest.cpp
release/moc_xcom.cpp: src/win_qextserialport.h \
src/qextserialbase.h \
src/comthread.h \
src/comtest.h \
ui_xcom.h \
src/xcom.h
C:/Qt/QtCreator/qt/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 src\xcom.h -o release\moc_xcom.cpp
release/moc_comthread.cpp: src/comthread.h
C:/Qt/QtCreator/qt/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 src\comthread.h -o release\moc_comthread.cpp
release/moc_comtest.cpp: src/win_qextserialport.h \
src/qextserialbase.h \
src/comtest.h
C:/Qt/QtCreator/qt/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 src\comtest.h -o release\moc_comtest.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: ui_xcom.h
compiler_uic_clean:
-$(DEL_FILE) ui_xcom.h
ui_xcom.h: xcom.ui
c:\Qt\QtCreator\qt\bin\uic.exe xcom.ui -o ui_xcom.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_uic_clean
####### Compile
release/main.o: main.cpp src/xcom.h \
src/win_qextserialport.h \
src/qextserialbase.h \
src/comthread.h \
src/comtest.h \
ui_xcom.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\main.o main.cpp
release/xcom.o: src/xcom.cpp src/xcom.h \
src/win_qextserialport.h \
src/qextserialbase.h \
src/comthread.h \
src/comtest.h \
ui_xcom.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\xcom.o src\xcom.cpp
release/qextserialbase.o: src/qextserialbase.cpp src/qextserialbase.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\qextserialbase.o src\qextserialbase.cpp
release/qextserialport.o: src/qextserialport.cpp src/qextserialport.h \
src/win_qextserialport.h \
src/qextserialbase.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\qextserialport.o src\qextserialport.cpp
release/win_qextserialport.o: src/win_qextserialport.cpp src/win_qextserialport.h \
src/qextserialbase.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\win_qextserialport.o src\win_qextserialport.cpp
release/gdbmacros.o: c:/Qt/QtCreator/bin/gdbmacros/gdbmacros.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\gdbmacros.o c:\Qt\QtCreator\bin\gdbmacros\gdbmacros.cpp
release/moc_xcom.o: release/moc_xcom.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_xcom.o release\moc_xcom.cpp
release/moc_comthread.o: release/moc_comthread.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_comthread.o release\moc_comthread.cpp
release/moc_comtest.o: release/moc_comtest.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_comtest.o release\moc_comtest.cpp
####### Install
install: FORCE
uninstall: FORCE
FORCE:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -