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