]> git.saurik.com Git - wxWidgets.git/blob - samples/joytest/makefile.bcc
Added background colour again
[wxWidgets.git] / samples / joytest / makefile.bcc
1 #
2 # File: makefile.bcc
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds joytest example (DOS).
11
12 !if "$(BCCDIR)" == ""
13 !error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4
14 !endif
15
16 !if "$(WXWIN)" == ""
17 !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
18 !endif
19
20 !ifndef FINAL
21 FINAL=0
22 !endif
23
24 WXDIR = $(WXWIN)
25 !include $(WXDIR)\src\makebcc.env
26
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
32
33 !if "$(FINAL)" == "0"
34 LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
35 OPT = -Od
36 DEBUG_FLAGS= -v
37 !else
38 LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
39 OPT = -O2
40 DEBUG_FLAGS =
41 !endif
42 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
43
44 HEADERS = joytest.h
45 SOURCES = joytest.$(SRCSUFF)
46 OBJECTS = joytest.obj
47
48 joytest: joytest.exe
49
50 all: joytest.exe
51
52 joytest.exe: $(WXLIB) joytest.obj joytest.def joytest.res
53 tlink $(LINKFLAGS) @&&!
54 c0wl.obj joytest.obj
55 joytest
56 nul
57 $(LIBS)
58 joytest.def
59 !
60 rc -30 -K joytest.res
61
62 .$(SRCSUFF).obj:
63 bcc $(CPPFLAGS) -c {$< }
64
65 joytest.obj: joytest.$(SRCSUFF)
66
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
69
70 clean:
71 -erase *.obj
72 -erase *.exe
73 -erase *.res
74 -erase *.map
75 -erase *.rws