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