diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..631a4cf --- /dev/null +++ b/Makefile @@ -0,0 +1,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 |