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