]> git.saurik.com Git - wxWidgets.git/blob - utils/tex2rtf/src/makefile.vc
added APPEXTRADEFS var so things like tex2rtf can pass their own flags to the make...
[wxWidgets.git] / utils / tex2rtf / src / makefile.vc
1 #
2 # File: makefile.nt
3 # Author: Julian Smart
4 # Created: 1993
5 # Copyright: (c) 1993, AIAI, University of Edinburgh
6 #
7 # "%W% %G%"
8 #
9 # Makefile : Builds Tex2RTF on Windows Windows 95/NT
10 #
11 !include <..\..\..\src\makevc.env>
12
13 TEX2RTFDIR = $(WXDIR)\utils\tex2rtf
14 TEX2RTFINC = $(TEX2RTFDIR)\src
15 PROGRAM=tex2rtf
16 DOCDIR=$(WXDIR)\docs
17 LOCALDOCDIR=$(WXDIR)\utils\tex2rtf\docs
18 THISDIR=$(TEX2RTFDIR)\src
19
20 OBJECTS = tex2rtf.obj tex2any.obj texutils.obj rtfutils.obj xlputils.obj htmlutil.obj readshg.obj table.obj
21
22 all: tex2rtf.exe
23
24 wx:
25 cd $(WXDIR)\src\msw
26 nmake -f makefile.vc
27 cd $(TEX2RTFDIR)\src
28
29 $(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res
30 $(link) @<<
31 -out:$(PROGRAM).exe
32 $(LINKFLAGS)
33 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
34 $(LIBS)
35 <<
36
37 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
38 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
39
40 tex2any.obj: tex2any.$(SRCSUFF) tex2any.h
41 cl @<<
42 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
43 <<
44
45 texutils.obj: texutils.$(SRCSUFF) tex2any.h
46 cl @<<
47 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
48 <<
49
50 tex2rtf.obj: tex2rtf.$(SRCSUFF) bmputils.h tex2rtf.h tex2any.h
51 cl @<<
52 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
53 <<
54
55 rtfutils.obj: rtfutils.$(SRCSUFF) tex2rtf.h bmputils.h tex2any.h readshg.h table.h
56 cl @<<
57 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
58 <<
59
60 table.obj: table.$(SRCSUFF) table.h
61 cl @<<
62 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
63 <<
64
65 readshg.obj: readshg.$(SRCSUFF) readshg.h
66 cl @<<
67 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
68 <<
69
70 xlputils.obj: xlputils.$(SRCSUFF) tex2rtf.h rtfutils.h tex2any.h
71 cl @<<
72 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
73 <<
74
75 htmlutil.obj: htmlutil.$(SRCSUFF) tex2rtf.h tex2any.h table.h
76 cl @<<
77 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
78 <<
79
80 clean:
81 -erase *.obj
82 -erase *.sbr
83 -erase *.exe
84 -erase *.res
85 -erase *.map
86 -erase *.pdb
87
88 cleanall:
89 erase *.exe *.obj *.pch *.res
90
91 DOCSOURCES=$(LOCALDOCDIR)\tex2rtf.tex
92
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
97
98 $(DOCDIR)\winhelp\tex2rtf.hlp: $(LOCALDOCDIR)\tex2rtf.rtf $(LOCALDOCDIR)\tex2rtf.hpj
99 cd $(LOCALDOCDIR)
100 -erase tex2rtf.ph
101 hc tex2rtf
102 copy tex2rtf.hlp $(DOCDIR)\winhelp\tex2rtf.hlp
103 copy tex2rtf.cnt $(DOCDIR)\winhelp\tex2rtf.cnt
104 cd $(THISDIR)
105
106 $(LOCALDOCDIR)\tex2rtf.rtf: $(DOCSOURCES)
107 cd $(LOCALDOCDIR)
108 -start /w tex2rtf $(LOCALDOCDIR)\tex2rtf.tex $(LOCALDOCDIR)\tex2rtf.rtf -twice -winhelp
109 cd $(THISDIR)
110
111 $(DOCDIR)\pdf\tex2rtf.rtf: $(DOCSOURCES)
112 cd $(LOCALDOCDIR)
113 -copy *.wmf $(DOCDIR)\pdf
114 -copy *.bmp $(DOCDIR)\pdf
115 -start /w tex2rtf $(LOCALDOCDIR)\tex2rtf.tex $(DOCDIR)\pdf\tex2rtf.rtf -twice -rtf
116 cd $(THISDIR)
117
118 $(DOCDIR)\html\tex2rtf\t2rtf.htm: $(DOCSOURCES)
119 cd $(LOCALDOCDIR)
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
124 cd $(THISDIR)
125
126 $(LOCALDOCDIR)\tex2rtf.dvi: $(DOCSOURCES)
127 cd $(LOCALDOCDIR)
128 -latex tex2rtf
129 -latex tex2rtf
130 -makeindx tex2rtf
131 -bibtex tex2rtf
132 -latex tex2rtf
133 -latex tex2rtf
134 cd $(THISDIR)
135
136 $(WXDIR)\docs\ps\tex2rtf.ps: $(LOCALDOCDIR)\tex2rtf.dvi
137 cd $(LOCALDOCDIR)
138 -dvips32 -o tex2rtf.ps tex2rtf
139 copy tex2rtf.ps $(WXDIR)\docs\ps\tex2rtf.ps
140 cd $(THISDIR)
141
142