3 # Author: Guilhem Lavaux
6 # Copyright: (c) Guilhem Lavaux
10 # Makefile : Builds 32-bit wxSocket sample under BC++
14 ZLIB = $(WXDIR)\lib\zlib.lib
16 !include $(WXDIR)\src\makeb32.env
18 WXLIBDIR = $(WXDIR)\lib
19 WXINC = $(WXDIR)\include\msw
20 WXLIB = $(WXLIBDIR)\wx32.lib
21 LIBS=$(WXLIB) $(ZLIB) cw32 import32 ole2w32
24 LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
28 LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
32 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
35 bcc32 $(CPPFLAGS) -c {$< }
38 bcc32 $(CPPFLAGS) -P- -c {$< }
42 CLIENT_OBJECTS=client.obj
43 SERVER_OBJECTS=server.obj
45 all: $(CLIENT_TARGET).exe $(SERVER_TARGET).exe
47 $(CLIENT_TARGET).exe: $(CLIENT_OBJECTS) $(CLIENT_TARGET).res
48 tlink32 $(LINKFLAGS) @&&!
49 c0w32.obj $(CLIENT_OBJECTS)
57 client.obj: client.cpp
59 $(CLIENT_TARGET).res : $(CLIENT_TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
60 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(CLIENT_TARGET)
62 $(SERVER_TARGET).exe: $(SERVER_OBJECTS) $(SERVER_TARGET).res
63 tlink32 $(LINKFLAGS) @&&!
64 c0w32.obj $(SERVER_OBJECTS)
72 server.obj: server.cpp
74 $(SERVER_TARGET).res: $(SERVER_TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
75 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(SERVER_TARGET)