5 # Copyright: (c) 1993, AIAI, University of Edinburgh
9 # Makefile : Builds Tex2RTF on Windows Windows 95/NT
11 !include <..\..\..\src\makevc.env>
13 TEX2RTFDIR = $(WXDIR)\utils\tex2rtf
14 TEX2RTFINC = $(TEX2RTFDIR)\src
17 LOCALDOCDIR=$(WXDIR)\utils\tex2rtf\docs
18 THISDIR=$(TEX2RTFDIR)\src
20 OBJECTS = tex2rtf.obj tex2any.obj texutils.obj rtfutils.obj xlputils.obj htmlutil.obj readshg.obj table.obj
29 $(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res
33 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
37 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
38 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
40 tex2any.obj: tex2any.$(SRCSUFF) tex2any.h
42 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
45 texutils.obj: texutils.$(SRCSUFF) tex2any.h
47 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
50 tex2rtf.obj: tex2rtf.$(SRCSUFF) bmputils.h tex2rtf.h tex2any.h
52 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
55 rtfutils.obj: rtfutils.$(SRCSUFF) tex2rtf.h bmputils.h tex2any.h readshg.h table.h
57 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
60 table.obj: table.$(SRCSUFF) table.h
62 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
65 readshg.obj: readshg.$(SRCSUFF) readshg.h
67 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
70 xlputils.obj: xlputils.$(SRCSUFF) tex2rtf.h rtfutils.h tex2any.h
72 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
75 htmlutil.obj: htmlutil.$(SRCSUFF) tex2rtf.h tex2any.h table.h
77 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
89 erase *.exe *.obj *.pch *.res
91 DOCSOURCES=$(LOCALDOCDIR)\tex2rtf.tex
93 html: $(DOCDIR)\html\tex2rtf\t2rtf.htm
94 hlp: $(DOCDIR)\winhelp\tex2rtf.hlp
95 pdfrtf: $(DOCDIR)\pdf\tex2rtf.rtf
96 ps: $(WXDIR)\docs\ps\tex2rtf.ps
98 $(DOCDIR)\winhelp\tex2rtf.hlp: $(LOCALDOCDIR)\tex2rtf.rtf $(LOCALDOCDIR)\tex2rtf.hpj
102 copy tex2rtf.hlp $(DOCDIR)\winhelp\tex2rtf.hlp
103 copy tex2rtf.cnt $(DOCDIR)\winhelp\tex2rtf.cnt
106 $(LOCALDOCDIR)\tex2rtf.rtf: $(DOCSOURCES)
108 -start /w tex2rtf $(LOCALDOCDIR)\tex2rtf.tex $(LOCALDOCDIR)\tex2rtf.rtf -twice -winhelp
111 $(DOCDIR)\pdf\tex2rtf.rtf: $(DOCSOURCES)
113 -copy *.wmf $(DOCDIR)\pdf
114 -copy *.bmp $(DOCDIR)\pdf
115 -start /w tex2rtf $(LOCALDOCDIR)\tex2rtf.tex $(DOCDIR)\pdf\tex2rtf.rtf -twice -rtf
118 $(DOCDIR)\html\tex2rtf\t2rtf.htm: $(DOCSOURCES)
120 -mkdir $(DOCDIR)\html\tex2rtf
121 -start /w tex2rtf $(LOCALDOCDIR)\tex2rtf.tex $(DOCDIR)\html\tex2rtf\t2rtf.htm -twice -html
122 -erase $(DOCDIR)\html\tex2rtf\*.con
123 -erase $(DOCDIR)\html\tex2rtf\*.ref
126 $(LOCALDOCDIR)\tex2rtf.dvi: $(DOCSOURCES)
136 $(WXDIR)\docs\ps\tex2rtf.ps: $(LOCALDOCDIR)\tex2rtf.dvi
138 -dvips32 -o tex2rtf.ps tex2rtf
139 copy tex2rtf.ps $(WXDIR)\docs\ps\tex2rtf.ps