]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
8c9f8f91 | 3 | # Bakefile 0.1.8 (http://bakefile.sourceforge.net) |
3b20263d VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../build/msw/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
b17c1746 DE |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
21 | CONSOLE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \ |
22 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
23 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
24 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \ | |
25 | -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG_5) \ | |
26 | $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
25a73439 VS |
27 | CONSOLE_OBJECTS = \ |
28 | $(OBJS)\console_console.o | |
3b20263d VS |
29 | |
30 | ### Conditionally set variables: ### | |
31 | ||
3fe8bc14 VS |
32 | ifeq ($(GCC_VERSION),2.95) |
33 | GCCFLAGS = -fvtable-thunks | |
34 | endif | |
3b20263d VS |
35 | ifeq ($(USE_GUI),0) |
36 | PORTNAME = base | |
37 | endif | |
38 | ifeq ($(USE_GUI),1) | |
39 | PORTNAME = msw | |
40 | endif | |
41 | ifeq ($(BUILD),debug) | |
25a73439 VS |
42 | ifeq ($(DEBUG_FLAG),default) |
43 | WXDEBUGFLAG = d | |
44 | endif | |
45 | endif | |
46 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
47 | WXDEBUGFLAG = d |
48 | endif | |
3b20263d VS |
49 | ifeq ($(UNICODE),1) |
50 | WXUNICODEFLAG = u | |
51 | endif | |
52 | ifeq ($(WXUNIV),1) | |
53 | WXUNIVNAME = univ | |
54 | endif | |
b17c1746 DE |
55 | ifeq ($(SHARED),1) |
56 | WXDLLFLAG = dll | |
25a73439 | 57 | endif |
b14abf14 JS |
58 | ifeq ($(SHARED),0) |
59 | LIBTYPE_SUFFIX = lib | |
60 | endif | |
61 | ifeq ($(SHARED),1) | |
62 | LIBTYPE_SUFFIX = dll | |
63 | endif | |
dd65d8c8 RN |
64 | ifeq ($(MONOLITHIC),0) |
65 | EXTRALIBS_FOR_BASE = | |
66 | endif | |
67 | ifeq ($(MONOLITHIC),1) | |
68 | EXTRALIBS_FOR_BASE = | |
69 | endif | |
b17c1746 DE |
70 | ifeq ($(BUILD),debug) |
71 | __OPTIMIZEFLAG_2 = -O0 | |
3fe8bc14 VS |
72 | endif |
73 | ifeq ($(BUILD),release) | |
b17c1746 | 74 | __OPTIMIZEFLAG_2 = -O2 |
25a73439 | 75 | endif |
8c9f8f91 JS |
76 | ifeq ($(USE_RTTI),0) |
77 | __RTTIFLAG_5 = -fno-rtti | |
25a73439 | 78 | endif |
8c9f8f91 JS |
79 | ifeq ($(USE_RTTI),1) |
80 | __RTTIFLAG_5 = | |
25a73439 | 81 | endif |
b17c1746 | 82 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 83 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
84 | endif |
85 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 86 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
87 | endif |
88 | ifeq ($(WXUNIV),1) | |
89 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
3fe8bc14 VS |
90 | endif |
91 | ifeq ($(BUILD),debug) | |
25a73439 VS |
92 | ifeq ($(DEBUG_FLAG),default) |
93 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
94 | endif | |
95 | endif | |
96 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
97 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
98 | endif | |
8c9f8f91 JS |
99 | ifeq ($(USE_EXCEPTIONS),0) |
100 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
101 | endif | |
102 | ifeq ($(USE_RTTI),0) | |
103 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
104 | endif | |
105 | ifeq ($(USE_THREADS),0) | |
106 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
107 | endif | |
b17c1746 DE |
108 | ifeq ($(UNICODE),1) |
109 | __UNICODE_DEFINE_p = -D_UNICODE | |
110 | endif | |
3b20263d VS |
111 | ifeq ($(SHARED),1) |
112 | __DLLFLAG_p = -DWXUSINGDLL | |
113 | endif | |
b17c1746 | 114 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
115 | __WXLIB_NET_p = \ |
116 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net | |
b71531ad | 117 | endif |
b17c1746 | 118 | ifeq ($(MONOLITHIC),0) |
b92ca05a | 119 | ifeq ($(USE_ODBC),1) |
c33fae85 RN |
120 | __WXLIB_ODBC_p = \ |
121 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc | |
b71531ad | 122 | endif |
b92ca05a | 123 | endif |
b17c1746 | 124 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
125 | __WXLIB_BASE_p = \ |
126 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 127 | endif |
b17c1746 DE |
128 | ifeq ($(MONOLITHIC),1) |
129 | __WXLIB_MONO_p = \ | |
c33fae85 | 130 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 131 | endif |
25a73439 | 132 | ifeq ($(USE_GUI),1) |
9c2d002b | 133 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
25a73439 VS |
134 | endif |
135 | ifeq ($(USE_GUI),1) | |
9c2d002b | 136 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
25a73439 VS |
137 | endif |
138 | ifeq ($(USE_GUI),1) | |
9c2d002b | 139 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
25a73439 | 140 | endif |
b17c1746 DE |
141 | ifeq ($(MSLU),1) |
142 | __UNICOWS_LIB_p = -lunicows | |
3fe8bc14 | 143 | endif |
b17c1746 DE |
144 | ifeq ($(BUILD),debug) |
145 | ifeq ($(DEBUG_INFO),default) | |
146 | __DEBUGINFO = -g | |
4e209a20 | 147 | endif |
3b20263d | 148 | endif |
b17c1746 DE |
149 | ifeq ($(BUILD),release) |
150 | ifeq ($(DEBUG_INFO),default) | |
151 | __DEBUGINFO = | |
3b20263d | 152 | endif |
651bb0c9 | 153 | endif |
b17c1746 DE |
154 | ifeq ($(DEBUG_INFO),0) |
155 | __DEBUGINFO = | |
548d77c7 | 156 | endif |
b17c1746 DE |
157 | ifeq ($(DEBUG_INFO),1) |
158 | __DEBUGINFO = -g | |
3b20263d | 159 | endif |
8c9f8f91 JS |
160 | ifeq ($(USE_THREADS),0) |
161 | __THREADSFLAG = | |
162 | endif | |
163 | ifeq ($(USE_THREADS),1) | |
164 | __THREADSFLAG = -mthreads | |
165 | endif | |
3b20263d VS |
166 | |
167 | ||
168 | all: $(OBJS) | |
169 | $(OBJS): | |
170 | -if not exist $(OBJS) mkdir $(OBJS) | |
171 | ||
172 | ### Targets: ### | |
173 | ||
174 | all: $(OBJS)\console.exe data | |
175 | ||
3b20263d VS |
176 | clean: |
177 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
178 | -if exist $(OBJS)\console.exe del $(OBJS)\console.exe | |
3b20263d | 179 | |
25a73439 | 180 | $(OBJS)\console.exe: $(CONSOLE_OBJECTS) |
8c9f8f91 | 181 | $(CXX) -o $@ $(CONSOLE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__WXLIB_NET_p) $(__WXLIB_ODBC_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
3b20263d VS |
182 | |
183 | data: | |
184 | if not exist $(OBJS) mkdir $(OBJS) | |
185 | for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
186 | ||
b17c1746 DE |
187 | $(OBJS)\console_console.o: ./console.cpp |
188 | $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $< | |
189 | ||
fd9f42b6 | 190 | .PHONY: all clean data |
b14abf14 | 191 | |
8c9f8f91 | 192 |