]>
Commit | Line | Data |
---|---|---|
6f628073 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) | |
4 | # Do not modify, all changes will be overwritten! | |
5 | # ========================================================================= | |
3e642d84 | 6 | |
3e642d84 | 7 | |
6f628073 VS |
8 | # ------------------------------------------------------------------------- |
9 | # These are configurable options: | |
10 | # ------------------------------------------------------------------------- | |
3e642d84 | 11 | |
6f628073 VS |
12 | # Type of compiled binaries [debug,release] |
13 | BUILD = release | |
14 | # Name of your custom configuration. This affects directory | |
15 | # where object files are stored as well as the location of | |
16 | # compiled .lib files and setup.h under the lib/ toplevel directory. | |
17 | CFG = | |
18 | # Standard preprocessor flags (common for CC and CXX) | |
19 | CPPFLAGS = /DWIN32 /D_WINDOWS | |
20 | # C++ compiler | |
21 | CXX = cl | |
22 | # Standard flags for C++ | |
23 | CXXFLAGS = | |
24 | # Standard linker flags | |
25 | LDFLAGS = | |
26 | # Multiple libraries or single huge monolithic one? [0,1] | |
27 | MONOLITHIC = 1 | |
28 | # Is this official build by wxWindows developers? [0,1] | |
29 | OFFICIAL_BUILD = 0 | |
30 | # What type of library to build? [0,1] | |
31 | SHARED = 1 | |
32 | # Compile Unicode build of wxWindows? [0,1] | |
33 | UNICODE = 0 | |
34 | # Build GUI libraries? [0,1] | |
35 | USE_GUI = 1 | |
36 | # Build wxUniversal instead of native port? [0,1] | |
37 | WXUNIV = 0 | |
38 | ||
39 | # ------------------------------------------------------------------------- | |
40 | # Do not modify the rest of this file! | |
41 | # ------------------------------------------------------------------------- | |
42 | ||
43 | ### Variables: ### | |
44 | ||
0706fb23 | 45 | OBJS = vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
ee5749a6 | 46 | CONSOLE_CXXFLAGS = $(CPPFLAGS) /MD$(__DEBUGFLAG_2) $(__DEBUGFLAG_0) /Fd$(OBJS)\console.pdb $(__OPTIMIZEFLAG_3) /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. $(__DLLFLAG_p) $(__MULTILIB_FLAG_p) $(CXXFLAGS) |
6f628073 VS |
47 | |
48 | ### Conditionally set variables: ### | |
49 | ||
50 | !if "$(USE_GUI)" == "0" | |
51 | PORTNAME = base | |
52 | !endif | |
53 | !if "$(USE_GUI)" == "1" | |
54 | PORTNAME = msw | |
55 | !endif | |
56 | !if "$(BUILD)" == "debug" | |
57 | WXDEBUGFLAG = d | |
58 | !endif | |
59 | !if "$(SHARED)" == "1" | |
60 | WXDLLFLAG = dll | |
61 | !endif | |
62 | !if "$(UNICODE)" == "1" | |
63 | WXUNICODEFLAG = u | |
64 | !endif | |
65 | !if "$(WXUNIV)" == "1" | |
66 | WXUNIVNAME = univ | |
67 | !endif | |
68 | !if "$(BUILD)" == "debug" | |
ee5749a6 VS |
69 | __DEBUGFLAG_0 = /Zi |
70 | !endif | |
71 | !if "$(BUILD)" == "release" | |
72 | __DEBUGFLAG_0 = | |
73 | !endif | |
74 | !if "$(BUILD)" == "debug" | |
75 | __DEBUGFLAG_1 = /DEBUG | |
76 | !endif | |
77 | !if "$(BUILD)" == "release" | |
78 | __DEBUGFLAG_1 = | |
79 | !endif | |
80 | !if "$(BUILD)" == "debug" | |
81 | __DEBUGFLAG_2 = d | |
82 | !endif | |
83 | !if "$(BUILD)" == "release" | |
84 | __DEBUGFLAG_2 = | |
85 | !endif | |
86 | !if "$(BUILD)" == "debug" | |
6f628073 VS |
87 | __DEBUG_DEFINE_p = /D__WXDEBUG__ |
88 | !endif | |
89 | !if "$(SHARED)" == "1" | |
90 | __DLLFLAG_p = /DWXUSINGDLL | |
91 | !endif | |
92 | !if "$(MONOLITHIC)" == "0" | |
93 | __MULTILIB_FLAG_p = /DwxUSE_GUI=0 | |
3e642d84 | 94 | !endif |
ee5749a6 VS |
95 | !if "$(BUILD)" == "debug" |
96 | __OPTIMIZEFLAG_3 = /Od | |
97 | !endif | |
98 | !if "$(BUILD)" == "release" | |
99 | __OPTIMIZEFLAG_3 = /O2 | |
100 | !endif | |
6f628073 VS |
101 | !if "$(UNICODE)" == "1" |
102 | __UNICODE_DEFINE_p = /DwxUSE_UNICODE=1 | |
103 | !endif | |
104 | !if "$(MONOLITHIC)" == "0" | |
0706fb23 | 105 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib |
6f628073 VS |
106 | !endif |
107 | !if "$(MONOLITHIC)" == "1" | |
108 | __WXLIB_MONO_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
109 | !endif | |
110 | !if "$(WXUNIV)" == "1" | |
111 | __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__ | |
112 | !endif | |
113 | ||
114 | ||
115 | all: $(OBJS) | |
116 | $(OBJS): | |
117 | -if not exist $(OBJS) mkdir $(OBJS) | |
118 | ||
119 | ### Targets: ### | |
120 | ||
121 | all: $(OBJS)\console.exe data | |
122 | ||
123 | $(OBJS)\console_console.obj: .\console.cpp | |
124 | $(CXX) /c /nologo /TP /Fo$@ $(CONSOLE_CXXFLAGS) $** | |
125 | ||
126 | clean: | |
127 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
128 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
129 | -if exist $(OBJS)\console.exe del $(OBJS)\console.exe | |
6f628073 VS |
130 | |
131 | $(OBJS)\console.exe: $(OBJS)\console_console.obj | |
ee5749a6 | 132 | link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGFLAG_1) /LIBPATH:.\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /SUBSYSTEM:CONSOLE @<< |
0706fb23 | 133 | $(OBJS)\console_console.obj $(__WXLIB_MONO_p) $(__WXLIB_BASE_p) wxtiff$(WXDEBUGFLAG).lib wxjpeg$(WXDEBUGFLAG).lib wxpng$(WXDEBUGFLAG).lib wxzlib$(WXDEBUGFLAG).lib wxregex$(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 |
134 | << |
135 | ||
136 | data: | |
0706fb23 VS |
137 | if not exist $(OBJS) mkdir $(OBJS) |
138 | for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS) | |
3e642d84 | 139 | |
6f628073 | 140 | install: all |
3e642d84 | 141 | |
6f628073 | 142 | uninstall: |