]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.vc
new wxUSE_xxx variables must be in chkconf.h
[wxWidgets.git] / samples / console / makefile.vc
CommitLineData
6f628073
VS
1# =========================================================================
2# This makefile was generated by
f509d00d 3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
6f628073
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
3e642d84 6
250700e4 7!include <../../build/config.vc>
6f628073
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
bdc408c4 15CONSOLE_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS_7)$(__DEBUGFLAG_2) /DWIN32 $(__DEBUGFLAG_0) /Fd$(OBJS)\console.pdb $(____DEBUGFLAG_3_p) $(__OPTIMIZEFLAG_4) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I.\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /I.\..\..\src\tiff /I.\..\..\src\jpeg /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_CONSOLE $(__MULTILIB_FLAG_p) $(CXXFLAGS)
0706fb23 16OBJS = vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
6f628073
VS
17
18### Conditionally set variables: ###
19
20!if "$(USE_GUI)" == "0"
21PORTNAME = base
22!endif
23!if "$(USE_GUI)" == "1"
24PORTNAME = msw
25!endif
26!if "$(BUILD)" == "debug"
27WXDEBUGFLAG = d
28!endif
29!if "$(SHARED)" == "1"
30WXDLLFLAG = dll
31!endif
32!if "$(UNICODE)" == "1"
33WXUNICODEFLAG = u
34!endif
35!if "$(WXUNIV)" == "1"
36WXUNIVNAME = univ
37!endif
38!if "$(BUILD)" == "debug"
ee5749a6
VS
39__DEBUGFLAG_0 = /Zi
40!endif
41!if "$(BUILD)" == "release"
42__DEBUGFLAG_0 =
43!endif
44!if "$(BUILD)" == "debug"
45__DEBUGFLAG_1 = /DEBUG
46!endif
47!if "$(BUILD)" == "release"
48__DEBUGFLAG_1 =
49!endif
50!if "$(BUILD)" == "debug"
51__DEBUGFLAG_2 = d
52!endif
53!if "$(BUILD)" == "release"
54__DEBUGFLAG_2 =
55!endif
56!if "$(BUILD)" == "debug"
6f628073
VS
57__DEBUG_DEFINE_p = /D__WXDEBUG__
58!endif
59!if "$(SHARED)" == "1"
60__DLLFLAG_p = /DWXUSINGDLL
61!endif
62!if "$(MONOLITHIC)" == "0"
63__MULTILIB_FLAG_p = /DwxUSE_GUI=0
3e642d84 64!endif
ee5749a6 65!if "$(BUILD)" == "debug"
bdc408c4 66__OPTIMIZEFLAG_4 = /Od
ee5749a6
VS
67!endif
68!if "$(BUILD)" == "release"
bdc408c4 69__OPTIMIZEFLAG_4 = /O2
ee5749a6 70!endif
250700e4 71!if "$(RUNTIME_LIBS)" == "dynamic"
bdc408c4 72__RUNTIME_LIBS_7 = D
250700e4
RD
73!endif
74!if "$(RUNTIME_LIBS)" == "static"
bdc408c4 75__RUNTIME_LIBS_7 = T
250700e4 76!endif
6f628073
VS
77!if "$(UNICODE)" == "1"
78__UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
79!endif
80!if "$(MONOLITHIC)" == "0"
0706fb23 81__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
6f628073
VS
82!endif
83!if "$(MONOLITHIC)" == "1"
84__WXLIB_MONO_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
85!endif
86!if "$(WXUNIV)" == "1"
87__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
88!endif
bdc408c4
VS
89!if "$(BUILD)" == "debug"
90____DEBUGFLAG_3_p = /D_DEBUG
91!endif
92!if "$(BUILD)" == "release"
93____DEBUGFLAG_3_p = /DNDEBUG
94!endif
6f628073
VS
95
96
97all: $(OBJS)
98$(OBJS):
99 -if not exist $(OBJS) mkdir $(OBJS)
100
101### Targets: ###
102
103all: $(OBJS)\console.exe data
104
105$(OBJS)\console_console.obj: .\console.cpp
106 $(CXX) /c /nologo /TP /Fo$@ $(CONSOLE_CXXFLAGS) $**
107
108clean:
109 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
110 -if exist $(OBJS)\*.res del $(OBJS)\*.res
111 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
6f628073
VS
112
113$(OBJS)\console.exe: $(OBJS)\console_console.obj
bdc408c4
VS
114 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGFLAG_1) /LIBPATH:.\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /SUBSYSTEM:CONSOLE @<<
115 $(OBJS)\console_console.obj $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxtiff$(WXDEBUGFLAG).lib wxjpeg$(WXDEBUGFLAG).lib wxpng$(WXDEBUGFLAG).lib wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib
6f628073
VS
116<<
117
118data:
0706fb23
VS
119 if not exist $(OBJS) mkdir $(OBJS)
120 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)