6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds wxButtonbar sample
13 !error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4
17 !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
20 # Change WXDIR to wherever wxWindows is found
22 !include $(WXDIR)\src\makebcc.env
24 WXLIB = $(WXDIR)\lib\wx.lib
25 WXINC = $(WXDIR)\include
26 CFG=$(WXDIR)\src\wxwin.cfg
28 BUTTNBARDIR = $(WXDIR)\samples\toolbar
29 THISDIR = $(BUTTNBARDIR)
33 LIBS=$(WXLIB) mathwl cwl import
40 LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
44 LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
48 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) $(INC) @$(CFG)
49 CFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
56 bcc $(CPPFLAGS) -c {$< }
58 test.res : test.rc $(WXDIR)\include\msw\wx.rc
59 rc /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa -r test
61 test.exe: test.obj test.def test.res
62 tlink $(LINKFLAGS) @&&!