]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | # Common settings for Borland 32-bit compilation (makefile.b32 files) |
2 | ||
3b50432a GT |
3 | !if "$(RM)" == "" |
4 | RM= erase | |
5 | !endif | |
6 | ||
2bda0e17 KB |
7 | WXDIR = $(WXWIN) |
8 | CFG = $(WXDIR)\src\msw\wxwin32.cfg | |
4deae7a0 | 9 | |
6b6fc9b0 VZ |
10 | BCCDIR=$(MAKEDIR)\.. |
11 | ||
12 | !if "$(BCCDIR)" == "\.." | |
13 | !error Your Borland compiler does not define MAKEDIR. Pleasedefine the BCCDIR variable in makeb32.env line 10, e.g. BCCDIR=d:\bc4 | |
14 | !endif | |
15 | ||
4deae7a0 VZ |
16 | ARCHINCDIR=$(WXDIR)\lib\msw |
17 | ARCHSETUPH=$(ARCHINCDIR)\wx\setup.h | |
18 | ||
b2cf617c JS |
19 | # Using a config file isn't compatible across all BC++ versions |
20 | # LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg | |
2bda0e17 | 21 | WXLIBDIR = $(WXDIR)\lib |
b14391d1 | 22 | WXLIBDIR2 = $(WXDIR)\contrib\lib |
3b50432a | 23 | WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc;$(WXDIR)\src\regex; |
34138703 | 24 | WIN95FLAG = -D__WIN95__ -D__WINDOWS__ |
cbf65655 | 25 | RFLAGS = -i$(WXDIR)\include;$(WXDIR)\src |
2bda0e17 | 26 | |
8e97b17b VZ |
27 | # This should be changed to tlink32 if ilink32 is not available. |
28 | # Ilink32 is available on BC++ 5.02 and above, and all | |
29 | # versions of C++ Builder. | |
30 | !ifndef LINK | |
a6e2b3a8 | 31 | LINK=ilink32 |
b2cf617c | 32 | #LINK=tlink32 |
8e97b17b | 33 | !endif |
c3b177ae | 34 | |
2bda0e17 KB |
35 | !ifndef FINAL |
36 | FINAL=0 | |
37 | !endif | |
38 | ||
2bda0e17 KB |
39 | !if "$(FINAL)" == "0" |
40 | OPT = -Od | |
b2aef89b | 41 | DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE |
2bda0e17 KB |
42 | !else |
43 | OPT = -O2 | |
40e1a9c0 | 44 | DEBUG_FLAGS = -DUSE_DEFINE |
2bda0e17 | 45 | !endif |
2bda0e17 | 46 | |
c740f496 GL |
47 | !ifndef DLL |
48 | DLL=0 | |
49 | !endif | |
50 | ||
51 | # Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL | |
52 | # wxWin DLL 1 0 1 | |
53 | # wxWin STATIC 0 0 0 | |
54 | # App use wxWin DLL 0 1 0 | |
55 | # DLL use wxWin DLL 0 1 1 | |
56 | # DLL use wxWin STATIC 0 0 1 | |
57 | # | |
58 | ||
59 | !if "$(WXMAKINGDLL)" == "1" | |
f6bcfd97 | 60 | DLL_FLAGS= -DWXMAKINGDLL=1 -D_RTLDLL |
9f24e0b5 | 61 | WXLIB= $(WXLIBDIR)\wx233.lib |
c740f496 GL |
62 | |
63 | !else | |
64 | ||
741f371c | 65 | LINK_FLAGS= /aa /c |
c740f496 GL |
66 | |
67 | !if "$(WXUSINGDLL)" == "1" | |
f6bcfd97 | 68 | DLL_FLAGS= -DWXUSINGDLL=1 -D_RTLDLL |
9f24e0b5 | 69 | WXLIB= $(WXLIBDIR)\wx233.lib |
c740f496 GL |
70 | !else |
71 | DLL_FLAGS= | |
72 | WXLIB= $(WXLIBDIR)\wx32.lib | |
73 | !endif | |
74 | ||
75 | !endif | |
76 | ||
77 | !if "$(WXBUILDDLL)" == "1" | |
741f371c | 78 | LINK_FLAGS= /Tpd /c $(EXTRALINKFLAGS) |
c740f496 GL |
79 | !endif |
80 | ||
dbda9e86 | 81 | CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG) |
c740f496 | 82 | |
2bda0e17 KB |
83 | DUMMY=dummy |
84 | ||
85 | SRCSUFF = cpp | |
86 | OBJSUFF = obj | |
87 | ||
c09f2879 VZ |
88 | WAITFLAG = /w |
89 | ||
2bda0e17 KB |
90 | .$(SRCSUFF).obj: |
91 | bcc32 $(CPPFLAGS) -c {$< } | |
92 | ||
93 | .c.obj: | |
94 | bcc32 $(CPPFLAGS) -P- -c {$< } |