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