6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds tree library and example (DOS).
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=$(WXWIN)\src\wxwin.cfg
28 TREEDIR = $(WXDIR)\utils\wxtree
29 TREELIB = $(TREEDIR)\lib\wxtree.lib
31 WXHELPDIR = $(WXDIR)\utils\wxhelp
32 TEX2RTFDIR = $(WXDIR)\utils\tex2rtf
33 DOCDIR = $(WXHELPDIR)\docs
35 # Default is to output RTF for WinHelp
40 INC=/I$(WXDIR)\include\base /I$(WXDIR)\include\msw
42 LIBS=$(WXLIB) $(TREELIB) mathwl cwl import mathwl
49 LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
53 LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
57 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
58 CFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
61 SOURCES = wxtree.$(SRCSUFF)
67 bcc $(CPPFLAGS) $(INC) -c {$< }
69 $(TREELIB): $(OBJECTS)
73 +$(OBJECTS:.obj =.obj +)
76 test.obj: test.$(SRCSUFF)
78 test.res : test.rc $(WXDIR)\include\msw\wx.rc
79 rc /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa -r test
81 test.exe: test.obj test.def test.res $(TREELIB)
82 tlink $(LINKFLAGS) @&&!