wxWidgets/samples/memcheck/makefile.bcc

78 lines
1.5 KiB
Plaintext
Raw Normal View History

#
# File: makefile.bcc
# Author: Julian Smart
# Created: 1993
# Updated:
# Copyright: (c) 1993, AIAI, University of Edinburgh
#
# "%W% %G%"
#
# Makefile : Builds memcheck example (DOS).
!if "$(BCCDIR)" == ""
!error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4
!endif
!if "$(WXWIN)" == ""
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
!endif
WXDIR = $(WXWIN)
!include $(WXDIR)\src\makebcc.env
THISDIR = $(WXDIR)\samples\memcheck
WXLIB = $(WXDIR)\lib\wx.lib
LIBS=$(WXLIB) mathwl cwl import
INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
CFG=$(WXDIR)\src\wxwin.cfg
!ifndef FINAL
FINAL=0
!endif
!ifndef DEBUG
DEBUG=0
!endif
!if "$(FINAL)" == "0"
LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
OPT = -Od
DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
!else
LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
OPT = -O2
DEBUG_FLAGS= -DDEBUG=$(DEBUG)
!endif
CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
OBJECTS = memcheck.obj
memcheck: memcheck.exe
all: memcheck.exe
memcheck.exe: $(WXLIB) memcheck.obj memcheck.def memcheck.res
tlink $(LINKFLAGS) @&&!
c0wl.obj memcheck.obj
memcheck
nul
$(LIBS)
memcheck.def
!
rc -31 -K memcheck.res
.$(SRCSUFF).obj:
bcc $(CPPFLAGS) -c {$< }
memcheck.obj: memcheck.$(SRCSUFF)
memcheck.res : memcheck.rc $(WXDIR)\include\wx\msw\wx.rc
rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\wx memcheck
clean:
-erase *.obj
-erase *.exe
-erase *.res
-erase *.map
-erase *.rws