1998-05-21 12:31:14 +00:00
|
|
|
#
|
|
|
|
# File: makefile.bcc
|
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1993
|
|
|
|
# Updated:
|
|
|
|
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
1998-08-22 19:46:35 +00:00
|
|
|
# Makefile : Builds dynamic example (DOS).
|
1998-05-21 12:31:14 +00:00
|
|
|
|
|
|
|
# WXWIN and BCCDIR are set by parent make
|
|
|
|
|
|
|
|
WXDIR = $(WXWIN)
|
|
|
|
!include $(WXDIR)\src\makeb32.env
|
|
|
|
|
|
|
|
WXLIBDIR = $(WXDIR)\lib
|
|
|
|
WXINC = $(WXDIR)\include\msw
|
|
|
|
WXLIB = $(WXLIBDIR)\wx32.lib
|
|
|
|
LIBS=$(WXLIB) cw32 import32 ole2w32
|
|
|
|
|
1998-08-22 19:46:35 +00:00
|
|
|
TARGET=dynamic
|
1998-05-21 12:31:14 +00:00
|
|
|
|
|
|
|
!if "$(FINAL)" == "0"
|
|
|
|
LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
|
|
|
|
OPT = -Od
|
|
|
|
DEBUG_FLAGS= -v
|
|
|
|
!else
|
|
|
|
LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
|
|
|
|
OPT = -Od
|
|
|
|
DEBUG_FLAGS =
|
|
|
|
!endif
|
|
|
|
CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
|
|
|
|
|
1998-08-22 19:46:35 +00:00
|
|
|
OBJECTS = dynamic.obj
|
1998-05-21 12:31:14 +00:00
|
|
|
|
|
|
|
$(TARGET).exe: $(OBJECTS) $(TARGET).def $(TARGET).res
|
|
|
|
tlink32 $(LINKFLAGS) @&&!
|
|
|
|
c0w32.obj $(OBJECTS)
|
|
|
|
$(TARGET)
|
|
|
|
nul
|
|
|
|
$(LIBS)
|
|
|
|
$(TARGET).def
|
|
|
|
!
|
|
|
|
brc32 -K $(TARGET).res
|
|
|
|
|
|
|
|
.$(SRCSUFF).obj:
|
|
|
|
bcc32 $(CPPFLAGS) -c {$< }
|
|
|
|
|
|
|
|
.c.obj:
|
|
|
|
bcc32 $(CPPFLAGS) -P- -c {$< }
|
|
|
|
|
1998-08-22 19:46:35 +00:00
|
|
|
dynamic.obj: dynamic.$(SRCSUFF)
|
1998-05-21 12:31:14 +00:00
|
|
|
|
|
|
|
$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
|
|
|
|
brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-erase *.obj
|
|
|
|
-erase *.exe
|
|
|
|
-erase *.res
|
|
|
|
-erase *.map
|
|
|
|
-erase *.rws
|
|
|
|
|