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