]>
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) | |
2243eed5 JS |
53 | $(CLIENT_TARGET).def |
54 | $(CLIENT_TARGET).res | |
f4ada568 | 55 | ! |
f4ada568 GL |
56 | |
57 | client.obj: client.cpp | |
58 | ||
27529614 JS |
59 | $(CLIENT_TARGET).res : $(CLIENT_TARGET).rc $(WXDIR)\include\wx\msw\wx.rc |
60 | brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(CLIENT_TARGET) | |
f4ada568 | 61 | |
27529614 | 62 | $(SERVER_TARGET).exe: $(SERVER_OBJECTS) $(SERVER_TARGET).res |
f4ada568 GL |
63 | tlink32 $(LINKFLAGS) @&&! |
64 | c0w32.obj $(SERVER_OBJECTS) | |
65 | $(SERVER_TARGET) | |
66 | nul | |
67 | $(LIBS) | |
2243eed5 JS |
68 | $(SERVER_TARGET).def |
69 | $(SERVER_TARGET).res | |
f4ada568 | 70 | ! |
f4ada568 GL |
71 | |
72 | server.obj: server.cpp | |
73 | ||
27529614 JS |
74 | $(SERVER_TARGET).res: $(SERVER_TARGET).rc $(WXDIR)\include\wx\msw\wx.rc |
75 | brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(SERVER_TARGET) | |
f4ada568 GL |
76 | |
77 | clean: | |
78 | -erase *.obj | |
79 | -erase *.exe | |
80 | -erase *.res | |
81 | -erase *.map | |
82 | -erase *.rws |