]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c4839ccf | 3 | # Bakefile 0.1.4 (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) | |
18 | SETUPHDIR = \ | |
19 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
c2149c93 | 20 | CONSOLE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \ |
25a73439 | 21 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
ec08d395 | 22 | $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \ |
c2149c93 VS |
23 | $(__DLLFLAG_p) $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) \ |
24 | $(CXXFLAGS) | |
25a73439 VS |
25 | CONSOLE_OBJECTS = \ |
26 | $(OBJS)\console_console.o | |
3b20263d VS |
27 | |
28 | ### Conditionally set variables: ### | |
29 | ||
3fe8bc14 VS |
30 | ifeq ($(GCC_VERSION),2.95) |
31 | GCCFLAGS = -fvtable-thunks | |
32 | endif | |
3b20263d VS |
33 | ifeq ($(USE_GUI),0) |
34 | PORTNAME = base | |
35 | endif | |
36 | ifeq ($(USE_GUI),1) | |
37 | PORTNAME = msw | |
38 | endif | |
39 | ifeq ($(BUILD),debug) | |
25a73439 VS |
40 | ifeq ($(DEBUG_FLAG),default) |
41 | WXDEBUGFLAG = d | |
42 | endif | |
43 | endif | |
44 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
45 | WXDEBUGFLAG = d |
46 | endif | |
3b20263d VS |
47 | ifeq ($(UNICODE),1) |
48 | WXUNICODEFLAG = u | |
49 | endif | |
50 | ifeq ($(WXUNIV),1) | |
51 | WXUNIVNAME = univ | |
52 | endif | |
b17c1746 DE |
53 | ifeq ($(SHARED),1) |
54 | WXDLLFLAG = dll | |
25a73439 | 55 | endif |
dd65d8c8 RN |
56 | ifeq ($(MONOLITHIC),0) |
57 | EXTRALIBS_FOR_BASE = | |
58 | endif | |
59 | ifeq ($(MONOLITHIC),1) | |
60 | EXTRALIBS_FOR_BASE = | |
61 | endif | |
b17c1746 DE |
62 | ifeq ($(BUILD),debug) |
63 | __OPTIMIZEFLAG_2 = -O0 | |
3fe8bc14 VS |
64 | endif |
65 | ifeq ($(BUILD),release) | |
b17c1746 | 66 | __OPTIMIZEFLAG_2 = -O2 |
25a73439 | 67 | endif |
b17c1746 DE |
68 | ifeq ($(USE_EXCEPTIONS),0) |
69 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
25a73439 | 70 | endif |
b17c1746 DE |
71 | ifeq ($(USE_EXCEPTIONS),1) |
72 | __EXCEPTIONSFLAG_4 = | |
25a73439 | 73 | endif |
b17c1746 DE |
74 | ifeq ($(USE_EXCEPTIONS),0) |
75 | __EXCEPTIONSFLAG_5 = -fno-exceptions | |
76 | endif | |
77 | ifeq ($(USE_EXCEPTIONS),1) | |
78 | __EXCEPTIONSFLAG_5 = | |
79 | endif | |
80 | ifeq ($(WXUNIV),1) | |
81 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
3fe8bc14 VS |
82 | endif |
83 | ifeq ($(BUILD),debug) | |
25a73439 VS |
84 | ifeq ($(DEBUG_FLAG),default) |
85 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
86 | endif | |
87 | endif | |
88 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
89 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
90 | endif | |
b17c1746 DE |
91 | ifeq ($(UNICODE),1) |
92 | __UNICODE_DEFINE_p = -D_UNICODE | |
93 | endif | |
3b20263d VS |
94 | ifeq ($(SHARED),1) |
95 | __DLLFLAG_p = -DWXUSINGDLL | |
96 | endif | |
b17c1746 | 97 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
98 | __WXLIB_NET_p = \ |
99 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net | |
b71531ad | 100 | endif |
b17c1746 | 101 | ifeq ($(MONOLITHIC),0) |
b92ca05a | 102 | ifeq ($(USE_ODBC),1) |
c33fae85 RN |
103 | __WXLIB_ODBC_p = \ |
104 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc | |
b71531ad | 105 | endif |
b92ca05a | 106 | endif |
b17c1746 | 107 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
108 | __WXLIB_BASE_p = \ |
109 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 110 | endif |
b17c1746 DE |
111 | ifeq ($(MONOLITHIC),1) |
112 | __WXLIB_MONO_p = \ | |
c33fae85 | 113 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 114 | endif |
25a73439 | 115 | ifeq ($(USE_GUI),1) |
9c2d002b | 116 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
25a73439 VS |
117 | endif |
118 | ifeq ($(USE_GUI),1) | |
9c2d002b | 119 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
25a73439 VS |
120 | endif |
121 | ifeq ($(USE_GUI),1) | |
9c2d002b | 122 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
25a73439 | 123 | endif |
b17c1746 DE |
124 | ifeq ($(MSLU),1) |
125 | __UNICOWS_LIB_p = -lunicows | |
3fe8bc14 | 126 | endif |
b17c1746 DE |
127 | ifeq ($(SHARED),0) |
128 | LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG) | |
3fe8bc14 | 129 | endif |
b17c1746 DE |
130 | ifeq ($(SHARED),1) |
131 | LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG) | |
3b20263d | 132 | endif |
b17c1746 DE |
133 | ifeq ($(BUILD),debug) |
134 | ifeq ($(DEBUG_INFO),default) | |
135 | __DEBUGINFO = -g | |
4e209a20 | 136 | endif |
3b20263d | 137 | endif |
b17c1746 DE |
138 | ifeq ($(BUILD),release) |
139 | ifeq ($(DEBUG_INFO),default) | |
140 | __DEBUGINFO = | |
3b20263d | 141 | endif |
651bb0c9 | 142 | endif |
b17c1746 DE |
143 | ifeq ($(DEBUG_INFO),0) |
144 | __DEBUGINFO = | |
548d77c7 | 145 | endif |
b17c1746 DE |
146 | ifeq ($(DEBUG_INFO),1) |
147 | __DEBUGINFO = -g | |
3b20263d VS |
148 | endif |
149 | ||
150 | ||
151 | all: $(OBJS) | |
152 | $(OBJS): | |
153 | -if not exist $(OBJS) mkdir $(OBJS) | |
154 | ||
155 | ### Targets: ### | |
156 | ||
157 | all: $(OBJS)\console.exe data | |
158 | ||
3b20263d VS |
159 | clean: |
160 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
161 | -if exist $(OBJS)\console.exe del $(OBJS)\console.exe | |
3b20263d | 162 | |
25a73439 | 163 | $(OBJS)\console.exe: $(CONSOLE_OBJECTS) |
dd65d8c8 | 164 | $(CXX) -o $@ $(CONSOLE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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 |
165 | |
166 | data: | |
167 | if not exist $(OBJS) mkdir $(OBJS) | |
168 | for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
169 | ||
b17c1746 DE |
170 | $(OBJS)\console_console.o: ./console.cpp |
171 | $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $< | |
172 | ||
fd9f42b6 | 173 | .PHONY: all clean data |