forked from interkosmos/rim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
76 lines (76 loc) · 1.55 KB
/
Makefile
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
76
# definitions for LINUX rim
RANLIB=ranlib
F2CLIB=/usr/lib/f2cmain.a -lf2c
EXTRA=time_date.o
LIBEXTRA=time_date.o
PILE = CC_f2c=$(CC) f77
LIBRIM=librim.a
AR = ar rv
RAN = ranlib
# make rim (generic instructions to be customized for each installation)
#
# Rim executable
#
rim::
(cd src; make rim)
(cd src; make rimlib)
# $(PILE) -o rim src/rim.o src/rimlib
$(PILE) -Bstatic -o rim src/rim.o src/rimlib
#
# Rim file editor (for debugging)
#
rime::
(cd src; make rime)
(cd src; make rimlib)
$(PILE) -o rime src/rime.o src/rimlib
#
# Rim help database generator
#
rimh::
(cd src; make rimh)
(cd src; make rimlib)
(cd src; make librim.a)
$(PILE) -o rimh src/rimh.o src/rimlib -Lsrc -lrim
#
# Program to test text i/o and parsing routines
#
lxtest::
(cd src; make lxtest)
(cd src; make rimlib)
$(PILE) -o lxtest src/lxtest.o src/rimlib
#
# Help database
#
help::
(make rimh)
(rm -f rim_help.rimdb1)
(rm -f rim_help.rimdb2)
(rm -f rim_help.rimdb3)
rim src/rim_help.schema
rimh
#
# archive library for the user callable library
#
librim.a::
(cd src; make librim.a)
cp src/librim.a .
#
# install everything
#
install::
install rim_help.rimdb1 /usr/local/lib
install rim_help.rimdb2 /usr/local/lib
install rim_help.rimdb3 /usr/local/lib
install rim /usr/local/bin
install rime /usr/local/bin
install librim.a /usr/lib
install rim.1 /usr/man/manl/rim.l
#
# clean-up
#
clean::
rm -f rimh
rm -f lxtest
rm -f src/*.o
rm -f src/rimlib
rm -f doc/*.dvi *.log