]> git.saurik.com Git - wxWidgets.git/blob - samples/taskbar/makefile.bcc
aa2c61b4a862d9ca1c8a5d4f21843ebced11e5a9
[wxWidgets.git] / samples / taskbar / 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 tbtest 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 WXDIR = $(WXWIN)
21 !include $(WXDIR)\src\makebcc.env
22
23 THISDIR = $(WXDIR)\samples\taskbar
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
28
29 !ifndef FINAL
30 FINAL=0
31 !endif
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 OBJECTS = tbtest.obj
45
46 tbtest: tbtest.exe
47
48 all: tbtest.exe
49
50 tbtest.exe: $(WXLIB) tbtest.obj tbtest.def tbtest.res
51 tlink $(LINKFLAGS) @&&!
52 c0wl.obj tbtest.obj
53 tbtest
54 nul
55 $(LIBS)
56 tbtest.def
57 !
58 rc -31 -K tbtest.res
59
60 .$(SRCSUFF).obj:
61 bcc $(CPPFLAGS) -c {$< }
62
63 tbtest.obj: tbtest.$(SRCSUFF)
64
65 tbtest.res : tbtest.rc $(WXDIR)\include\msw\wx.rc
66 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa tbtest
67
68 clean:
69 -erase *.obj
70 -erase *.exe
71 -erase *.res
72 -erase *.map
73 -erase *.rws