]>
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 | 13 | !if "$(FINAL)" == "0" |
dbda9e86 | 14 | LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib $(EXTRALINKFLAGS) |
2bda0e17 | 15 | OPT = -Od |
62448488 | 16 | DEBUG_FLAGS= -v -D__WXDEBUG__ |
2bda0e17 | 17 | !else |
dbda9e86 | 18 | LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib $(EXTRALINKFLAGS) |
2bda0e17 KB |
19 | OPT = -O2 |
20 | DEBUG_FLAGS = | |
21 | !endif | |
2bda0e17 | 22 | |
dbda9e86 | 23 | CPPFLAGS=$(DEBUG_FLAGS) $(OPT) $(EXTRACPPFLAGS) @$(CFG) |
62448488 | 24 | WXLIB= $(WXLIBDIR)\wx.lib |
2bda0e17 KB |
25 | |
26 | SRCSUFF = cpp | |
27 | OBJSUFF = obj | |
28 | ||
29 | .$(SRCSUFF).obj: | |
30 | bcc $(CPPFLAGS) -c {$< } | |
62448488 JS |
31 | |
32 | .c.obj: | |
33 | bcc $(CPPFLAGS) -DUSE_DEFINE -P- -c {$< } |