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