]> git.saurik.com Git - wxWidgets.git/blame - src/makefile.bcc
fixed fl makefiles that Julian didn't fix correctly
[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
2bda0e17
KB
54
55all: wxwin.cfg
56 cd $(WXDIR)\src\msw
57 make -f makefile.bcc -DCFG=$(CFG) -DWXDIR=$(WXDIR) DEBUG=$(DEBUG) -DDEBUG_FLAGS=$(DEBUG_FLAGS) -DOPT=$(OPT) -DFINAL=$(FINAL)
58 cd $(WXDIR)\src
59
60clean:
61 erase wxwin.cfg
62 cd $(WXDIR)\src\msw
63 make -f makefile.bcc clean
64 cd $(WXDIR)\src
65
66wxwin.cfg: makefile.bcc
67 copy &&!
68-H=$(WXDIR)\src\borland.pch
69-2
70-P
71-d
72-w-hid
73-w-par
74-w-pia
75-w-aus
76-w-rch
77-ml
78-Od
79-WE
80-Fs-
81-Vf
9d8c2f41 82-I$(WXBASEINC);$(WXINC);$(PROLOGIOINC);$(BCCDIR)\include;$(WXDIR)\contrib\fafa;$(WXDIR)\contrib\itsybits;$(WXDIR)\utils\rcparser\src
2bda0e17
KB
83
84-L$(BCCDIR)\lib
85-Dwx_msw
86! wxwin.cfg
87!if "$(BOR_VER)" == "3.1"
88 echo -Ff=4 >>wxwin.cfg
89!elif "$(BOR_VER)" == "4"
90 echo -Ff=512 >>wxwin.cfg
91 echo -dc >>wxwin.cfg
92!endif
93
94
95# -O was: -Oxt
96