]> git.saurik.com Git - wxWidgets.git/blame - samples/wxsocket/makefile.b32
Added the forgotten file txtstrm.tex
[wxWidgets.git] / samples / wxsocket / makefile.b32
CommitLineData
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
12WXDIR = $(WXWIN)
13
27529614
JS
14ZLIB = $(WXDIR)\lib\zlib.lib
15
f4ada568
GL
16!include $(WXDIR)\src\makeb32.env
17
18WXLIBDIR = $(WXDIR)\lib
f4ada568 19WXINC = $(WXDIR)\include\msw
27529614
JS
20WXLIB = $(WXLIBDIR)\wx32.lib
21LIBS=$(WXLIB) $(ZLIB) cw32 import32 ole2w32
f4ada568
GL
22
23!if "$(FINAL)" == "0"
24LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
25OPT = -Od
27529614 26DEBUG_FLAGS= -v
f4ada568
GL
27!else
28LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
27529614
JS
29OPT = -Od
30DEBUG_FLAGS =
f4ada568 31!endif
f4ada568
GL
32CPPFLAGS=$(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
40CLIENT_TARGET=client
41SERVER_TARGET=server
42CLIENT_OBJECTS=client.obj
43SERVER_OBJECTS=server.obj
44
f4ada568
GL
45all: $(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
57client.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
72server.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
77clean:
78 -erase *.obj
79 -erase *.exe
80 -erase *.res
81 -erase *.map
82 -erase *.rws