]> git.saurik.com Git - wxWidgets.git/blame - samples/memcheck/makefile.bcc
Added CodeWarrior files to distribution scripts
[wxWidgets.git] / samples / memcheck / makefile.bcc
CommitLineData
457814b5
JS
1#
2# File: makefile.bcc
3# Author: Julian Smart
4# Created: 1993
5# Updated:
6# Copyright: (c) 1993, AIAI, University of Edinburgh
7#
8# "%W% %G%"
9#
10# Makefile : Builds memcheck example (DOS).
11
12!if "$(BCCDIR)" == ""
13!error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4
14!endif
15
16!if "$(WXWIN)" == ""
17!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
18!endif
19
20WXDIR = $(WXWIN)
21!include $(WXDIR)\src\makebcc.env
22
23THISDIR = $(WXDIR)\samples\memcheck
24WXLIB = $(WXDIR)\lib\wx.lib
25LIBS=$(WXLIB) mathwl cwl import
26INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
27CFG=$(WXDIR)\src\wxwin.cfg
28
29!ifndef FINAL
30FINAL=0
31!endif
32
33!ifndef DEBUG
34DEBUG=0
35!endif
36
37!if "$(FINAL)" == "0"
38LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
39OPT = -Od
40DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
41!else
42LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
43OPT = -O2
44DEBUG_FLAGS= -DDEBUG=$(DEBUG)
45!endif
46CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
47
48OBJECTS = memcheck.obj
49
50memcheck: memcheck.exe
51
52all: memcheck.exe
53
54memcheck.exe: $(WXLIB) memcheck.obj memcheck.def memcheck.res
55 tlink $(LINKFLAGS) @&&!
56c0wl.obj memcheck.obj
57memcheck
58nul
59$(LIBS)
60memcheck.def
61!
62 rc -31 -K memcheck.res
63
64.$(SRCSUFF).obj:
65 bcc $(CPPFLAGS) -c {$< }
66
67memcheck.obj: memcheck.$(SRCSUFF)
68
69memcheck.res : memcheck.rc $(WXDIR)\include\wx\msw\wx.rc
70 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\wx memcheck
71
72clean:
73 -erase *.obj
74 -erase *.exe
75 -erase *.res
76 -erase *.map
77 -erase *.rws