]> git.saurik.com Git - wxWidgets.git/blob - utils/dialoged/src/makefile.bcc
Fixed various wxMSW compile problems that came down the telephone line...
[wxWidgets.git] / utils / dialoged / src / 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 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
21 FINAL=0
22 !endif
23
24 WXDIR = $(WXWIN)
25 !include $(WXDIR)\src\makebcc.env
26
27 THISDIR = $(WXDIR)\utils\dialoged\src
28 WXLIB = $(WXDIR)\lib\wx.lib
29 WXPROPDIR = $(WXDIR)\utils\wxprop
30 WXPROPINC = $(WXPROPDIR)\src
31 WXPROPLIB = $(WXPROPDIR)\lib\wxprop.lib
32
33 LIBS=$(WXLIB) $(WXPROPLIB) mathwl cwl import
34 INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
35 CFG=$(WXDIR)\src\wxwin.cfg
36 INCFILE = includes.cfg
37
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) @$(CFG) @$(INCFILE)
49
50 OBJECTS = wx_resed.obj wx_rdlg.obj wx_reswr.obj wx_repal.obj wx_rprop.obj dialoged.obj
51
52 all: dialoged.exe
53
54 dialoged.exe: $(INCFILE) $(WXLIB) $(OBJECTS) dialoged.def dialoged.res
55 tlink $(LINKFLAGS) @&&!
56 c0wl.obj $(OBJECTS)
57 dialoged
58 nul
59 $(LIBS) $(WXPROPLIB)
60 dialoged.def
61 !
62 rc -30 -K dialoged.res
63
64 .$(SRCSUFF).obj:
65 bcc $(CPPFLAGS) -c {$< }
66
67 dialoged.obj: dialoged.$(SRCSUFF) wx_resed.h
68 wx_resed.obj: wx_resed.$(SRCSUFF) wx_resed.h wx_rprop.h
69 wx_resed.obj: wx_rdlg.$(SRCSUFF) wx_resed.h wx_rprop.h
70 wx_rprop.obj: wx_rprop.$(SRCSUFF) wx_resed.h wx_rprop.h
71 wx_reswr.obj: wx_reswr.$(SRCSUFF) wx_resed.h
72 wx_repal.obj: wx_repal.$(SRCSUFF) wx_repal.h
73
74 dialoged.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
82 clean:
83 -erase *.obj
84 -erase *.exe
85 -erase *.res
86 -erase *.map
87 -erase *.rws