]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/tex2rtf/src/makengui.nt
Compile fix.
[wxWidgets.git] / utils / tex2rtf / src / makengui.nt
... / ...
CommitLineData
1# From: Juan Altmayer Pizzorno[SMTP:juan@vms.gmd.de]
2# Sent: 31 May 1996 10:11
3# To: J.Smart@ed.ac.uk
4# Subject: Changes to Tex2RTF
5#
6# Hello,
7#
8# Recently I've been looking for a way to create and maintain documentation on
9# multiple platforms out of a single source -- specifically, something that
10# prints nicely and can be converted to WinHelp and HTML. I liked the approach
11# of Tex2RTF, so I set off to give it a try... I found out it would crash
12# when submitted to a certain LaTeX file I created. I wanted to find out why,
13# so I went on and worked on compiling on my PC: Windows NT 4.0 beta, Visual
14# C++ 4.1a. Since all I was interested on was the convertion utility, I tried
15# to make it work without a GUI. It didn't compile immediately, but after a
16# few small changes it now works like a charm. Unfortunately it doesn't crash
17# anymore, so I can't tell why it used to... Anyway, I wanted to contribute
18# the changes back: I'm appending two files to this message, the first a
19# description of the changes, and the second a quick-and-dirty makefile that
20# doesn't require wxWindows to run. Please do write to me if you have any
21# questions or anything.
22#
23# Last but not least, it's great that you took the time and wrote Tex2RTF!!
24#
25# Quick-and-dirty makefile for building Tex2RTF without the wx
26# libraries on a Windows NT machine. If you want to use it for
27# "real", please update the dependancies between object and include
28# files. Created for Windows NT 4.0 and Visual C++ 4.1.
29#
30# Juan Altmayer Pizzorno, May 1996
31#
32
33syslibs=kernel32.lib advapi32.lib
34
35cxxflags=/nologo /MD /W0 /O2 /Zi /D "WIN32" /D "_WIN32" /D "_DEBUG" /c
36linkflags=$(syslibs) /out:$@ /nologo /debug
37
38!if "$(PROCESSOR_ARCHITECTURE)" == "x86"
39cxxflags=$(cxxflags) /G5 # optimize for pentium
40!endif
41
42cxx=cl
43link=link
44remove=del
45cxxflags=$(cxxflags) /I wxwin /D wx_msw /D WINVER=0x0400 /D WIN95=0
46cxxflags=$(cxxflags) /D "NO_GUI"
47
48objects=tex2any.obj texutils.obj tex2rtf.obj rtfutils.obj table.obj readshg.obj xlputils.obj htmlutil.obj
49objects=$(objects) wb_hash.obj wb_list.obj wb_obj.obj wb_utils.obj
50
51all : tex2rtf.exe
52
53clean :
54 -$(remove) *.obj
55
56cleanall : clean
57 -$(remove) *.exe *.pdb *.ilk
58
59tex2rtf.exe : $(objects)
60 $(link) $(linkflags) $(objects)
61
62tex2any.obj : tex2any.cpp tex2any.h
63 $(cxx) $(cxxflags) tex2any.cpp
64
65texutils.obj : texutils.cpp tex2any.h
66 $(cxx) $(cxxflags) texutils.cpp
67
68tex2rtf.obj : tex2rtf.cpp bmputils.h tex2rtf.h tex2any.h
69 $(cxx) $(cxxflags) tex2rtf.cpp
70
71rtfutils.obj : rtfutils.cpp tex2rtf.h bmputils.h tex2any.h readshg.h table.h
72 $(cxx) $(cxxflags) rtfutils.cpp
73
74table.obj : table.cpp table.h
75 $(cxx) $(cxxflags) table.cpp
76
77readshg.obj : readshg.cpp readshg.h
78 $(cxx) $(cxxflags) readshg.cpp
79
80xlputils.obj : xlputils.cpp tex2rtf.h rtfutils.h tex2any.h
81 $(cxx) $(cxxflags) xlputils.cpp
82
83htmlutil.obj : htmlutil.cpp tex2rtf.h tex2any.h table.h
84 $(cxx) $(cxxflags) htmlutil.cpp
85
86wb_hash.obj : wxwin\wb_hash.cpp
87 $(cxx) $(cxxflags) wxwin\wb_hash.cpp
88
89wb_list.obj : wxwin\wb_list.cpp
90 $(cxx) $(cxxflags) wxwin\wb_list.cpp
91
92wb_obj.obj : wxwin\wb_obj.cpp
93 $(cxx) $(cxxflags) wxwin\wb_obj.cpp
94
95wb_utils.obj : wxwin\wb_utils.cpp
96 $(cxx) $(cxxflags) wxwin\wb_utils.cpp
97
98