]> git.saurik.com Git - wxWidgets.git/blame - samples/controls/makefile.bcc
Attempting to check in this wretched cursor again. Also added SetAcceleratorTable
[wxWidgets.git] / samples / controls / makefile.bcc
CommitLineData
1c005ff7
RR
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#
447daba1 10# Makefile : Builds controls example (DOS).
1c005ff7
RR
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
447daba1 23THISDIR = $(WXDIR)\samples\controls
1c005ff7
RR
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!if "$(FINAL)" == "0"
34LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
35OPT = -Od
36DEBUG_FLAGS= -v
37!else
38LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
39OPT = -O2
40DEBUG_FLAGS=
41!endif
42CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
43
447daba1 44OBJECTS = controls.obj
1c005ff7 45
447daba1 46controls: controls.exe
1c005ff7 47
447daba1 48all: controls.exe
1c005ff7 49
447daba1 50controls.exe: $(WXLIB) controls.obj controls.def controls.res
1c005ff7 51 tlink $(LINKFLAGS) @&&!
447daba1
JS
52c0wl.obj controls.obj
53controls
1c005ff7
RR
54nul
55$(LIBS)
447daba1 56controls.def
1c005ff7 57!
447daba1 58 rc -31 -K controls.res
1c005ff7
RR
59
60.$(SRCSUFF).obj:
61 bcc $(CPPFLAGS) -c {$< }
62
447daba1 63controls.obj: controls.$(SRCSUFF)
1c005ff7 64
447daba1
JS
65controls.res : controls.rc $(WXDIR)\include\msw\wx.rc
66 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa controls
1c005ff7
RR
67
68clean:
69 -erase *.obj
70 -erase *.exe
71 -erase *.res
72 -erase *.map
73 -erase *.rws