File: INSTALL

package info (click to toggle)
wp2x 2.5-mhi-13
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 708 kB
  • ctags: 629
  • sloc: ansic: 2,068; makefile: 80; perl: 70; sh: 40
file content (75 lines) | stat: -rw-r--r-- 2,648 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75

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