3 # Author: Patrick Halke, modified by Guilhem Lavaux
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds 32bit wxstring library for Windows 3.1
15 !include $(WXDIR)\src\makeb32.env
17 WXLIBDIR = $(WXDIR)\lib
18 WXLIB = $(WXDIR)\lib\wx32.lib
19 SOCKETLIB = $(WXDIR)\lib\wxsocket.lib $(WXDIR)\lib\zlib.lib
20 WXINC = $(WXDIR)\include\msw
21 WXBASESRC = $(WXDIR)\src\base
22 WXBASEINC = $(WXDIR)\include\base
23 LIBS=$(WXLIB) $(SOCKETLIB) cw32 import32
30 LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
32 DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
34 LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
36 DEBUG_FLAGS = -DDEBUG=$(DEBUG)
39 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
43 CLIENT_OBJECTS=client.obj
44 SERVER_OBJECTS=server.obj
47 bcc32 $(CPPFLAGS) -P- -c {$< }
49 all: $(CLIENT_TARGET).exe $(SERVER_TARGET).exe
51 $(CLIENT_TARGET).exe: $(CLIENT_OBJECTS) $(CLIENT_TARGET).def $(CLIENT_TARGET).res
52 tlink32 $(LINKFLAGS) @&&!
53 c0w32.obj $(CLIENT_OBJECTS)
59 brc32 -K $(CLIENT_TARGET).res
61 client.obj: client.cpp
63 $(CLIENT_TARGET).res : $(CLIENT_TARGET).rc $(WXDIR)\include\msw\wx.rc
64 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa $(CLIENT_TARGET)
66 $(SERVER_TARGET).exe: $(SERVER_OBJECTS) $(SERVER_TARGET).def $(SERVER_TARGET).res
67 tlink32 $(LINKFLAGS) @&&!
68 c0w32.obj $(SERVER_OBJECTS)
74 brc32 -K $(SERVER_TARGET).res
76 server.obj: server.cpp
78 $(SERVER_TARGET).res: $(SERVER_TARGET).rc $(WXDIR)\include\msw\wx.rc
79 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa $(SERVER_TARGET)