From a468544d39ef18c6e47fd59cf427a4e25fe22b7f Mon Sep 17 00:00:00 2001 From: bremner Date: Fri, 21 Apr 2006 17:39:32 +0000 Subject: cvs to svn conversion script git-svn-id: file:///export/data/bremner/svn/trunk/inetools@2344 09fa754a-f411-0410-976a-da6bfa213b30 --- Makefile | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3