📄 makefile
字号:
#############################################################################
# Makefile for building: spreadsheet
# Generated by qmake (1.06c) (Qt 3.2.1) on: Fri Jan 25 15:22:03 2008
# Project: spreadsheet.pro
# Template: app
# Command: $(QMAKE) -o Makefile spreadsheet.pro
#############################################################################
####### Compiler, tools and options
CC = cl
CXX = cl
LEX = flex
YACC = byacc
CFLAGS = -nologo -Zm200 -W3 -MD -O1 -GX -DUNICODE -DWIN32 -DQT_DLL -DQT_THREAD_SUPPORT -DQT_NO_DEBUG
CXXFLAGS = -nologo -Zm200 -W3 -w34100 -w34189 -MD -O1 -GX -DUNICODE -DWIN32 -DQT_DLL -DQT_THREAD_SUPPORT -DQT_NO_DEBUG
LEXFLAGS =
YACCFLAGS =-d
INCPATH = -I"." -I"$(QTDIR)\include" -I"" -I"E:\C++ GUI Qt3??????\examples\chap03\spreadsheet" -I"C:\Qt\mkspecs\win32-msvc.net"
LINK = link
LFLAGS = /NOLOGO /DELAYLOAD:comdlg32.dll /DELAYLOAD:oleaut32.dll /DELAYLOAD:winmm.dll /DELAYLOAD:wsock32.dll /DELAYLOAD:winspool.dll /SUBSYSTEM:WINDOWS /LIBPATH:"$(QTDIR)\lib"
LIBS = "qt-mtnc321.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" "delayimp.lib" "opengl32.lib" "glu32.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
####### Files
HEADERS = cell.h \
finddialog.h \
gotocelldialog.ui.h \
mainwindow.h \
sortdialog.ui.h \
spreadsheet.h
SOURCES = cell.cpp \
finddialog.cpp \
main.cpp \
mainwindow.cpp \
spreadsheet.cpp
OBJECTS = cell.obj \
finddialog.obj \
main.obj \
mainwindow.obj \
spreadsheet.obj \
gotocelldialog.obj \
sortdialog.obj
FORMS = gotocelldialog.ui \
sortdialog.ui
UICDECLS = gotocelldialog.h \
sortdialog.h
UICIMPLS = gotocelldialog.cpp \
sortdialog.cpp
SRCMOC = moc_finddialog.cpp \
moc_mainwindow.cpp \
moc_spreadsheet.cpp \
moc_gotocelldialog.cpp \
moc_sortdialog.cpp
OBJMOC = moc_finddialog.obj \
moc_mainwindow.obj \
moc_spreadsheet.obj \
moc_gotocelldialog.obj \
moc_sortdialog.obj
DIST =
TARGET = spreadsheet.exe
####### Implicit rules
.SUFFIXES: .c .cpp .cc .cxx .C
{.}.cpp{}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo @<<
$<
<<
{.}.cc{}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo @<<
$<
<<
{.}.cxx{}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo @<<
$<
<<
{.}.C{}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo @<<
$<
<<
{.}.c{}.obj::
$(CC) -c $(CFLAGS) $(INCPATH) -Fo @<<
$<
<<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
$(LINK) $(LFLAGS) /OUT:$(TARGET) @<<
$(OBJECTS) $(OBJMOC) $(LIBS)
<<
mocables: $(SRCMOC)
uicables: $(UICIMPLS) $(UICDECLS)
Makefile: spreadsheet.pro C:\Qt\mkspecs\win32-msvc.net\qmake.conf C:\Qt\lib\qtmain.prl
$(QMAKE) -o Makefile spreadsheet.pro
qmake:
@$(QMAKE) -o Makefile spreadsheet.pro
dist:
$(ZIP) spreadsheet.zip $(SOURCES) $(HEADERS) $(DIST) $(FORMS) E:/C++ GUI Qt3??????/examples/chap03/spreadsheet/spreadsheet.pro C:\Qt\lib\qtmain.prl gotocelldialog.ui.h sortdialog.ui.h
uiclean:
-$(DEL_FILE) gotocelldialog.h
-$(DEL_FILE) sortdialog.h
-$(DEL_FILE) gotocelldialog.cpp
-$(DEL_FILE) sortdialog.cpp
mocclean:
-$(DEL_FILE) moc_finddialog.cpp
-$(DEL_FILE) moc_mainwindow.cpp
-$(DEL_FILE) moc_spreadsheet.cpp
-$(DEL_FILE) moc_gotocelldialog.cpp
-$(DEL_FILE) moc_sortdialog.cpp
-$(DEL_FILE) moc_finddialog.obj
-$(DEL_FILE) moc_mainwindow.obj
-$(DEL_FILE) moc_spreadsheet.obj
-$(DEL_FILE) moc_gotocelldialog.obj
-$(DEL_FILE) moc_sortdialog.obj
clean: uiclean mocclean
-$(DEL_FILE) cell.obj
-$(DEL_FILE) finddialog.obj
-$(DEL_FILE) main.obj
-$(DEL_FILE) mainwindow.obj
-$(DEL_FILE) spreadsheet.obj
-$(DEL_FILE) gotocelldialog.obj
-$(DEL_FILE) sortdialog.obj
FORCE:
distclean: clean
-$(DEL_FILE) $(TARGET)
####### Compile
cell.obj: cell.cpp cell.h
finddialog.obj: finddialog.cpp finddialog.h
main.obj: main.cpp mainwindow.h
mainwindow.obj: mainwindow.cpp cell.h \
finddialog.h \
gotocelldialog.h \
mainwindow.h \
sortdialog.h \
spreadsheet.h
spreadsheet.obj: spreadsheet.cpp cell.h \
spreadsheet.h
gotocelldialog.h: gotocelldialog.ui
$(UIC) gotocelldialog.ui -o gotocelldialog.h
gotocelldialog.cpp: gotocelldialog.h gotocelldialog.ui
$(UIC) gotocelldialog.ui -i gotocelldialog.h -o gotocelldialog.cpp
sortdialog.h: sortdialog.ui
$(UIC) sortdialog.ui -o sortdialog.h
sortdialog.cpp: sortdialog.h sortdialog.ui
$(UIC) sortdialog.ui -i sortdialog.h -o sortdialog.cpp
gotocelldialog.obj: gotocelldialog.cpp gotocelldialog.ui.h \
gotocelldialog.h
sortdialog.obj: sortdialog.cpp sortdialog.ui.h \
sortdialog.h
moc_finddialog.obj: moc_finddialog.cpp finddialog.h
moc_mainwindow.obj: moc_mainwindow.cpp mainwindow.h
moc_spreadsheet.obj: moc_spreadsheet.cpp spreadsheet.h
moc_gotocelldialog.obj: moc_gotocelldialog.cpp gotocelldialog.h
moc_sortdialog.obj: moc_sortdialog.cpp sortdialog.h
moc_finddialog.cpp: $(MOC) finddialog.h
$(MOC) finddialog.h -o moc_finddialog.cpp
moc_mainwindow.cpp: $(MOC) mainwindow.h
$(MOC) mainwindow.h -o moc_mainwindow.cpp
moc_spreadsheet.cpp: $(MOC) spreadsheet.h
$(MOC) spreadsheet.h -o moc_spreadsheet.cpp
moc_gotocelldialog.cpp: $(MOC) gotocelldialog.h
$(MOC) gotocelldialog.h -o moc_gotocelldialog.cpp
moc_sortdialog.cpp: $(MOC) sortdialog.h
$(MOC) sortdialog.h -o moc_sortdialog.cpp
####### Install
install: all
uninstall:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -