6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds docview 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
25 !include $(WXDIR)\src\makebcc.env
27 THISDIR = $(WXDIR)\samples\docview
28 WXLIB = $(WXDIR)\lib\wx.lib
29 LIBS=$(WXLIB) mathwl cwl import
30 INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
31 CFG=$(WXDIR)\src\wxwin.cfg
34 LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
38 LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
42 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
44 OBJECTS = docview.obj doc.obj view.obj
50 docview.exe: $(WXLIB) $(OBJECTS) docview.def docview.res
51 tlink $(LINKFLAGS) @&&!
61 bcc $(CPPFLAGS) -c {$< }
63 docview.obj: docview.$(SRCSUFF)
65 doc.obj: doc.$(SRCSUFF)
67 view.obj: view.$(SRCSUFF)
69 docview.res : docview.rc $(WXDIR)\include\msw\wx.rc
70 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa docview