]> git.saurik.com Git - wxWidgets.git/blame - samples/wxsocket/makefile.b32
Added Latex style file
[wxWidgets.git] / samples / wxsocket / makefile.b32
CommitLineData
f4ada568
GL
1#
2# File: makefile.b32
3# Author: Patrick Halke, modified by Guilhem Lavaux
4# Created: 1997
5# Updated:
6# Copyright: (c) 1993, AIAI, University of Edinburgh
7#
8# "%W% %G%"
9#
10# Makefile : Builds 32bit wxstring library for Windows 3.1
11# and Borland C++ 4.x
12
13WXDIR = $(WXWIN)
14
15!include $(WXDIR)\src\makeb32.env
16
17WXLIBDIR = $(WXDIR)\lib
18WXLIB = $(WXDIR)\lib\wx32.lib
19SOCKETLIB = $(WXDIR)\lib\wxsocket.lib $(WXDIR)\lib\zlib.lib
20WXINC = $(WXDIR)\include\msw
21WXBASESRC = $(WXDIR)\src\base
22WXBASEINC = $(WXDIR)\include\base
23LIBS=$(WXLIB) $(SOCKETLIB) cw32 import32
24
25!ifndef DEBUG
26DEBUG=0
27!endif
28
29!if "$(FINAL)" == "0"
30LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
31OPT = -Od
32DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
33!else
34LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
35OPT = -O2
36DEBUG_FLAGS = -DDEBUG=$(DEBUG)
37!endif
38
39CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
40
41CLIENT_TARGET=client
42SERVER_TARGET=server
43CLIENT_OBJECTS=client.obj
44SERVER_OBJECTS=server.obj
45
46.c.obj:
47 bcc32 $(CPPFLAGS) -P- -c {$< }
48
49all: $(CLIENT_TARGET).exe $(SERVER_TARGET).exe
50
51$(CLIENT_TARGET).exe: $(CLIENT_OBJECTS) $(CLIENT_TARGET).def $(CLIENT_TARGET).res
52 tlink32 $(LINKFLAGS) @&&!
53 c0w32.obj $(CLIENT_OBJECTS)
54 $(CLIENT_TARGET)
55 nul
56 $(LIBS)
57 $(CLIENT_TARGET).def
58!
59 brc32 -K $(CLIENT_TARGET).res
60
61client.obj: client.cpp
62
63$(CLIENT_TARGET).res : $(CLIENT_TARGET).rc $(WXDIR)\include\msw\wx.rc
64 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa $(CLIENT_TARGET)
65
66$(SERVER_TARGET).exe: $(SERVER_OBJECTS) $(SERVER_TARGET).def $(SERVER_TARGET).res
67 tlink32 $(LINKFLAGS) @&&!
68 c0w32.obj $(SERVER_OBJECTS)
69 $(SERVER_TARGET)
70 nul
71 $(LIBS)
72 $(SERVER_TARGET).def
73!
74 brc32 -K $(SERVER_TARGET).res
75
76server.obj: server.cpp
77
78$(SERVER_TARGET).res: $(SERVER_TARGET).rc $(WXDIR)\include\msw\wx.rc
79 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa $(SERVER_TARGET)
80
81clean:
82 -erase *.obj
83 -erase *.exe
84 -erase *.res
85 -erase *.map
86 -erase *.rws