]>
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 | |
5 | WXLIBDIR = $(WXDIR)\lib | |
a46dafc8 | 6 | WXINC = $(WXDIR)\include;$(WXDIR)\src\iodbc |
34138703 | 7 | WIN95FLAG = -D__WIN95__ -D__WINDOWS__ |
2bda0e17 | 8 | |
c3b177ae JS |
9 | # This should be changed to ilink32 for C++Builder 4 and above |
10 | LINK=tlink32 | |
11 | ||
2bda0e17 KB |
12 | !ifndef FINAL |
13 | FINAL=0 | |
14 | !endif | |
15 | ||
2bda0e17 KB |
16 | !if "$(FINAL)" == "0" |
17 | OPT = -Od | |
b2aef89b | 18 | DEBUG_FLAGS= -v -DWXDEBUG=1 -D__WXDEBUG__ -DUSE_DEFINE |
2bda0e17 KB |
19 | !else |
20 | OPT = -O2 | |
40e1a9c0 | 21 | DEBUG_FLAGS = -DUSE_DEFINE |
2bda0e17 | 22 | !endif |
2bda0e17 | 23 | |
c740f496 GL |
24 | !ifndef DLL |
25 | DLL=0 | |
26 | !endif | |
27 | ||
28 | # Target WXMAKINGDLL WXUSINGDLL WXBUILDDLL | |
29 | # wxWin DLL 1 0 1 | |
30 | # wxWin STATIC 0 0 0 | |
31 | # App use wxWin DLL 0 1 0 | |
32 | # DLL use wxWin DLL 0 1 1 | |
33 | # DLL use wxWin STATIC 0 0 1 | |
34 | # | |
35 | ||
36 | !if "$(WXMAKINGDLL)" == "1" | |
37 | DLL_FLAGS= -DWXMAKINGDLL=1 -D_WINDLL | |
38 | WXLIB= $(WXLIBDIR)\wx200.lib | |
39 | ||
40 | !else | |
41 | ||
42 | LINK_FLAGS= /Tpe /ap /c | |
43 | ||
44 | !if "$(WXUSINGDLL)" == "1" | |
45 | DLL_FLAGS= -DWXUSINGDLL=1 | |
46 | WXLIB= $(WXLIBDIR)\wx200.lib | |
47 | !else | |
48 | DLL_FLAGS= | |
49 | WXLIB= $(WXLIBDIR)\wx32.lib | |
50 | !endif | |
51 | ||
52 | !endif | |
53 | ||
54 | !if "$(WXBUILDDLL)" == "1" | |
55 | DLL_FLAGS= $(DLL_FLAGS) -D_RTLDLL | |
dbda9e86 | 56 | LINK_FLAGS= /Tpd /ap /c $(EXTRALINKFLAGS) |
c740f496 GL |
57 | !endif |
58 | ||
dbda9e86 | 59 | CPPFLAGS=$(DLL_FLAGS) $(EXTRACPPFLAGS) @$(CFG) |
c740f496 | 60 | |
2bda0e17 KB |
61 | DUMMY=dummy |
62 | ||
63 | SRCSUFF = cpp | |
64 | OBJSUFF = obj | |
65 | ||
c09f2879 VZ |
66 | WAITFLAG = /w |
67 | ||
2bda0e17 KB |
68 | .$(SRCSUFF).obj: |
69 | bcc32 $(CPPFLAGS) -c {$< } | |
70 | ||
71 | .c.obj: | |
72 | bcc32 $(CPPFLAGS) -P- -c {$< } |