]>
Commit | Line | Data |
---|---|---|
457814b5 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 dialogs example (DOS). | |
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 | WXDIR = $(WXWIN) | |
21 | !include $(WXDIR)\src\makebcc.env | |
22 | ||
23 | THISDIR = $(WXDIR)\samples\dialogs | |
24 | WXLIB = $(WXDIR)\lib\wx.lib | |
25 | LIBS=$(WXLIB) mathwl cwl import | |
26 | INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw | |
27 | CFG=$(WXDIR)\src\wxwin.cfg | |
28 | ||
29 | !ifndef FINAL | |
30 | FINAL=0 | |
31 | !endif | |
32 | ||
33 | !if "$(FINAL)" == "0" | |
34 | #LINKFLAGS=/v /Vt /Twe /s /L$(WXDIR)\lib;$(BCCDIR)\lib | |
35 | LINKFLAGS=/Vt /Twe /s /L$(WXDIR)\lib;$(BCCDIR)\lib | |
36 | OPT = -Od | |
37 | DEBUG_FLAGS= -v | |
38 | !else | |
39 | LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib | |
40 | OPT = -O2 | |
41 | DEBUG_FLAGS= | |
42 | !endif | |
43 | CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) | |
44 | ||
45 | OBJECTS = dialogs.obj | |
46 | ||
47 | dialogs: dialogs.exe | |
48 | ||
49 | all: dialogs.exe | |
50 | ||
51 | dialogs.exe: $(WXLIB) dialogs.obj dialogs.def dialogs.res | |
52 | tlink $(LINKFLAGS) @&&! | |
53 | c0wl.obj dialogs.obj | |
54 | dialogs | |
55 | nul | |
56 | $(LIBS) | |
57 | dialogs.def | |
58 | ! | |
59 | rc -31 -K dialogs.res | |
60 | ||
61 | .$(SRCSUFF).obj: | |
62 | bcc $(CPPFLAGS) -c {$< } | |
63 | ||
64 | dialogs.obj: dialogs.$(SRCSUFF) | |
65 | ||
66 | dialogs.res : dialogs.rc $(WXDIR)\include\msw\wx.rc | |
67 | rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa dialogs | |
68 | ||
69 | clean: | |
70 | -erase *.obj | |
71 | -erase *.exe | |
72 | -erase *.res | |
73 | -erase *.map | |
74 | -erase *.rws |