]> git.saurik.com Git - wxWidgets.git/blob - utils/wxtree/src/makefile.sc
Cleaned up paint DC cache in ~wxPaintDC to avoid spurious memory warning
[wxWidgets.git] / utils / wxtree / src / makefile.sc
1 # Symantec C++ makefile for the tree library
2 # NOTE that peripheral libraries are now dealt in main wxWindows makefile.
3
4 WXDIR = $(WXWIN)
5
6 WXLIB = $(WXDIR)\lib\wx.lib
7 INCDIR = $(WXDIR)\include
8 MSWINC = $(INCDIR)\msw
9 BASEINC = $(INCDIR)\base
10
11 include $(WXDIR)\src\makesc.env
12
13 TREEDIR = $(WXDIR)\utils\wxtree
14 TREEINC = $(TREEDIR)\src
15 TREELIB = $(TREEDIR)\lib\wxtree.lib
16
17 DOCDIR = $(TREEDIR)\docs
18 SRCDIR = $(TREEDIR)\src
19
20 # Default is to output RTF for WinHelp
21 WINHELP=-winhelp
22
23 INCLUDE=$(BASEINC);$(MSWINC)
24
25 LIBS=$(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
37 wxtree.obj: wxtree.h wxtree.$(SRCSUFF)
38
39 test.exe: test.obj test.def test.res
40 *$(CC) $(LDFLAGS) -o$@ test.obj test.def $(LIBS)
41 *$(RC) -k test.res
42
43 test.obj: test.h wxtree.h test.$(SRCSUFF)
44
45 # Making documents
46 docs: hlp xlp
47 hlp: $(DOCDIR)/wxtree.hlp
48 xlp: $(DOCDIR)/wxtree.xlp
49 rtf: $(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
67 clean:
68 -del *.obj
69 -del *.exe
70 -del *.res
71 -del *.map
72 -del *.rws
73 -del $(TREELIB)