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