]> git.saurik.com Git - wxWidgets.git/blob - samples/nativdlg/makefile.bcc
Updated frame style
[wxWidgets.git] / samples / nativdlg / 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 resource 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 THISDIR = $(WXDIR)\samples\resource
22 WXLIB = $(WXDIR)\lib\wx.lib
23
24 LIBS=$(WXLIB) mathwl cwl import
25 INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
26 CFG=$(WXDIR)\src\wxwin.cfg
27
28 !ifndef FINAL
29 FINAL=0
30 !endif
31
32 !if "$(FINAL)" == "0"
33 LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
34 OPT = -Od
35 DEBUG_FLAGS= -v
36 !else
37 LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
38 OPT = -O2
39 DEBUG_FLAGS =
40 !endif
41 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
42
43 HEADERS = resource.h
44 SOURCES = resource.cc
45 OBJECTS = resource.obj
46
47 resource: resource.exe
48
49 all: resource.exe
50
51 resource.exe: $(WXLIB) resource.obj resource.def resource.res
52 tlink $(LINKFLAGS) @&&!
53 c0wl.obj resource.obj
54 resource
55 nul
56 $(LIBS)
57 resource.def
58 !
59 rc -30 -K resource.res
60
61 .cc.obj:
62 bcc $(CPPFLAGS) -c {$< }
63
64 resource.obj: resource.cc
65
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
68
69 clean:
70 -erase *.obj
71 -erase *.exe
72 -erase *.res
73 -erase *.map
74 -erase *.rws