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