📄 makefile
字号:
#############################################################################
# Makefile for building: sr
# Generated by qmake (1.07a) (Qt 3.3.4) on: Wed May 28 00:21:32 2008
# Project: sr.pro
# Template: app
# Command: $(QMAKE) -o Makefile sr.pro
#############################################################################
####### Compiler, tools and options
CC = cl
CXX = cl
LEX = flex
YACC = byacc
CFLAGS = -nologo -Zm200 -W3 -MD -O1 -GX -GX -GR -DUNICODE -DQT_DLL -DQT_THREAD_SUPPORT -DQT_NO_DEBUG
CXXFLAGS = -nologo -Zm200 -W3 -MD -O1 -GX -GX -GR -DUNICODE -DQT_DLL -DQT_THREAD_SUPPORT -DQT_NO_DEBUG
LEXFLAGS =
YACCFLAGS =-d
INCPATH = -I"$(QTDIR)\include" -I"ui" -I"." -I"." -I"moc" -I"c:\qt\3.3.4\mkspecs\win32-msvc"
LINK = link
LFLAGS = /NOLOGO delayimp.lib /DELAYLOAD:comdlg32.dll /DELAYLOAD:oleaut32.dll /DELAYLOAD:winmm.dll /DELAYLOAD:wsock32.dll /DELAYLOAD:winspool.dll /SUBSYSTEM:windows /LIBPATH:"$(QTDIR)\lib"
LIBS = "qt-mt334.lib" "qtmain.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "imm32.lib" "winmm.lib" "wsock32.lib" "winspool.lib" "opengl32.lib" "glu32.lib" "delayimp.lib"
MOC = $(QTDIR)\bin\moc.exe
UIC = $(QTDIR)\bin\uic.exe
QMAKE = qmake
IDC = $(QTDIR)\bin\idc.exe
IDL = midl
ZIP = zip -r -9
COPY_FILE = copy
COPY_DIR = copy
DEL_FILE = del
DEL_DIR = rmdir
MOVE = move
CHK_DIR_EXISTS = if not exist
MKDIR = mkdir
INSTALL_FILE= $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
####### Files
HEADERS = segy.h \
hash.h
SOURCES = main.cpp \
segy.cpp \
hash.cpp
OBJECTS = obj\main.obj \
obj\segy.obj \
obj\hash.obj \
obj\mainform.obj \
obj\qmake_image_collection.obj
FORMS = mainform.ui
UICDECLS = ui\mainform.h
UICIMPLS = ui\mainform.cpp
SRCMOC = moc\moc_mainform.cpp
OBJMOC = obj\moc_mainform.obj
DIST =
TARGET = sr.exe
####### Implicit rules
.SUFFIXES: .c .cpp .cc .cxx .C
{ui}.cpp{obj\}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{ui}.cc{obj\}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{ui}.cxx{obj\}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{ui}.C{obj\}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{ui}.c{obj\}.obj::
$(CC) -c $(CFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{moc}.cpp{obj\}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{moc}.cc{obj\}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{moc}.cxx{obj\}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{moc}.C{obj\}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{moc}.c{obj\}.obj::
$(CC) -c $(CFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{.}.cpp{obj\}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{.}.cc{obj\}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{.}.cxx{obj\}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{.}.C{obj\}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
{.}.c{obj\}.obj::
$(CC) -c $(CFLAGS) $(INCPATH) -Foobj\ @<<
$<
<<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
$(LINK) $(LFLAGS) /OUT:$(TARGET) @<<
$(OBJECTS) $(OBJMOC) $(LIBS)
<<
mocables: $(SRCMOC)
uicables: $(UICIMPLS) $(UICDECLS)
Makefile: sr.pro c:\qt\3.3.4\mkspecs\win32-msvc\qmake.conf c:\qt\3.3.4\lib\qtmain.prl
$(QMAKE) -o Makefile sr.pro
qmake:
@$(QMAKE) -o Makefile sr.pro
dist:
$(ZIP) sr.zip $(SOURCES) $(HEADERS) $(DIST) $(FORMS) D:/1/segy-read/sr.pro c:\qt\3.3.4\lib\qtmain.prl mainform.ui.h images/filenew images/fileopen images/filesave images/print images/undo images/redo images/editcut images/editcopy images/editpaste images/searchfind
uiclean:
-$(DEL_FILE) ui\mainform.h
-$(DEL_FILE) ui\mainform.cpp
mocclean:
-$(DEL_FILE) moc\moc_mainform.cpp
-$(DEL_FILE) obj\moc_mainform.obj
clean: uiclean mocclean
-$(DEL_FILE) obj\main.obj
-$(DEL_FILE) obj\segy.obj
-$(DEL_FILE) obj\hash.obj
-$(DEL_FILE) obj\mainform.obj
-$(DEL_FILE) obj\qmake_image_collection.obj
-$(DEL_FILE) ui\qmake_image_collection.cpp
FORCE:
distclean: clean
-$(DEL_FILE) $(TARGET)
####### Compile
obj\main.obj: main.cpp \
ui\mainform.h \
obj\segy.obj: segy.cpp \
segy.h \
hash.h \
obj\hash.obj: hash.cpp \
hash.h \
ui\mainform.h: mainform.ui
$(UIC) mainform.ui -o ui\mainform.h
ui\mainform.cpp: ui\mainform.h mainform.ui mainform.ui.h
$(UIC) mainform.ui -i mainform.h -o ui\mainform.cpp
obj\mainform.obj: ui\mainform.cpp \
mainform.ui.h \
ui\mainform.h \
obj\moc_mainform.obj: moc\moc_mainform.cpp ui\mainform.h
moc\moc_mainform.cpp: $(MOC) ui\mainform.h
$(MOC) ui\mainform.h -o moc\moc_mainform.cpp
obj\qmake_image_collection.obj: ui\qmake_image_collection.cpp
ui\qmake_image_collection.cpp: images\filenew \
images\fileopen \
images\filesave \
images\print \
images\undo \
images\redo \
images\editcut \
images\editcopy \
images\editpaste \
images\searchfind
$(UIC) -o ui\qmake_image_collection.cpp -embed sr -f <<
images\filenew images\fileopen images\filesave images\print images\undo images\redo images\editcut images\editcopy images\editpaste images\searchfind
<<
####### Install
install:
uninstall:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -