]>
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) | |
9bfe7ad9 | 21 | NETTEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \ |
25a73439 | 22 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
b14abf14 | 23 | $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \ |
c33fae85 | 24 | $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \ |
b14abf14 | 25 | $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) |
25a73439 VS |
26 | NETTEST_OBJECTS = \ |
27 | $(OBJS)\nettest_nettest.o \ | |
28 | $(OBJS)\nettest_nettest_rc.o | |
3b20263d VS |
29 | |
30 | ### Conditionally set variables: ### | |
31 | ||
250700e4 RD |
32 | ifeq ($(GCC_VERSION),2.95) |
33 | GCCFLAGS = -fvtable-thunks | |
34 | endif | |
3b20263d VS |
35 | ifeq ($(USE_GUI),0) |
36 | PORTNAME = base | |
37 | endif | |
38 | ifeq ($(USE_GUI),1) | |
39 | PORTNAME = msw | |
40 | endif | |
41 | ifeq ($(BUILD),debug) | |
25a73439 VS |
42 | ifeq ($(DEBUG_FLAG),default) |
43 | WXDEBUGFLAG = d | |
44 | endif | |
45 | endif | |
46 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
47 | WXDEBUGFLAG = d |
48 | endif | |
3b20263d VS |
49 | ifeq ($(UNICODE),1) |
50 | WXUNICODEFLAG = u | |
51 | endif | |
52 | ifeq ($(WXUNIV),1) | |
53 | WXUNIVNAME = univ | |
54 | endif | |
b17c1746 DE |
55 | ifeq ($(SHARED),1) |
56 | WXDLLFLAG = dll | |
25a73439 | 57 | endif |
b14abf14 JS |
58 | ifeq ($(SHARED),0) |
59 | LIBTYPE_SUFFIX = lib | |
60 | endif | |
61 | ifeq ($(SHARED),1) | |
62 | LIBTYPE_SUFFIX = dll | |
63 | endif | |
dd65d8c8 RN |
64 | ifeq ($(MONOLITHIC),0) |
65 | EXTRALIBS_FOR_BASE = | |
66 | endif | |
67 | ifeq ($(MONOLITHIC),1) | |
68 | EXTRALIBS_FOR_BASE = | |
69 | endif | |
b17c1746 DE |
70 | ifeq ($(BUILD),debug) |
71 | __OPTIMIZEFLAG_2 = -O0 | |
250700e4 RD |
72 | endif |
73 | ifeq ($(BUILD),release) | |
b17c1746 | 74 | __OPTIMIZEFLAG_2 = -O2 |
25a73439 | 75 | endif |
b17c1746 DE |
76 | ifeq ($(USE_EXCEPTIONS),0) |
77 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
25a73439 | 78 | endif |
b17c1746 DE |
79 | ifeq ($(USE_EXCEPTIONS),1) |
80 | __EXCEPTIONSFLAG_4 = | |
25a73439 | 81 | endif |
b17c1746 DE |
82 | ifeq ($(USE_EXCEPTIONS),0) |
83 | __EXCEPTIONSFLAG_5 = -fno-exceptions | |
84 | endif | |
85 | ifeq ($(USE_EXCEPTIONS),1) | |
86 | __EXCEPTIONSFLAG_5 = | |
87 | endif | |
88 | ifeq ($(WXUNIV),1) | |
89 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
90 | endif | |
91 | ifeq ($(WXUNIV),1) | |
92 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
250700e4 RD |
93 | endif |
94 | ifeq ($(BUILD),debug) | |
25a73439 VS |
95 | ifeq ($(DEBUG_FLAG),default) |
96 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
97 | endif | |
98 | endif | |
99 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
100 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
101 | endif | |
102 | ifeq ($(BUILD),debug) | |
25a73439 VS |
103 | ifeq ($(DEBUG_FLAG),default) |
104 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
105 | endif | |
106 | endif | |
107 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
108 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ |
109 | endif | |
b17c1746 DE |
110 | ifeq ($(UNICODE),1) |
111 | __UNICODE_DEFINE_p = -D_UNICODE | |
112 | endif | |
113 | ifeq ($(UNICODE),1) | |
114 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
115 | endif | |
3b20263d VS |
116 | ifeq ($(SHARED),1) |
117 | __DLLFLAG_p = -DWXUSINGDLL | |
118 | endif | |
119 | ifeq ($(SHARED),1) | |
120 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
121 | endif | |
b17c1746 DE |
122 | ifeq ($(MONOLITHIC),0) |
123 | __WXLIB_CORE_p = \ | |
c33fae85 | 124 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b71531ad | 125 | endif |
b17c1746 | 126 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
127 | __WXLIB_BASE_p = \ |
128 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 129 | endif |
b17c1746 DE |
130 | ifeq ($(MONOLITHIC),1) |
131 | __WXLIB_MONO_p = \ | |
c33fae85 | 132 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 133 | endif |
b17c1746 | 134 | ifeq ($(USE_GUI),1) |
9c2d002b | 135 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b71531ad | 136 | endif |
25a73439 | 137 | ifeq ($(USE_GUI),1) |
9c2d002b | 138 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
25a73439 VS |
139 | endif |
140 | ifeq ($(USE_GUI),1) | |
9c2d002b | 141 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
25a73439 | 142 | endif |
b17c1746 DE |
143 | ifeq ($(MSLU),1) |
144 | __UNICOWS_LIB_p = -lunicows | |
250700e4 | 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 |
3b20263d | 155 | endif |
b17c1746 DE |
156 | ifeq ($(DEBUG_INFO),0) |
157 | __DEBUGINFO = | |
3b20263d | 158 | endif |
b17c1746 DE |
159 | ifeq ($(DEBUG_INFO),1) |
160 | __DEBUGINFO = -g | |
3b20263d VS |
161 | endif |
162 | ||
163 | ||
164 | all: $(OBJS) | |
165 | $(OBJS): | |
166 | -if not exist $(OBJS) mkdir $(OBJS) | |
167 | ||
168 | ### Targets: ### | |
169 | ||
170 | all: $(OBJS)\nettest.exe | |
171 | ||
3b20263d VS |
172 | clean: |
173 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
174 | -if exist $(OBJS)\nettest.exe del $(OBJS)\nettest.exe | |
175 | ||
25a73439 | 176 | $(OBJS)\nettest.exe: $(NETTEST_OBJECTS) $(OBJS)\nettest_nettest_rc.o |
dd65d8c8 | 177 | $(CXX) -o $@ $(NETTEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_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 | 178 | |
b17c1746 DE |
179 | $(OBJS)\nettest_nettest.o: ./nettest.cpp |
180 | $(CXX) -c -o $@ $(NETTEST_CXXFLAGS) $< | |
181 | ||
182 | $(OBJS)\nettest_nettest_rc.o: ./nettest.rc | |
b14abf14 | 183 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH |
b17c1746 | 184 | |
250700e4 | 185 | .PHONY: all clean |
b14abf14 | 186 |