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