]> git.saurik.com Git - wxWidgets.git/blob - samples/sockets/makefile.b32
...
[wxWidgets.git] / samples / sockets / 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 XPMLIB = $(WXDIR)\lib\xpm.lib
16
17 !include $(WXDIR)\src\makeb32.env
18
19 WXLIBDIR = $(WXDIR)\lib
20 WXINC = $(WXDIR)\include\msw
21 WXLIB = $(WXLIBDIR)\wx32.lib
22 LIBS=$(WXLIB) $(ZLIB) $(XPMLIB) cw32 import32 ole2w32
23
24 !if "$(FINAL)" == "0"
25 LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
26 OPT = -Od
27 DEBUG_FLAGS= -v
28 !else
29 LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
30 OPT = -Od
31 DEBUG_FLAGS =
32 !endif
33 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
34
35 .$(SRCSUFF).obj:
36 bcc32 $(CPPFLAGS) -c {$< }
37
38 .c.obj:
39 bcc32 $(CPPFLAGS) -P- -c {$< }
40
41 CLIENT_TARGET=client
42 SERVER_TARGET=server
43 CLIENT_OBJECTS=client.obj
44 SERVER_OBJECTS=server.obj
45
46 all: $(CLIENT_TARGET).exe $(SERVER_TARGET).exe
47
48 $(CLIENT_TARGET).exe: $(CLIENT_OBJECTS) $(CLIENT_TARGET).res
49 tlink32 $(LINKFLAGS) @&&!
50 c0w32.obj $(CLIENT_OBJECTS)
51 $(CLIENT_TARGET)
52 nul
53 $(LIBS)
54 $(CLIENT_TARGET).def
55 $(CLIENT_TARGET).res
56 !
57
58 client.obj: client.cpp
59
60 $(CLIENT_TARGET).res : $(CLIENT_TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
61 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(CLIENT_TARGET)
62
63 $(SERVER_TARGET).exe: $(SERVER_OBJECTS) $(SERVER_TARGET).res
64 tlink32 $(LINKFLAGS) @&&!
65 c0w32.obj $(SERVER_OBJECTS)
66 $(SERVER_TARGET)
67 nul
68 $(LIBS)
69 $(SERVER_TARGET).def
70 $(SERVER_TARGET).res
71 !
72
73 server.obj: server.cpp
74
75 $(SERVER_TARGET).res: $(SERVER_TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
76 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(SERVER_TARGET)
77
78 clean:
79 -erase *.obj
80 -erase *.exe
81 -erase *.res
82 -erase *.map
83 -erase *.rws