Subversion Repositories OpenCV2-Cookbook

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 PointedEar 1
#############################################################################
2
# Makefile for building: myQtGUIApp
3
# Generated by qmake (2.01a) (Qt 4.6.3) on: Mon Feb 28 15:14:16 2011
4
# Project:  myQtGUIApp.pro
5
# Template: app
6
#############################################################################
7
 
8
####### Compiler, tools and options
9
 
10
CC            = cl
11
CXX           = cl
12
DEFINES       = -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
13
CFLAGS        = -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3 $(DEFINES)
14
CXXFLAGS      = -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 $(DEFINES)
15
INCPATH       = -I"..\..\Qt\4.6.3\include\QtCore" -I"..\..\Qt\4.6.3\include\QtGui" -I"..\..\Qt\4.6.3\include" -I"..\..\OpenCV2.2\include" -I"..\..\Qt\4.6.3\include\ActiveQt" -I"release" -I"." -I"..\..\Qt\4.6.3\mkspecs\win32-msvc2008"
16
LINK          = link
17
LFLAGS        = /LIBPATH:"c:\Qt\4.6.3\lib" /NOLOGO /INCREMENTAL:NO /MANIFEST /MANIFESTFILE:"release\myQtGUIApp.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'"
18
LIBS          = c:\Qt\4.6.3\lib\qtmain.lib /LIBPATH:C:\OpenCV2.2\lib C:\OpenCV2.2\lib\opencv_core220.lib C:\OpenCV2.2\lib\opencv_highgui220.lib C:\OpenCV2.2\lib\opencv_imgproc220.lib C:\OpenCV2.2\lib\opencv_features2d220.lib C:\OpenCV2.2\lib\opencv_calib3d220.lib c:\Qt\4.6.3\lib\QtGui4.lib c:\Qt\4.6.3\lib\QtCore4.lib
19
QMAKE         = c:\Qt\4.6.3\bin\qmake.exe
20
IDC           = c:\Qt\4.6.3\bin\idc.exe
21
IDL           = midl
22
ZIP           = zip -r -9
23
DEF_FILE      =
24
RES_FILE      =
25
COPY          = copy /y
26
COPY_FILE     = $(COPY)
27
COPY_DIR      = xcopy /s /q /y /i
28
DEL_FILE      = del
29
DEL_DIR       = rmdir
30
MOVE          = move
31
CHK_DIR_EXISTS= if not exist
32
MKDIR         = mkdir
33
INSTALL_FILE    = $(COPY_FILE)
34
INSTALL_PROGRAM = $(COPY_FILE)
35
INSTALL_DIR     = $(COPY_DIR)
36
 
37
####### Output directory
38
 
39
OBJECTS_DIR   = release
40
 
41
####### Files
42
 
43
SOURCES       = main.cpp \
44
		mainwindow.cpp release\moc_mainwindow.cpp
45
OBJECTS       = release\main.obj \
46
		release\mainwindow.obj \
47
		release\moc_mainwindow.obj
48
DIST          =
49
QMAKE_TARGET  = myQtGUIApp
50
DESTDIR        = release\ #avoid trailing-slash linebreak
51
TARGET         = myQtGUIApp.exe
52
DESTDIR_TARGET = release\myQtGUIApp.exe
53
 
54
####### Implicit rules
55
 
56
.SUFFIXES: .c .cpp .cc .cxx
57
 
58
{release}.cpp{release\}.obj::
59
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease\ @<<
60
	$<
61
<<
62
 
63
{release}.cc{release\}.obj::
64
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease\ @<<
65
	$<
66
<<
67
 
68
{release}.cxx{release\}.obj::
69
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease\ @<<
70
	$<
71
<<
72
 
73
{release}.c{release\}.obj::
74
	$(CC) -c $(CFLAGS) $(INCPATH) -Forelease\ @<<
75
	$<
76
<<
77
 
78
{.}.cpp{release\}.obj::
79
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease\ @<<
80
	$<
81
<<
82
 
83
{.}.cc{release\}.obj::
84
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease\ @<<
85
	$<
86
<<
87
 
88
{.}.cxx{release\}.obj::
89
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease\ @<<
90
	$<
91
<<
92
 
93
{.}.c{release\}.obj::
94
	$(CC) -c $(CFLAGS) $(INCPATH) -Forelease\ @<<
95
	$<
96
<<
97
 
98
####### Build rules
99
 
100
first: all
101
all: Makefile.Release $(DESTDIR_TARGET)
102
 
103
$(DESTDIR_TARGET): ui_mainwindow.h $(OBJECTS)
104
	$(LINK) $(LFLAGS) /OUT:$(DESTDIR_TARGET) @<<
105
	  $(OBJECTS) $(LIBS)
106
<<
107
	mt.exe -nologo -manifest "release\myQtGUIApp.intermediate.manifest" -outputresource:$(DESTDIR_TARGET);1
108
 
109
 
110
 
