]> git.saurik.com Git - wxWidgets.git/blame - samples/docview/makefile.bcc
I've put live into Vadim's wxNavigationKeyEvent idea
[wxWidgets.git] / samples / docview / makefile.bcc
CommitLineData
457814b5
JS
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 docview 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
21FINAL=0
22!endif
23
24WXDIR = $(WXWIN)
25!include $(WXDIR)\src\makebcc.env
26
27THISDIR = $(WXDIR)\samples\docview
28WXLIB = $(WXDIR)\lib\wx.lib
29LIBS=$(WXLIB) mathwl cwl import
30INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
31CFG=$(WXDIR)\src\wxwin.cfg
32
33!if "$(FINAL)" == "0"
34LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
35OPT = -Od
36DEBUG_FLAGS= -v
37!else
38LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
39OPT = -O2
40DEBUG_FLAGS =
41!endif
42CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
43
44OBJECTS = docview.obj doc.obj view.obj
45
46docview: docview.exe
47
48all: docview.exe
49
50docview.exe: $(WXLIB) $(OBJECTS) docview.def docview.res
51 tlink $(LINKFLAGS) @&&!
52c0wl.obj $(OBJECTS)
53docview
54nul
55$(LIBS)
56docview.def
57!
58 rc -30 -K docview.res
59
60.$(SRCSUFF).obj:
61 bcc $(CPPFLAGS) -c {$< }
62
63docview.obj: docview.$(SRCSUFF)
64
65doc.obj: doc.$(SRCSUFF)
66
67view.obj: view.$(SRCSUFF)
68
69docview.res : docview.rc $(WXDIR)\include\msw\wx.rc
70 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa docview
71
72clean:
73 -erase *.obj
74 -erase *.exe
75 -erase *.res
76 -erase *.map
77 -erase *.rws