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