blob: b04285a21dae8e1c3aa46a6d4215a5ff7f120ddd (
plain)
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
|
.SUFFIXES: .doc .ds
BIN= rat2float float2rat rat2canon
MPOBJ=
CC=gcc
CFLAGS=-g
RANLIB=ranlib
# Uncomment and edit the following for multiprecision support.
LRSDIR=../lrslib
# The rest of these should be ok if just uncommented.
# comment out the following to compile without multiprecision
CPPFLAGS+= -I$(LRSDIR)
CPPFLAGS+= -DLRSMP
VPATH=$(LRSDIR)
MPOBJ=lrsmp.o
.doc.ds:
perl ./doc2h.pl < $< > $@
all: ${BIN}
docstrings: ${DS}
.PHONEY: all clean install
rat2float.ds: rat2float.doc
rat2float: rat2float.c rat2float.ds $(MPOBJ)
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(MPOBJ) $(LDFLAGS) $<
rat2canon.ds: rat2canon.doc
rat2canon: rat2canon.c rat2canon.ds $(MPOBJ)
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(MPOBJ) $(LDFLAGS) $<
float2rat.ds: float2rat.doc
float2rat: float2rat.c float2rat.ds
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(LDFLAGS) $<
clean:
$(RM) *.o core ${BIN}
reallyclean: clean
$(RM) *.ds
|