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