File: BUILDING

package info (click to toggle)
lookup 1.08b-16
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,792 kB
  • sloc: ansic: 12,639; makefile: 247; perl: 174; sh: 53
file content (69 lines) | stat: -rw-r--r-- 2,241 bytes parent folder | download | duplicates (9)
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
							Jeffrey Friedl
							Omron Corp.
							Nagaokakyo, Japan

COMPILING

It's written in ANSI C, so you'll need an appropriate compiler.

If you have gcc and gmake, you should just be able to:
	gmake

If you know the gcc is version 2, you can get better performance with
	gmake gcc=gcc2
                  ^^^^---- this is not a compiler name, just a string.

If you don't have gcc, specify "gcc=" and tell what CC to use:
	gmake gcc= CC="cc -ansi" CC_TRAD=cc

    If you have a gcc with a weird name, try something like
        % gmake CC=/funky/gnu_compiler
    (with an added "gcc=gcc2" if it's gcc version 2)

Check out "jmake" for a way to easily customize things.

[ IF YOUR MAKE SUCKS AND CAN'T HANDLE THE MAKEFILE (some SysV makes are ]
[ known to be have been developed before certain technilogical advances,]
[ such as electricity), try "sh make.sh" after setting CC and CFLAGS at ]
[ the top.                                                              ]

Note about CC_TRAD:
    If you don't have a traditional (K&R) compiler handy, you can do
    without it if your sys/include.h is ANSIfied.

MAN PAGE
-----------------------------------------------------------------------------
The formatted manual can be found in the files:
	lookup.man.jis
	lookup.man.euc
	lookup.man.sjs

If you wish to rebuild with a different width (I like to use the full
screen width, so I set the width to 79 on screen and 99 on my 100 column
printer), set MANPAGE_WIDTH in the Makefile. The form of the value is "-r1#"
where you replace # with your desired width, as in "-r179". You can then
do a "make manual".

Note that jnroff is required to rebuild the man pages, and that Ken
Lunde's "jconv" is required to make the .jis and .sjs versions.


RUNNING
-----------------------------------------------------------------------------
Use the command-line arguments
	-jis
	-euc
or
	-sjis
to select which encoding method to use (using -jis with kterm should
always be safe).

Then read the manual and follow along on, trying things yourself.

The example startup file ("~/.lookup") shown in the man page can be found
in "dot-lookup". My personal version is in dot-lookup.jfriedl.

Let me know how things go.

	Jeffrey
	jfriedl@nff.ncl.omron.co.jp