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