]> git.saurik.com Git - wxWidgets.git/blame - samples/dde/makefile.b32
Unicode conversion.
[wxWidgets.git] / samples / dde / makefile.b32
CommitLineData
7921cf2b
JS
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
12WXDIR = $(WXWIN)
13
14ZLIB = $(WXDIR)\lib\zlib.lib
15
16!include $(WXDIR)\src\makeb32.env
17
18WXLIBDIR = $(WXDIR)\lib
19WXINC = $(WXDIR)\include\msw
20WXLIB = $(WXLIBDIR)\wx32.lib
21LIBS=$(WXLIB) $(ZLIB) cw32 import32 ole2w32
22
23!if "$(FINAL)" == "0"
24LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
25OPT = -Od
26DEBUG_FLAGS= -v
27!else
28LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
29OPT = -Od
30DEBUG_FLAGS =
31!endif
32CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
33
34.$(SRCSUFF).obj:
35 bcc32 $(CPPFLAGS) -c {$< }
36
37.c.obj:
38 bcc32 $(CPPFLAGS) -P- -c {$< }
39
40CLIENT_TARGET=client
41SERVER_TARGET=server
42CLIENT_OBJECTS=client.obj
43SERVER_OBJECTS=server.obj
44
45all: $(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
57client.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
72server.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
77clean:
78 -erase *.obj
79 -erase *.exe
80 -erase *.res
81 -erase *.map
82 -erase *.rws