]> git.saurik.com Git - wxWidgets.git/blame - src/makefile.bcc
* some C++ness correction in wxStream.
[wxWidgets.git] / src / makefile.bcc
CommitLineData
2bda0e17
KB
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 wxWindows library wx.lib for Windows 3.1
11# and Borland C++ 3.1. This makefile calls makefile.bcc in msw and
12# base subdirectories.
13
14!if "$(BCCDIR)" == ""
15!error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4
16!endif
17
18!if "$(WXWIN)" == ""
19!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
20!endif
21
22!ifndef DEBUG
23DEBUG=0
24!endif
25
26!ifndef FINAL
27FINAL=0
28!endif
29
30# Change these if needed.
31WXDIR = $(WXWIN)
32
33!include $(WXDIR)\src\makebcc.env
34
35!if "$(FINAL)" == "0"
36OPT = -Od
37DEBUG_FLAGS= -v /DDEBUG=$(DEBUG) # -v # -v for debugging info
38!else
39OPT = -O2
40DEBUG_FLAGS = /DDEBUG=$(DEBUG)
41!endif
42
43BOR_VER = 4
44
45#!if "$(BOR_VER)" == "3.1"
46#BCCDIR = d:\bc3
47#!elif "$(BOR_VER)" == "4"
48#BCCDIR = d:\bc4
49#!endif
50
51WXBASEINC = $(WXDIR)\include\base
52WXINC = $(WXDIR)\include\msw
53PROLOGIOINC = $(WXDIR)\utils\prologio\src
54XPMINC=$(WXDIR)\contrib\wxxpm\libxpm.34b\lib
55
56all: wxwin.cfg
57 cd $(WXDIR)\src\msw
58 make -f makefile.bcc -DCFG=$(CFG) -DWXDIR=$(WXDIR) DEBUG=$(DEBUG) -DDEBUG_FLAGS=$(DEBUG_FLAGS) -DOPT=$(OPT) -DFINAL=$(FINAL)
59 cd $(WXDIR)\src
60
61clean:
62 erase wxwin.cfg
63 cd $(WXDIR)\src\msw
64 make -f makefile.bcc clean
65 cd $(WXDIR)\src
66
67wxwin.cfg: makefile.bcc
68 copy &&!
69-H=$(WXDIR)\src\borland.pch
70-2
71-P
72-d
73-w-hid
74-w-par
75-w-pia
76-w-aus
77-w-rch
78-ml
79-Od
80-WE
81-Fs-
82-Vf
83-I$(WXBASEINC);$(WXINC);$(PROLOGIOINC);$(XPMINC);$(BCCDIR)\include;$(WXDIR)\contrib\fafa;$(WXDIR)\contrib\itsybits;$(WXDIR)\utils\rcparser\src
84
85-L$(BCCDIR)\lib
86-Dwx_msw
87! wxwin.cfg
88!if "$(BOR_VER)" == "3.1"
89 echo -Ff=4 >>wxwin.cfg
90!elif "$(BOR_VER)" == "4"
91 echo -Ff=512 >>wxwin.cfg
92 echo -dc >>wxwin.cfg
93!endif
94
95
96# -O was: -Oxt
97