]> git.saurik.com Git - wxWidgets.git/blame - utils/wxtree/src/makefile.bcc
Simplified BC++ makefiles; C++Builder 1.0 compilation seems to work;
[wxWidgets.git] / utils / wxtree / src / makefile.bcc
CommitLineData
4414cc1d
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 tree library and 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# Change WXDIR to wherever wxWindows is found
21WXDIR = $(WXWIN)
22!include $(WXDIR)\src\makebcc.env
23
24WXLIB = $(WXDIR)\lib\wx.lib
25WXINC = $(WXDIR)\include
26CFG=$(WXWIN)\src\wxwin.cfg
27
28TREEDIR = $(WXDIR)\utils\wxtree
29TREELIB = $(TREEDIR)\lib\wxtree.lib
30
31WXHELPDIR = $(WXDIR)\utils\wxhelp
32TEX2RTFDIR = $(WXDIR)\utils\tex2rtf
33DOCDIR = $(WXHELPDIR)\docs
34
35# Default is to output RTF for WinHelp
36!ifndef WINHELP
37WINHELP=-winhelp
38!endif
39
40INC=/I$(WXDIR)\include\base /I$(WXDIR)\include\msw
41
42LIBS=$(WXLIB) $(TREELIB) mathwl cwl import mathwl
43
44!ifndef FINAL
45FINAL=0
46!endif
47
48!if "$(FINAL)" == "0"
49LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
50OPT = -Od
51DEBUG_FLAGS= -v
52!else
53LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
54OPT = -O2
55DEBUG_FLAGS=
56!endif
57CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
58CFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
59
60HEADERS = wxtree.h
61SOURCES = wxtree.$(SRCSUFF)
62OBJECTS = wxtree.obj
63
64all: $(TREELIB)
65
66.$(SRCSUFF).obj:
67 bcc $(CPPFLAGS) $(INC) -c {$< }
68
69$(TREELIB): $(OBJECTS)
70 erase $(TREELIB)
71 tlib /P128 @&&!
72$(TREELIB) &
73+$(OBJECTS:.obj =.obj +)
74!
75
76test.obj: test.$(SRCSUFF)
77
78test.res : test.rc $(WXDIR)\include\msw\wx.rc
79 rc /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa -r test
80
81test.exe: test.obj test.def test.res $(TREELIB)
82 tlink $(LINKFLAGS) @&&!
83c0wl.obj test.obj
84test
85nul
86$(LIBS)
87test.def
88!
89 rc -K test.res
90
91clean:
92 -erase *.obj
93 -erase *.exe
94 -erase *.res
95 -erase ..\lib\*.lib
96