6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds joytest 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\joytest
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)
45 SOURCES = joytest.$(SRCSUFF)
52 joytest.exe: $(WXLIB) joytest.obj joytest.def joytest.res
53 tlink $(LINKFLAGS) @&&!
63 bcc $(CPPFLAGS) -c {$< }
65 joytest.obj: joytest.$(SRCSUFF)
67 joytest.res : joytest.rc $(WXDIR)\include\msw\wx.rc
68 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa joytest