blob: 631a4cfda9e661e5b929e64e176d588d1c29b5a0 (
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
|
.SUFFIXES: .doc .ds
BIN= rat2float float2rat
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.
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) $<
float2rat.ds: float2rat.doc
float2rat: float2rat.c float2rat.ds
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(LDFLAGS) $<
clean:
$(RM) *.o core ${BIN}
reallyclean: clean
$(RM) *.ds
|