
Edit the Makefile. Decide where you want to install the cfg files,
manual pages and the binary. If you need getopt, change the SRCS
define near the top of src/Makefile.
  
  make

  make test
     if you like

  make install 
     to copy to cfg files to the right place.


[ Send email to: majordomo@journal.biology.carleton.ca, with the body:
  subscribe wp2x-workers ] - this address doesn't seem to work anymore


Hints for compiling on various platforms

-------------------------------------------------------------------------------
UNIX with gcc

gcc -v -ansi -funsigned-char -DUNIX -DWP2X_DIR=\"/usr/local/lib/wp2x\"
    -o wp2x wp2x.c

-------------------------------------------------------------------------------
Amiga, courtesy of Dale Gold (dgold@basso.actrix.gen.nz)

# Makefile for SAS 5.10 on the Amiga.
#
# -b0   No base relative addressing
# -cu   All char unsigned
# -L    Automatically link
# -DNO_CONST compiler does not support `const' qualifier
wp2x:   wp2x.c lmkfile
    lc -b0 -cu -L -DNO_CONST -DAMIGA wp2x.c
-------------------------------------------------------------------------------
IBM PC / Turbo C 2.0, suggested by Raymond Chen (raymond@math.berkeley.edu)

tcc -mt -G -K -O -f- -r -Z -p -DCdecl=cdecl -DMSDOS wp2x.c

                -mt = tiny model
                -G  = compile for speed
                -K  = unsigned characters
                -O  = optimize jumps
                -f- = no floating point
                -r  = register variables
                -Z  = optimize register usage
                -p  = pascal calling convention
     -DCdecl=cdecl  = for tagging variadic functions

Note, however, that setting the -O switch means that the killer switch()
statement causes TC2.0 to act like it's gone out to lunch.  It hasn't;
it's chugging away, albeit incredibly slowly.
-------------------------------------------------------------------------------
IBM PC / MSC 6.0, suggested by Raymond Chen (raymond@math.berkeley.edu)

cl -AS -Gr -J -Ozax -DCdecl=_cdecl -DMSDOS wp2x.c

            -AS   = small model
            -Gr   = use fastcalls calling convention
            -J    = unsigned chars
            -Ozax = maximum optimization
   -DCdecl=_cdecl = for tagging variadic functions
-------------------------------------------------------------------------------
IBM PC / MS C 5.1, suggested by Richard Reiner <rreiner@nexus.yorku.ca>

cl -AS -Gc -J -Ox -DCdecl=cdecl -DMSDOS wp2x.c

              -AS = small model
              -Gc = pascal calling convention
              -J  = unsigned chars
              -Ox = maximum optimization
    -DCdecl=cdecl = for tagging variadic functions
