6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds mfc 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\mfc
24 WXLIB = $(WXDIR)\lib\wx.lib
26 LIBS=$(WXLIB) mathwl cwl import
27 INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
28 CFG=$(WXDIR)\src\wxwin.cfg
35 LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
39 LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
43 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
46 SOURCES = hello.$(SRCSUFF)
53 hello.exe: $(WXLIB) hello.obj hello.def hello.res
54 tlink $(LINKFLAGS) @&&!
64 bcc $(CPPFLAGS) -c {$< }
66 hello.obj: hello.$(SRCSUFF)
68 hello.res : hello.rc $(WXDIR)\include\msw\wx.rc
69 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa hello