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