]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/net/makefile.gcc
Applied patch [ 795491 ] Multimon sample compatibility with various conditions
[wxWidgets.git] / contrib / build / net / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (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 NETUTILSDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
17 $(__UNICODE_DEFINE_p) -I..\..\src\net\..\..\..\include -I$(SETUPHDIR) \
18 -I..\..\src\net\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_NETUTILS \
19 $(CXXFLAGS)
20 NETUTILSDLL_OBJECTS = \
21 $(OBJS)\netutilsdll_dummy.o \
22 $(OBJS)\netutilsdll_email.o \
23 $(OBJS)\netutilsdll_smapi.o \
24 $(OBJS)\netutilsdll_web.o
25 NETUTILSLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
26 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
27 $(__UNICODE_DEFINE_p) -I..\..\src\net\..\..\..\include -I$(SETUPHDIR) \
28 -I..\..\src\net\..\..\include $(CXXFLAGS)
29 NETUTILSLIB_OBJECTS = \
30 $(OBJS)\netutilslib_dummy.o \
31 $(OBJS)\netutilslib_email.o \
32 $(OBJS)\netutilslib_smapi.o \
33 $(OBJS)\netutilslib_web.o
34 OBJS = \
35 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
36 SETUPHDIR = \
37 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
38
39 ### Conditionally set variables: ###
40
41 ifeq ($(GCC_VERSION),2.95)
42 GCCFLAGS = -fvtable-thunks
43 endif
44 ifeq ($(SHARED),0)
45 LIBDIRNAME = ..\..\src\net\..\..\..\lib\gcc_lib$(CFG)
46 endif
47 ifeq ($(SHARED),1)
48 LIBDIRNAME = ..\..\src\net\..\..\..\lib\gcc_dll$(CFG)
49 endif
50 ifeq ($(USE_GUI),0)
51 PORTNAME = base
52 endif
53 ifeq ($(USE_GUI),1)
54 PORTNAME = msw
55 endif
56 ifeq ($(OFFICIAL_BUILD),0)
57 VENDORTAG = _$(VENDOR)
58 endif
59 ifeq ($(OFFICIAL_BUILD),1)
60 VENDORTAG =
61 endif
62 ifeq ($(BUILD),debug)
63 ifeq ($(DEBUG_FLAG),default)
64 WXDEBUGFLAG = d
65 endif
66 endif
67 ifeq ($(DEBUG_FLAG),1)
68 WXDEBUGFLAG = d
69 endif
70 ifeq ($(SHARED),1)
71 WXDLLFLAG = dll
72 endif
73 ifeq ($(UNICODE),1)
74 WXUNICODEFLAG = u
75 endif
76 ifeq ($(WXUNIV),1)
77 WXUNIVNAME = univ
78 endif
79 ifeq ($(BUILD),debug)
80 ifeq ($(DEBUG_INFO),default)
81 __DEBUGINFO = -g
82 endif
83 endif
84 ifeq ($(BUILD),release)
85 ifeq ($(DEBUG_INFO),default)
86 __DEBUGINFO =
87 endif
88 endif
89 ifeq ($(DEBUG_INFO),0)
90 __DEBUGINFO =
91 endif
92 ifeq ($(DEBUG_INFO),1)
93 __DEBUGINFO = -g
94 endif
95 ifeq ($(BUILD),debug)
96 ifeq ($(DEBUG_FLAG),default)
97 __DEBUG_DEFINE_p = -D__WXDEBUG__
98 endif
99 endif
100 ifeq ($(DEBUG_FLAG),1)
101 __DEBUG_DEFINE_p = -D__WXDEBUG__
102 endif
103 ifeq ($(USE_GUI),1)
104 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
105 endif
106 ifeq ($(USE_GUI),1)
107 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
108 endif
109 ifeq ($(USE_GUI),1)
110 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
111 endif
112 ifeq ($(BUILD),debug)
113 __OPTIMIZEFLAG = -O0
114 endif
115 ifeq ($(BUILD),release)
116 __OPTIMIZEFLAG = -O2
117 endif
118 ifeq ($(UNICODE),1)
119 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
120 endif
121 ifeq ($(MSLU),1)
122 __UNICOWS_LIB_p = -lunicows
123 endif
124 ifeq ($(MONOLITHIC),0)
125 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
126 endif
127 ifeq ($(MONOLITHIC),0)
128 __WXLIB_CORE_p = \
129 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
130 endif
131 ifeq ($(MONOLITHIC),1)
132 __WXLIB_MONO_p = \
133 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
134 endif
135 ifeq ($(WXUNIV),1)
136 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
137 endif
138 ifeq ($(SHARED),1)
139 __netutilsdll___depname = \
140 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils_gcc$(VENDORTAG).dll
141 endif
142 ifeq ($(SHARED),0)
143 __netutilslib___depname = \
144 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.a
145 endif
146
147
148 all: $(OBJS)
149 $(OBJS):
150 -if not exist $(OBJS) mkdir $(OBJS)
151
152 ### Targets: ###
153
154 all: $(__netutilsdll___depname) $(__netutilslib___depname)
155
156 $(OBJS)\netutilsdll_dummy.o: ../../src/net/../../../src/msw/dummy.cpp
157 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $<
158
159 $(OBJS)\netutilsdll_email.o: ../../src/net/email.cpp
160 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $<
161
162 $(OBJS)\netutilsdll_smapi.o: ../../src/net/smapi.cpp
163 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $<
164
165 $(OBJS)\netutilsdll_web.o: ../../src/net/web.cpp
166 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $<
167
168 $(OBJS)\netutilslib_dummy.o: ../../src/net/../../../src/msw/dummy.cpp
169 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $<
170
171 $(OBJS)\netutilslib_email.o: ../../src/net/email.cpp
172 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $<
173
174 $(OBJS)\netutilslib_smapi.o: ../../src/net/smapi.cpp
175 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $<
176
177 $(OBJS)\netutilslib_web.o: ../../src/net/web.cpp
178 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $<
179
180 clean:
181 -if exist $(OBJS)\*.o del $(OBJS)\*.o
182 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils_gcc$(VENDORTAG).dll
183 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.a
184 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.a
185
186 ifeq ($(SHARED),1)
187 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils_gcc$(VENDORTAG).dll: $(NETUTILSDLL_OBJECTS)
188 $(CXX) -shared -o $@ $(NETUTILSDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.a $(__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 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
189 endif
190
191 ifeq ($(SHARED),0)
192 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_netutils.a: $(NETUTILSLIB_OBJECTS)
193 if exist $@ del $@
194 ar rcu $@ $(NETUTILSLIB_OBJECTS)
195 ranlib $@
196 endif
197
198 .PHONY: all clean