]> git.saurik.com Git - wxWidgets.git/blob - samples/layout/makefile.bcc
New configure
[wxWidgets.git] / samples / layout / makefile.bcc
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 layout 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\layout
24 WXLIB = $(WXDIR)\lib\wx.lib
25
26 LIBS=$(WXLIB) mathwl cwl import
27 INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
28 CFG=$(WXDIR)\src\wxwin.cfg
29
30 !ifndef FINAL
31 FINAL=0
32 !endif
33
34 !if "$(FINAL)" == "0"
35 LINKFLAGS=/v/Vt /Twe /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 HEADERS = layout.h
46 SOURCES = layout.$(SRCSUFF)
47 OBJECTS = layout.obj
48
49 layout: layout.exe
50
51 all: layout.exe
52
53 layout.exe: $(WXLIB) layout.obj layout.def layout.res
54 tlink $(LINKFLAGS) @&&!
55 c0wl.obj layout.obj
56 layout
57 nul
58 $(LIBS)
59 layout.def
60 !
61 rc -30 -K layout.res
62
63 .$(SRCSUFF).obj:
64 bcc $(CPPFLAGS) -c {$< }
65
66 layout.obj: layout.$(SRCSUFF)
67
68 layout.res : layout.rc $(WXDIR)\include\msw\wx.rc
69 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa layout
70
71 clean:
72 -erase *.obj
73 -erase *.exe
74 -erase *.res
75 -erase *.map
76 -erase *.rws