README.DOS - enscript - GNU Enscript
 (HTM) git clone git://thinkerwim.org/enscript.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       README.DOS (1858B)
       ---
            1 
            2                 How to compile enscript for Windows NT
            3 
            4 This file documents how I managed to compile enscript to the
            5 Windows NT environment. In theory the instructions for Windows NT will be
            6 the same as for Windows '95, although I haven't tested it yet.
            7 
            8 I used  Visual C++ 5.0 (Visual Studio Edition) for the Intel Platform
            9 and Visual C++ 2.0 for the DEC Alpha Platform.
           10 
           11 The magic steps were:
           12 
           13 1) unpack the distribution
           14 
           15 2) copy `compat/config.dos' to the top level directory to the name
           16    `config.h':
           17 
           18         cp compat/config.dos config.h
           19 
           20 3) create a new `Console Application' project for enscript.exe
           21 
           22 4) add the following files to the project:
           23 
           24         afmlib\afm.c
           25         afmlib\afmparse.c
           26         afmlib\deffont.c
           27         afmlib\enc_hp8.c
           28         afmlib\enc_iso.c
           29         afmlib\enc_iso2.c
           30         afmlib\enc_iso3.c
           31         afmlib\enc_iso4.c
           32         afmlib\enc_iso5.c
           33         afmlib\enc_koi8.c
           34         afmlib\enc_mac.c
           35         afmlib\enc_pc.c
           36         afmlib\enc_vms.c
           37         afmlib\strhash.c
           38         compat\gethostname.c
           39         compat\getopt.c
           40         compat\getopt1.c
           41         compat\getpwd.c
           42         compat\getuid.c
           43         compat\xalloc.c
           44         src\main.c
           45         src\prt_dos.c
           46         src\psgen.c
           47         src\util.c
           48 
           49 5) define following additional preprocessor symbols:
           50 
           51         HAVE_CONFIG_H
           52 
           53 6) add following additional include directories:
           54 
           55         <top-level-directory>
           56         <top-level-directory>\compat
           57         <top-level-directory>\afmlib
           58         <top-level-directory>\src
           59 
           60 7) build enscript.exe
           61 
           62 8) create a new 'Console Application' project for states.exe
           63 
           64 9) add the following files to the project:
           65 
           66     afmlib\strhash.c
           67     compat\alloca.c
           68     compat\getopt.c
           69     compat\getopt1.c
           70     compat\regex.c
           71     compat\xalloc.c
           72     states\gram.c
           73     states\lex.c
           74     states\main.c
           75     states\prims.c
           76     states\process.c
           77     states\utils.c
           78 
           79 10) define following additional preprocessor symbols:
           80 
           81         HAVE_CONFIG_H
           82 
           83 11) add following additional include directories:
           84 
           85         <top-level-directory>
           86         <top-level-directory>\compat
           87         <top-level-directory>\afmlib
           88 
           89 12) print