6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds resource 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 THISDIR = $(WXDIR)\samples\resource
22 WXLIB = $(WXDIR)\lib\wx.lib
24 LIBS=$(WXLIB) mathwl cwl import
25 INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
26 CFG=$(WXDIR)\src\wxwin.cfg
33 LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
37 LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
41 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
45 OBJECTS = resource.obj
47 resource: resource.exe
51 resource.exe: $(WXLIB) resource.obj resource.def resource.res
52 tlink $(LINKFLAGS) @&&!
59 rc -30 -K resource.res
62 bcc $(CPPFLAGS) -c {$< }
64 resource.obj: resource.cc
66 resource.res : resource.rc $(WXDIR)\include\msw\wx.rc
67 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa resource