3 # Author: Guilhem Lavaux
6 # Copyright: (c) Guilhem Lavaux
10 # Makefile : Builds 32-bit wxSocket sample under BC++
14 ZLIB = $(WXDIR)\lib\zlib.lib
15 XPMLIB = $(WXDIR)\lib\xpm.lib
17 !include $(WXDIR)\src\makeb32.env
19 WXLIBDIR = $(WXDIR)\lib
20 WXINC = $(WXDIR)\include\msw
21 WXLIB = $(WXLIBDIR)\wx32.lib
22 LIBS=$(WXLIB) $(ZLIB) $(XPMLIB) cw32 import32 ole2w32
25 LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
29 LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
33 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
36 bcc32 $(CPPFLAGS) -c {$< }
39 bcc32 $(CPPFLAGS) -P- -c {$< }
43 CLIENT_OBJECTS=client.obj
44 SERVER_OBJECTS=server.obj
46 all: $(CLIENT_TARGET).exe $(SERVER_TARGET).exe
48 $(CLIENT_TARGET).exe: $(CLIENT_OBJECTS) $(CLIENT_TARGET).res
49 tlink32 $(LINKFLAGS) @&&!
50 c0w32.obj $(CLIENT_OBJECTS)
58 client.obj: client.cpp
60 $(CLIENT_TARGET).res : $(CLIENT_TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
61 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(CLIENT_TARGET)
63 $(SERVER_TARGET).exe: $(SERVER_OBJECTS) $(SERVER_TARGET).res
64 tlink32 $(LINKFLAGS) @&&!
65 c0w32.obj $(SERVER_OBJECTS)
73 server.obj: server.cpp
75 $(SERVER_TARGET).res: $(SERVER_TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
76 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(SERVER_TARGET)