6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds minimal 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
21 !include $(WXDIR)\src\makebcc.env
23 THISDIR = $(WXDIR)\samples\minimal
24 WXLIB = $(WXDIR)\lib\wx.lib
25 LIBS=$(WXLIB) mathwl cwl import
26 INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
27 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)
50 minimal.exe: $(WXLIB) minimal.obj minimal.def minimal.res
51 tlink $(LINKFLAGS) @&&!
61 bcc $(CPPFLAGS) -c {$< }
63 minimal.obj: minimal.$(SRCSUFF)
65 minimal.res : minimal.rc $(WXDIR)\include\msw\wx.rc
66 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa minimal