]>
Commit | Line | Data |
---|---|---|
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 | XPMINC=$(WXDIR)\contrib\wxxpm\libxpm.34b\lib | |
55 | ||
56 | all: 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 | ||
61 | clean: | |
62 | erase wxwin.cfg | |
63 | cd $(WXDIR)\src\msw | |
64 | make -f makefile.bcc clean | |
65 | cd $(WXDIR)\src | |
66 | ||
67 | wxwin.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 |