111
qmake:  FORCE
112
	@$(QMAKE) -spec ..\..\Qt\4.6.3\mkspecs\win32-msvc2008 -win32 CONFIG+=release -o Makefile.Release myQtGUIApp.pro
113
 
114
dist:
115
	$(ZIP) myQtGUIApp.zip $(SOURCES) $(DIST) myQtGUIApp.pro ..\..\Qt\4.6.3\mkspecs\qconfig.pri ..\..\Qt\4.6.3\mkspecs\features\qt_functions.prf ..\..\Qt\4.6.3\mkspecs\features\qt_config.prf ..\..\Qt\4.6.3\mkspecs\features\exclusive_builds.prf ..\..\Qt\4.6.3\mkspecs\features\default_pre.prf ..\..\Qt\4.6.3\mkspecs\features\win32\default_pre.prf ..\..\Qt\4.6.3\mkspecs\features\release.prf ..\..\Qt\4.6.3\mkspecs\features\debug_and_release.prf ..\..\Qt\4.6.3\mkspecs\features\default_post.prf ..\..\Qt\4.6.3\mkspecs\features\win32\default_post.prf ..\..\Qt\4.6.3\mkspecs\features\build_pass.prf ..\..\Qt\4.6.3\mkspecs\features\win32\rtti.prf ..\..\Qt\4.6.3\mkspecs\features\win32\exceptions.prf ..\..\Qt\4.6.3\mkspecs\features\win32\stl.prf ..\..\Qt\4.6.3\mkspecs\features\shared.prf ..\..\Qt\4.6.3\mkspecs\features\win32\embed_manifest_exe.prf ..\..\Qt\4.6.3\mkspecs\features\win32\embed_manifest_dll.prf ..\..\Qt\4.6.3\mkspecs\features\warn_on.prf ..\..\Qt\4.6.3\mkspecs\features\qt.prf ..\..\Qt\4.6.3\mkspecs\features\win32\thread.prf ..\..\Qt\4.6.3\mkspecs\features\moc.prf ..\..\Qt\4.6.3\mkspecs\features\win32\windows.prf ..\..\Qt\4.6.3\mkspecs\features\resources.prf ..\..\Qt\4.6.3\mkspecs\features\uic.prf ..\..\Qt\4.6.3\mkspecs\features\yacc.prf ..\..\Qt\4.6.3\mkspecs\features\lex.prf ..\..\Qt\4.6.3\mkspecs\features\incredibuild_xge.prf ..\..\Qt\4.6.3\mkspecs\features\include_source_dir.prf c:\Qt\4.6.3\lib\qtmain.prl  HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES
116
 
117
clean: compiler_clean
118
	-$(DEL_FILE) release\main.obj release\mainwindow.obj release\moc_mainwindow.obj
119
	-$(DEL_FILE) release\myQtGUIApp.intermediate.manifest release\myQtGUIApp.exp
120
 
121
distclean: clean
122
	-$(DEL_FILE) $(DESTDIR_TARGET)
123
	-$(DEL_FILE) Makefile.Release
124
 
125
check: first
126
 
127
mocclean: compiler_moc_header_clean compiler_moc_source_clean
128
 
129
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
130
 
131
compiler_moc_header_make_all: release\moc_mainwindow.cpp
132
compiler_moc_header_clean:
133
	-$(DEL_FILE) release\moc_mainwindow.cpp
134
release\moc_mainwindow.cpp: mainwindow.h
135
	C:\Qt\4.6.3\bin\moc.exe $(DEFINES) $(INCPATH) -D_MSC_VER=1500 -DWIN32 mainwindow.h -o release\moc_mainwindow.cpp
136
 
137
compiler_rcc_make_all:
138
compiler_rcc_clean:
139
compiler_image_collection_make_all: qmake_image_collection.cpp
140
compiler_image_collection_clean:
141
	-$(DEL_FILE) qmake_image_collection.cpp
142
compiler_moc_source_make_all:
143
compiler_moc_source_clean:
144
compiler_uic_make_all: ui_mainwindow.h
145
compiler_uic_clean:
146
	-$(DEL_FILE) ui_mainwindow.h
147
ui_mainwindow.h: mainwindow.ui
148
	c:\Qt\4.6.3\bin\uic.exe mainwindow.ui -o ui_mainwindow.h
149
 
150
compiler_yacc_decl_make_all:
151
compiler_yacc_decl_clean:
152
compiler_yacc_impl_make_all:
153
compiler_yacc_impl_clean:
154
compiler_lex_make_all:
155
compiler_lex_clean:
156
compiler_clean: compiler_moc_header_clean compiler_uic_clean
157
 
158
 
159
 
160
####### Compile
161
 
162
release\main.obj: main.cpp mainwindow.h
163
 
164
release\mainwindow.obj: mainwindow.cpp mainwindow.h \
165
		ui_mainwindow.h
166
 
167
release\moc_mainwindow.obj: release\moc_mainwindow.cpp
168
 
169
####### Install
170
 
171
install:   FORCE
172
 
173
uninstall:   FORCE
174
 
175
FORCE:
176