]> git.saurik.com Git - wxWidgets.git/blame - samples/toolbar/makefile.bcc
Attempting to check in this wretched cursor again. Also added SetAcceleratorTable
[wxWidgets.git] / samples / toolbar / makefile.bcc
CommitLineData
14d1ccd8
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 wxButtonbar sample
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
20# Change WXDIR to wherever wxWindows is found
21WXDIR = $(WXWIN)
22!include $(WXDIR)\src\makebcc.env
23
24WXLIB = $(WXDIR)\lib\wx.lib
25WXINC = $(WXDIR)\include
26CFG=$(WXDIR)\src\wxwin.cfg
27
28BUTTNBARDIR = $(WXDIR)\samples\toolbar
29THISDIR = $(BUTTNBARDIR)
30
31INC=
32
33LIBS=$(WXLIB) mathwl cwl import
34
35!ifndef FINAL
36FINAL=0
37!endif
38
39!if "$(FINAL)" == "0"
40LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
41OPT = -Od
42DEBUG_FLAGS= -v
43!else
44LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
45OPT = -O2
46DEBUG_FLAGS=
47!endif
48CPPFLAGS=$(DEBUG_FLAGS) $(OPT) $(INC) @$(CFG)
49CFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
50
51OBJECTS = test.obj
52
53all: test.exe
54
55.$(SRCSUFF).obj:
56 bcc $(CPPFLAGS) -c {$< }
57
58test.res : test.rc $(WXDIR)\include\msw\wx.rc
59 rc /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa -r test
60
61test.exe: test.obj test.def test.res
62 tlink $(LINKFLAGS) @&&!
63c0wl.obj test.obj
64test
65nul
66$(LIBS)
67test.def
68!
69 rc -K test.res
70
71clean:
72 -erase *.obj
73 -erase *.exe
74
75