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