1998-09-06 18:28:00 +00:00
|
|
|
#
|
|
|
|
# File: makefile.b32
|
1998-09-08 22:27:12 +00:00
|
|
|
# Author: Guilhem Lavaux
|
|
|
|
# Created: 1998
|
1998-09-06 18:28:00 +00:00
|
|
|
# Updated:
|
1998-09-08 22:27:12 +00:00
|
|
|
# Copyright: (c) Guilhem Lavaux
|
1998-09-06 18:28:00 +00:00
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
1998-09-08 22:27:12 +00:00
|
|
|
# Makefile : Builds 32-bit wxSocket sample under BC++
|
1998-09-06 18:28:00 +00:00
|
|
|
|
|
|
|
WXDIR = $(WXWIN)
|
|
|
|
|
1998-09-08 22:27:12 +00:00
|
|
|
ZLIB = $(WXDIR)\lib\zlib.lib
|
|
|
|
|
1998-09-06 18:28:00 +00:00
|
|
|
!include $(WXDIR)\src\makeb32.env
|
|
|
|
|
|
|
|
WXLIBDIR = $(WXDIR)\lib
|
|
|
|
WXINC = $(WXDIR)\include\msw
|
1998-09-08 22:27:12 +00:00
|
|
|
WXLIB = $(WXLIBDIR)\wx32.lib
|
|
|
|
LIBS=$(WXLIB) $(ZLIB) cw32 import32 ole2w32
|
1998-09-06 18:28:00 +00:00
|
|
|
|
|
|
|
!if "$(FINAL)" == "0"
|
|
|
|
LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
|
|
|
|
OPT = -Od
|
1998-09-08 22:27:12 +00:00
|
|
|
DEBUG_FLAGS= -v
|
1998-09-06 18:28:00 +00:00
|
|
|
!else
|
|
|
|
LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
|
1998-09-08 22:27:12 +00:00
|
|
|
OPT = -Od
|
|
|
|
DEBUG_FLAGS =
|
1998-09-06 18:28:00 +00:00
|
|
|
!endif
|
|
|
|
CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
|
|
|
|
|
1998-09-08 22:27:12 +00:00
|
|
|
.$(SRCSUFF).obj:
|
|
|
|
bcc32 $(CPPFLAGS) -c {$< }
|
|
|
|
|
|
|
|
.c.obj:
|
|
|
|
bcc32 $(CPPFLAGS) -P- -c {$< }
|
|
|
|
|
1998-09-06 18:28:00 +00:00
|
|
|
CLIENT_TARGET=client
|
|
|
|
SERVER_TARGET=server
|
|
|
|
CLIENT_OBJECTS=client.obj
|
|
|
|
SERVER_OBJECTS=server.obj
|
|
|
|
|
|
|
|
all: $(CLIENT_TARGET).exe $(SERVER_TARGET).exe
|
|
|
|
|
1998-09-08 22:27:12 +00:00
|
|
|
$(CLIENT_TARGET).exe: $(CLIENT_OBJECTS) $(CLIENT_TARGET).res
|
1998-09-06 18:28:00 +00:00
|
|
|
tlink32 $(LINKFLAGS) @&&!
|
|
|
|
c0w32.obj $(CLIENT_OBJECTS)
|
|
|
|
$(CLIENT_TARGET)
|
|
|
|
nul
|
|
|
|
$(LIBS)
|
|
|
|
!
|
|
|
|
brc32 -K $(CLIENT_TARGET).res
|
|
|
|
|
|
|
|
client.obj: client.cpp
|
|
|
|
|
1998-09-08 22:27:12 +00:00
|
|
|
$(CLIENT_TARGET).res : $(CLIENT_TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
|
|
|
|
brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(CLIENT_TARGET)
|
1998-09-06 18:28:00 +00:00
|
|
|
|
1998-09-08 22:27:12 +00:00
|
|
|
$(SERVER_TARGET).exe: $(SERVER_OBJECTS) $(SERVER_TARGET).res
|
1998-09-06 18:28:00 +00:00
|
|
|
tlink32 $(LINKFLAGS) @&&!
|
|
|
|
c0w32.obj $(SERVER_OBJECTS)
|
|
|
|
$(SERVER_TARGET)
|
|
|
|
nul
|
|
|
|
$(LIBS)
|
|
|
|
!
|
|
|
|
brc32 -K $(SERVER_TARGET).res
|
|
|
|
|
|
|
|
server.obj: server.cpp
|
|
|
|
|
1998-09-08 22:27:12 +00:00
|
|
|
$(SERVER_TARGET).res: $(SERVER_TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
|
|
|
|
brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(SERVER_TARGET)
|
1998-09-06 18:28:00 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-erase *.obj
|
|
|
|
-erase *.exe
|
|
|
|
-erase *.res
|
|
|
|
-erase *.map
|
|
|
|
-erase *.rws
|