]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.gcc
separated wxBase and wxNet
[wxWidgets.git] / samples / sockets / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
bdc408c4 3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
3b20263d
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
250700e4 7include ../../build/config.gcc
3b20263d
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
bdc408c4 15CLIENT_CXXFLAGS = $(CPPFLAGS) $(__DEBUGFLAG) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS)
3b20263d 16OBJS = gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
bdc408c4 17SERVER_CXXFLAGS = $(CPPFLAGS) $(__DEBUGFLAG) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS)
3b20263d
VS
18
19### Conditionally set variables: ###
20
250700e4
RD
21ifeq ($(GCC_VERSION),2.95)
22GCCFLAGS = -fvtable-thunks
23endif
3b20263d
VS
24ifeq ($(USE_GUI),0)
25PORTNAME = base
26endif
27ifeq ($(USE_GUI),1)
28PORTNAME = msw
29endif
30ifeq ($(BUILD),debug)
31WXDEBUGFLAG = d
32endif
33ifeq ($(SHARED),1)
34WXDLLFLAG = dll
35endif
36ifeq ($(UNICODE),1)
37WXUNICODEFLAG = u
38endif
39ifeq ($(WXUNIV),1)
40WXUNIVNAME = univ
41endif
42ifeq ($(BUILD),debug)
250700e4
RD
43__DEBUGFLAG = -g
44endif
45ifeq ($(BUILD),release)
46__DEBUGFLAG =
47endif
48ifeq ($(BUILD),debug)
3b20263d
VS
49__DEBUG_DEFINE_p = -D__WXDEBUG__
50endif
51ifeq ($(BUILD),debug)
250700e4 52__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
3b20263d
VS
53endif
54ifeq ($(SHARED),1)
55__DLLFLAG_p = -DWXUSINGDLL
56endif
57ifeq ($(SHARED),1)
250700e4
RD
58__DLLFLAG_p_0 = --define WXUSINGDLL
59endif
60ifeq ($(BUILD),debug)
61__OPTIMIZEFLAG = -O0
62endif
63ifeq ($(BUILD),release)
64__OPTIMIZEFLAG = -O2
3b20263d
VS
65endif
66ifeq ($(UNICODE),1)
67__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
68endif
69ifeq ($(UNICODE),1)
250700e4 70__UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=1
3b20263d
VS
71endif
72ifeq ($(MONOLITHIC),0)
73__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
74endif
75ifeq ($(MONOLITHIC),0)
76__WXLIB_CORE_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
77endif
78ifeq ($(MONOLITHIC),1)
79__WXLIB_MONO_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
80endif
81ifeq ($(WXUNIV),1)
82__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
83endif
84ifeq ($(WXUNIV),1)
250700e4 85__WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
3b20263d
VS
86endif
87
88
89all: $(OBJS)
90$(OBJS):
91 -if not exist $(OBJS) mkdir $(OBJS)
92
93### Targets: ###
94
250700e4 95all: $(OBJS)\client.exe $(OBJS)\server.exe
3b20263d 96
250700e4
RD
97$(OBJS)\client_client.o: .\client.cpp
98 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $<
3b20263d 99
250700e4 100$(OBJS)\client_client_rc.o: .\client.rc
bdc408c4 101 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) --include-dir ./../../include --include-dir ./../../lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) --include-dir ./../../src/tiff --include-dir ./../../src/jpeg --include-dir ./../../src/png --include-dir ./../../src/zlib --include-dir ./../../src/regex --include-dir ./../../src/expat/lib --include-dir . $(__DLLFLAG_p_0)
250700e4
RD
102
103$(OBJS)\server_server.o: .\server.cpp
104 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $<
105
106$(OBJS)\server_server_rc.o: .\server.rc
bdc408c4 107 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) --include-dir ./../../include --include-dir ./../../lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) --include-dir ./../../src/tiff --include-dir ./../../src/jpeg --include-dir ./../../src/png --include-dir ./../../src/zlib --include-dir ./../../src/regex --include-dir ./../../src/expat/lib --include-dir . $(__DLLFLAG_p_0)
3b20263d
VS
108
109clean:
110 -if exist $(OBJS)\*.o del $(OBJS)\*.o
250700e4
RD
111 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
112 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
3b20263d 113
250700e4 114$(OBJS)\client.exe: $(OBJS)\client_client.o $(OBJS)\client_client_rc.o
bdc408c4 115 $(CXX) -o $@ $(OBJS)\client_client.o $(OBJS)\client_client_rc.o $(LDFLAGS) $(__DEBUGFLAG) -mthreads -L.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxtiff$(WXDEBUGFLAG) -lwxjpeg$(WXDEBUGFLAG) -lwxpng$(WXDEBUGFLAG) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
3b20263d 116
250700e4 117$(OBJS)\server.exe: $(OBJS)\server_server.o $(OBJS)\server_server_rc.o
bdc408c4 118 $(CXX) -o $@ $(OBJS)\server_server.o $(OBJS)\server_server_rc.o $(LDFLAGS) $(__DEBUGFLAG) -mthreads -L.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxtiff$(WXDEBUGFLAG) -lwxjpeg$(WXDEBUGFLAG) -lwxpng$(WXDEBUGFLAG) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
3b20263d 119
250700e4 120.PHONY: all clean