]> git.saurik.com Git - wxWidgets.git/blame - utils/wxprop/src/makefile.bcc
Fixed various wxMSW compile problems that came down the telephone line...
[wxWidgets.git] / utils / wxprop / 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 wxProperty library
11
12# Change WXDIR to wherever wxWindows is found
13WXDIR = $(WXWIN)
14!include $(WXDIR)\src\makebcc.env
15
16WXLIB = $(WXDIR)\lib\wx.lib
17WXINC = $(WXDIR)\include
18CFG = $(WXWIN)\src\wxwin.cfg
19BCCDIR = d:\bc4
20
21WXPROPDIR = $(WXDIR)\utils\wxprop
22WXPROPINC = $(WXPROPDIR)\src
23WXPROPLIB = $(WXPROPDIR)\lib\wxprop.lib
24
25FAFALIB = $(WXDIR)\contrib\fafa\fafa.lib
26ITSYLIB = $(WXDIR)\contrib\itsybits\itsy.lib
27
28DOCDIR = $(WXPROPDIR)\docs
29DOCUTILSDIR = $(WXDIR)\utils\tex2rtf\src
30THISDIR = $(WXPROPDIR)\src
31
32# Default is to output RTF for WinHelp
33!ifndef WINHELP
34WINHELP=-winhelp
35!endif
36
37INC=/I$(WXDIR)\include\base /I$(WXDIR)\include\msw
38
39LIBS=$(WXLIB) $(WXPROPLIB) mathwl cwl import
40
41!if "$(FINAL)" == "0"
42LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
43OPT = -Od
44DEBUG_FLAGS= -v
45!else
46LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
47OPT = -O2
48DEBUG_FLAGS=
49!endif
50CFLAGS=$(DEBUG_FLAGS) $(OPT) /DUSE_DEFINE @$(CFG)
51CPPFLAGS=$(DEBUG_FLAGS) $(OPT) /DUSE_DEFINE @$(CFG)
52
53OBJECTS = wx_prop.obj wx_plist.obj wx_pform.obj
54
55all: $(WXPROPLIB) # test.exe
56
57.$(SRCSUFF).obj:
58 bcc $(CPPFLAGS) -c {$< }
59.c.obj:
60 bcc $(CPPFLAGS) -P- -c {$< }
61
62$(WXPROPLIB): $(OBJECTS)
63 erase $(WXPROPLIB)
64 tlib /P128 @&&!
65$(WXPROPLIB) &
66+$(OBJECTS:.obj =.obj +)
67!
68
69test.obj: test.h wx_prop.h test.$(SRCSUFF)
70
71wx_prop.obj: wx_prop.h wx_prop.$(SRCSUFF)
72
73wx_plist.obj: wx_prop.h wx_plist.h wx_plist.$(SRCSUFF)
74
75wx_pform.obj: wx_prop.h wx_pform.h wx_pform.$(SRCSUFF)
76
77test.res : test.rc $(WXDIR)\include\msw\wx.rc $(WXPROPLIB)
78 rc /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa -r test
79
80test.exe: test.obj test.def test.res $(WXPROPLIB)
81 tlink $(LINKFLAGS) @&&!
82c0wl.obj test.obj
83test
84nul
85$(LIBS)
86test.def
87!
88 rc -K test.res
89
90clean:
91 -erase *.obj
92 -erase *.exe
93 -erase *.res
94 -erase ..\lib\*.lib
95