]>
Commit | Line | Data |
---|---|---|
f4ada568 GL |
1 | # |
2 | # File: makefile.b32 | |
3 | # Author: Patrick Halke, modified by Guilhem Lavaux | |
4 | # Created: 1997 | |
5 | # Updated: | |
6 | # Copyright: (c) 1993, AIAI, University of Edinburgh | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile : Builds 32bit wxstring library for Windows 3.1 | |
11 | # and Borland C++ 4.x | |
12 | ||
13 | WXDIR = $(WXWIN) | |
14 | ||
15 | !include $(WXDIR)\src\makeb32.env | |
16 | ||
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 | |
24 | ||
25 | !ifndef DEBUG | |
26 | DEBUG=0 | |
27 | !endif | |
28 | ||
29 | !if "$(FINAL)" == "0" | |
30 | LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib | |
31 | OPT = -Od | |
32 | DEBUG_FLAGS= -v -DDEBUG=$(DEBUG) | |
33 | !else | |
34 | LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib | |
35 | OPT = -O2 | |
36 | DEBUG_FLAGS = -DDEBUG=$(DEBUG) | |
37 | !endif | |
38 | ||
39 | CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) | |
40 | ||
41 | CLIENT_TARGET=client | |
42 | SERVER_TARGET=server | |
43 | CLIENT_OBJECTS=client.obj | |
44 | SERVER_OBJECTS=server.obj | |
45 | ||
46 | .c.obj: | |
47 | bcc32 $(CPPFLAGS) -P- -c {$< } | |
48 | ||
49 | all: $(CLIENT_TARGET).exe $(SERVER_TARGET).exe | |
50 | ||
51 | $(CLIENT_TARGET).exe: $(CLIENT_OBJECTS) $(CLIENT_TARGET).def $(CLIENT_TARGET).res | |
52 | tlink32 $(LINKFLAGS) @&&! | |
53 | c0w32.obj $(CLIENT_OBJECTS) | |
54 | $(CLIENT_TARGET) | |
55 | nul | |
56 | $(LIBS) | |
57 | $(CLIENT_TARGET).def | |
58 | ! | |
59 | brc32 -K $(CLIENT_TARGET).res | |
60 | ||
61 | client.obj: client.cpp | |
62 | ||
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) | |
65 | ||
66 | $(SERVER_TARGET).exe: $(SERVER_OBJECTS) $(SERVER_TARGET).def $(SERVER_TARGET).res | |
67 | tlink32 $(LINKFLAGS) @&&! | |
68 | c0w32.obj $(SERVER_OBJECTS) | |
69 | $(SERVER_TARGET) | |
70 | nul | |
71 | $(LIBS) | |
72 | $(SERVER_TARGET).def | |
73 | ! | |
74 | brc32 -K $(SERVER_TARGET).res | |
75 | ||
76 | server.obj: server.cpp | |
77 | ||
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) | |
80 | ||
81 | clean: | |
82 | -erase *.obj | |
83 | -erase *.exe | |
84 | -erase *.res | |
85 | -erase *.map | |
86 | -erase *.rws |