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