]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | # Common settings for Borland 16-bit compilation (makefile.bcc files) |
2 | ||
3 | WXDIR = $(WXWIN) | |
4 | ||
62448488 JS |
5 | CFG = $(WXDIR)\src\msw\wxwin.cfg |
6 | WXLIBDIR = $(WXDIR)\lib | |
7 | WXINC = $(WXDIR)\include | |
2bda0e17 KB |
8 | |
9 | !ifndef FINAL | |
10 | FINAL=0 | |
11 | !endif | |
12 | ||
2bda0e17 KB |
13 | !if "$(FINAL)" == "0" |
14 | LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib | |
15 | OPT = -Od | |
62448488 | 16 | DEBUG_FLAGS= -v -D__WXDEBUG__ |
2bda0e17 KB |
17 | !else |
18 | LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib | |
19 | OPT = -O2 | |
20 | DEBUG_FLAGS = | |
21 | !endif | |
22 | CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) | |
23 | ||
24 | CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) | |
25 | ||
62448488 | 26 | WXLIB= $(WXLIBDIR)\wx.lib |
2bda0e17 KB |
27 | |
28 | SRCSUFF = cpp | |
29 | OBJSUFF = obj | |
30 | ||
31 | .$(SRCSUFF).obj: | |
32 | bcc $(CPPFLAGS) -c {$< } | |
62448488 JS |
33 | |
34 | .c.obj: | |
35 | bcc $(CPPFLAGS) -DUSE_DEFINE -P- -c {$< } |