6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds wxTree class library (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
14 # Set WXDIR for your system
16 TREEDIR = $(WXDIR)\utils\wxtree
17 THISDIR = $(WXDIR)\utils\wxtree\src
18 EXTRALIBS=$(TREEDIR)\lib\wxtree.lib
20 LOCALDOCDIR=$(WXDIR)\utils\wxtree\docs
22 !include $(WXDIR)\src\ntwxwin.mak
27 PROGOBJECTS = $(PROGRAM).obj
28 LIBTARGET=$(TREEDIR)\lib\wxtree.lib
32 $(PROGRAM): $(PROGRAM).exe
36 nmake -f makefile.nt FINAL=$(FINAL)
41 nmake -f makefile.nt clean
44 $(LIBTARGET): $(OBJECTS)
52 $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(PROGOBJECTS) $(LIBTARGET) $(PROGRAM).res
56 $(DUMMYOBJ) $(PROGOBJECTS) $(PROGRAM).res
60 wxtree.obj: wxtree.h wxtree.$(SRCSUFF) $(DUMMYOBJ)
62 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
65 $(PROGRAM).obj: $(PROGRAM).h $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ)
67 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
70 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
71 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
83 DOCSOURCES=$(LOCALDOCDIR)\wxtree.tex $(LOCALDOCDIR)\classes.tex
85 html: $(DOCDIR)\html\wxtree\tree.htm
86 hlp: $(DOCDIR)\winhelp\wxtree.hlp
87 pdfrtf: $(DOCDIR)\pdf\wxtree.rtf
88 ps: $(WXDIR)\docs\ps\wxtree.ps
90 $(DOCDIR)\winhelp\wxtree.hlp: $(LOCALDOCDIR)\wxtree.rtf $(LOCALDOCDIR)\wxtree.hpj
94 move wxtree.hlp $(DOCDIR)\winhelp\wxtree.hlp
95 move wxtree.cnt $(DOCDIR)\winhelp\wxtree.cnt
98 $(LOCALDOCDIR)\wxtree.rtf: $(DOCSOURCES)
100 -start /w tex2rtf $(LOCALDOCDIR)\wxtree.tex $(LOCALDOCDIR)\wxtree.rtf -twice -winhelp
103 $(DOCDIR)\pdf\wxtree.rtf: $(DOCSOURCES)
105 -copy *.bmp $(DOCDIR)\pdf
106 -start /w tex2rtf $(LOCALDOCDIR)\wxtree.tex $(DOCDIR)\pdf\wxtree.rtf -twice -rtf
109 $(DOCDIR)\html\wxtree\tree.htm: $(DOCSOURCES)
111 -mkdir $(DOCDIR)\html\wxtree
112 -start /w tex2rtf $(LOCALDOCDIR)\wxtree.tex $(DOCDIR)\html\wxtree\tree.htm -twice -html
113 -erase $(DOCDIR)\html\wxtree\*.con
114 -erase $(DOCDIR)\html\wxtree\*.ref
117 $(LOCALDOCDIR)\wxtree.dvi: $(DOCSOURCES)
127 $(WXDIR)\docs\ps\wxtree.ps: $(LOCALDOCDIR)\wxtree.dvi
129 -dvips32 -o wxtree.ps wxtree
130 move wxtree.ps $(WXDIR)\docs\ps\wxtree.ps