]> git.saurik.com Git - wxWidgets.git/blame - utils/wxtree/src/makefile.sc
Cured BC++ makefile bug; wxGrid fix; updated Motif install.txt
[wxWidgets.git] / utils / wxtree / src / makefile.sc
CommitLineData
4414cc1d
JS
1# Symantec C++ makefile for the tree library
2# NOTE that peripheral libraries are now dealt in main wxWindows makefile.
3
4WXDIR = $(WXWIN)
5
6WXLIB = $(WXDIR)\lib\wx.lib
7INCDIR = $(WXDIR)\include
8MSWINC = $(INCDIR)\msw
9BASEINC = $(INCDIR)\base
10
11include $(WXDIR)\src\makesc.env
12
13TREEDIR = $(WXDIR)\utils\wxtree
14TREEINC = $(TREEDIR)\src
15TREELIB = $(TREEDIR)\lib\wxtree.lib
16
17DOCDIR = $(TREEDIR)\docs
18SRCDIR = $(TREEDIR)\src
19
20# Default is to output RTF for WinHelp
21WINHELP=-winhelp
22
23INCLUDE=$(BASEINC);$(MSWINC)
24
25LIBS=$(TREELIB) $(WXLIB) libw.lib commdlg.lib shell.lib
26
27.$(SRCSUFF).obj:
28 *$(CC) -c $(CFLAGS) -I$(INCLUDE) $<
29
30.rc.res:
31 *$(RC) -r -I$(INCLUDE) $<
32
33$(TREELIB): wxtree.obj
34 -del $(TREELIB)
35 *lib $(TREELIB) y wxtree.obj, nul;
36
37wxtree.obj: wxtree.h wxtree.$(SRCSUFF)
38
39test.exe: test.obj test.def test.res
40 *$(CC) $(LDFLAGS) -o$@ test.obj test.def $(LIBS)
41 *$(RC) -k test.res
42
43test.obj: test.h wxtree.h test.$(SRCSUFF)
44
45# Making documents
46docs: hlp xlp
47hlp: $(DOCDIR)/wxtree.hlp
48xlp: $(DOCDIR)/wxtree.xlp
49rtf: $(DOCDIR)/wxtree.rtf
50
51$(DOCDIR)/wxtree.hlp: $(DOCDIR)/wxtree.rtf $(DOCDIR)/wxtree.hpj
52 cd $(DOCDIR)
53 -erase wxtree.ph
54 hc wxtree
55 cd $(SRCDIR)
56
57$(DOCDIR)/wxtree.rtf: $(DOCDIR)/manual.tex $(DOCDIR)/classes.tex
58 cd $(DOCDIR)
59 -wx tex2rtf $(DOCDIR)\manual.tex $(DOCDIR)\wxtree.rtf -twice -winhelp
60 cd $(SRCDIR)
61
62$(DOCDIR)/wxtree.xlp: $(DOCDIR)/manual.tex $(DOCDIR)/classes.tex
63 cd $(DOCDIR)
64 -wx tex2rtf $(DOCDIR)\manual.tex $(DOCDIR)\wxtree.xlp -twice -xlp
65 cd $(SRCDIR)
66
67clean:
68 -del *.obj
69 -del *.exe
70 -del *.res
71 -del *.map
72 -del *.rws
73 -del $(TREELIB)