]>
Commit | Line | Data |
---|---|---|
f4ada568 GL |
1 | # |
2 | # File: makefile.b32 | |
27529614 JS |
3 | # Author: Guilhem Lavaux |
4 | # Created: 1998 | |
f4ada568 | 5 | # Updated: |
27529614 | 6 | # Copyright: (c) Guilhem Lavaux |
f4ada568 GL |
7 | # |
8 | # "%W% %G%" | |
9 | # | |
27529614 | 10 | # Makefile : Builds 32-bit wxSocket sample under BC++ |
f4ada568 GL |
11 | |
12 | WXDIR = $(WXWIN) | |
13 | ||
27529614 JS |
14 | ZLIB = $(WXDIR)\lib\zlib.lib |
15 | ||
f4ada568 GL |
16 | !include $(WXDIR)\src\makeb32.env |
17 | ||
18 | WXLIBDIR = $(WXDIR)\lib | |
f4ada568 | 19 | WXINC = $(WXDIR)\include\msw |
27529614 JS |
20 | WXLIB = $(WXLIBDIR)\wx32.lib |
21 | LIBS=$(WXLIB) $(ZLIB) cw32 import32 ole2w32 | |
f4ada568 GL |
22 | |
23 | !if "$(FINAL)" == "0" | |
24 | LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib | |
25 | OPT = -Od | |
27529614 | 26 | DEBUG_FLAGS= -v |
f4ada568 GL |
27 | !else |
28 | LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib | |
27529614 JS |
29 | OPT = -Od |
30 | DEBUG_FLAGS = | |
f4ada568 | 31 | !endif |
f4ada568 GL |
32 | CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) |
33 | ||
27529614 JS |
34 | .$(SRCSUFF).obj: |
35 | bcc32 $(CPPFLAGS) -c {$< } | |
36 | ||
37 | .c.obj: | |
38 | bcc32 $(CPPFLAGS) -P- -c {$< } | |
39 | ||
f4ada568 GL |
40 | CLIENT_TARGET=client |
41 | SERVER_TARGET=server | |
42 | CLIENT_OBJECTS=client.obj | |
43 | SERVER_OBJECTS=server.obj | |
44 | ||
f4ada568 GL |
45 | all: $(CLIENT_TARGET).exe $(SERVER_TARGET).exe |
46 | ||
27529614 | 47 | $(CLIENT_TARGET).exe: $(CLIENT_OBJECTS) $(CLIENT_TARGET).res |
f4ada568 GL |
48 | tlink32 $(LINKFLAGS) @&&! |
49 | c0w32.obj $(CLIENT_OBJECTS) | |
50 | $(CLIENT_TARGET) | |
51 | nul | |
52 | $(LIBS) | |
f4ada568 GL |
53 | ! |
54 | brc32 -K $(CLIENT_TARGET).res | |
55 | ||
56 | client.obj: client.cpp | |
57 | ||
27529614 JS |
58 | $(CLIENT_TARGET).res : $(CLIENT_TARGET).rc $(WXDIR)\include\wx\msw\wx.rc |
59 | brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(CLIENT_TARGET) | |
f4ada568 | 60 | |
27529614 | 61 | $(SERVER_TARGET).exe: $(SERVER_OBJECTS) $(SERVER_TARGET).res |
f4ada568 GL |
62 | tlink32 $(LINKFLAGS) @&&! |
63 | c0w32.obj $(SERVER_OBJECTS) | |
64 | $(SERVER_TARGET) | |
65 | nul | |
66 | $(LIBS) | |
f4ada568 GL |
67 | ! |
68 | brc32 -K $(SERVER_TARGET).res | |
69 | ||
70 | server.obj: server.cpp | |
71 | ||
27529614 JS |
72 | $(SERVER_TARGET).res: $(SERVER_TARGET).rc $(WXDIR)\include\wx\msw\wx.rc |
73 | brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(SERVER_TARGET) | |
f4ada568 GL |
74 | |
75 | clean: | |
76 | -erase *.obj | |
77 | -erase *.exe | |
78 | -erase *.res | |
79 | -erase *.map | |
80 | -erase *.rws |