]> git.saurik.com Git - wxWidgets.git/blame - utils/dialoged/src/makefile.bcc
several fixes
[wxWidgets.git] / utils / dialoged / src / 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 Dialog Editor (Borland, 16-bit)
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!ifndef FINAL
21FINAL=0
22!endif
23
24WXDIR = $(WXWIN)
25!include $(WXDIR)\src\makebcc.env
26
27THISDIR = $(WXDIR)\utils\dialoged\src
28WXLIB = $(WXDIR)\lib\wx.lib
29WXPROPDIR = $(WXDIR)\utils\wxprop
30WXPROPINC = $(WXPROPDIR)\src
31WXPROPLIB = $(WXPROPDIR)\lib\wxprop.lib
32
33LIBS=$(WXLIB) $(WXPROPLIB) mathwl cwl import
34INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
35CFG=$(WXDIR)\src\wxwin.cfg
36INCFILE = includes.cfg
37
38
39!if "$(FINAL)" == "0"
40LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
41OPT = -Od
42DEBUG_FLAGS= -v
43!else
44LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
45OPT = -O2
46DEBUG_FLAGS =
47!endif
48CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) @$(INCFILE)
49
50OBJECTS = wx_resed.obj wx_rdlg.obj wx_reswr.obj wx_repal.obj wx_rprop.obj dialoged.obj
51
52all: dialoged.exe
53
54dialoged.exe: $(INCFILE) $(WXLIB) $(OBJECTS) dialoged.def dialoged.res
55 tlink $(LINKFLAGS) @&&!
56c0wl.obj $(OBJECTS)
57dialoged
58nul
59$(LIBS) $(WXPROPLIB)
60dialoged.def
61!
62 rc -30 -K dialoged.res
63
64.$(SRCSUFF).obj:
65 bcc $(CPPFLAGS) -c {$< }
66
67dialoged.obj: dialoged.$(SRCSUFF) wx_resed.h
68wx_resed.obj: wx_resed.$(SRCSUFF) wx_resed.h wx_rprop.h
69wx_resed.obj: wx_rdlg.$(SRCSUFF) wx_resed.h wx_rprop.h
70wx_rprop.obj: wx_rprop.$(SRCSUFF) wx_resed.h wx_rprop.h
71wx_reswr.obj: wx_reswr.$(SRCSUFF) wx_resed.h
72wx_repal.obj: wx_repal.$(SRCSUFF) wx_repal.h
73
74dialoged.res : dialoged.rc $(WXDIR)\include\msw\wx.rc
75 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa dialoged
76
77$(INCFILE): $(MAKEFILENAME)
78 copy &&!
79-I..\..\wxprop\src
80! $(INCFILE)
81
82clean:
83 -erase *.obj
84 -erase *.exe
85 -erase *.res
86 -erase *.map
87 -erase *.rws