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