]>
Commit | Line | Data |
---|---|---|
14d1ccd8 JS |
1 | # |
2 | # File: makefile.bcc | |
3 | # Author: Julian Smart | |
4 | # Created: 1993 | |
5 | # Updated: | |
6 | # Copyright: (c) 1993, AIAI, University of Edinburgh | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile : Builds wxButtonbar sample | |
11 | ||
12 | !if "$(BCCDIR)" == "" | |
13 | !error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4 | |
14 | !endif | |
15 | ||
16 | !if "$(WXWIN)" == "" | |
17 | !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx | |
18 | !endif | |
19 | ||
20 | # Change WXDIR to wherever wxWindows is found | |
21 | WXDIR = $(WXWIN) | |
22 | !include $(WXDIR)\src\makebcc.env | |
23 | ||
24 | WXLIB = $(WXDIR)\lib\wx.lib | |
25 | WXINC = $(WXDIR)\include | |
26 | CFG=$(WXDIR)\src\wxwin.cfg | |
27 | ||
28 | BUTTNBARDIR = $(WXDIR)\samples\toolbar | |
29 | THISDIR = $(BUTTNBARDIR) | |
30 | ||
31 | INC= | |
32 | ||
33 | LIBS=$(WXLIB) mathwl cwl import | |
34 | ||
35 | !ifndef FINAL | |
36 | FINAL=0 | |
37 | !endif | |
38 | ||
39 | !if "$(FINAL)" == "0" | |
40 | LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib | |
41 | OPT = -Od | |
42 | DEBUG_FLAGS= -v | |
43 | !else | |
44 | LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib | |
45 | OPT = -O2 | |
46 | DEBUG_FLAGS= | |
47 | !endif | |
48 | CPPFLAGS=$(DEBUG_FLAGS) $(OPT) $(INC) @$(CFG) | |
49 | CFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) | |
50 | ||
51 | OBJECTS = test.obj | |
52 | ||
53 | all: test.exe | |
54 | ||
55 | .$(SRCSUFF).obj: | |
56 | bcc $(CPPFLAGS) -c {$< } | |
57 | ||
58 | test.res : test.rc $(WXDIR)\include\msw\wx.rc | |
59 | rc /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa -r test | |
60 | ||
61 | test.exe: test.obj test.def test.res | |
62 | tlink $(LINKFLAGS) @&&! | |
63 | c0wl.obj test.obj | |
64 | test | |
65 | nul | |
66 | $(LIBS) | |
67 | test.def | |
68 | ! | |
69 | rc -K test.res | |
70 | ||
71 | clean: | |
72 | -erase *.obj | |
73 | -erase *.exe | |
74 | ||
75 |