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