]> git.saurik.com Git - wxWidgets.git/blob - src/makefile.bcc
added and documented wxDir::HasFiles/SubDirs(), use the latter in wxDirDialog - it...
[wxWidgets.git] / src / 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 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
23 DEBUG=0
24 !endif
25
26 !ifndef FINAL
27 FINAL=0
28 !endif
29
30 # Change these if needed.
31 WXDIR = $(WXWIN)
32
33 !include $(WXDIR)\src\makebcc.env
34
35 !if "$(FINAL)" == "0"
36 OPT = -Od
37 DEBUG_FLAGS= -v /DDEBUG=$(DEBUG) # -v # -v for debugging info
38 !else
39 OPT = -O2
40 DEBUG_FLAGS = /DDEBUG=$(DEBUG)
41 !endif
42
43 BOR_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
51 WXBASEINC = $(WXDIR)\include\base
52 WXINC = $(WXDIR)\include\msw
53 PROLOGIOINC = $(WXDIR)\utils\prologio\src
54
55 all: 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
60 clean:
61 erase wxwin.cfg
62 cd $(WXDIR)\src\msw
63 make -f makefile.bcc clean
64 cd $(WXDIR)\src
65
66 wxwin.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
82 -I$(WXBASEINC);$(WXINC);$(PROLOGIOINC);$(BCCDIR)\include;$(WXDIR)\contrib\fafa;$(WXDIR)\contrib\itsybits;$(WXDIR)\utils\rcparser\src
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