diff options
author | bremner <bremner@09fa754a-f411-0410-976a-da6bfa213b30> | 2006-04-21 17:39:32 +0000 |
---|---|---|
committer | bremner <bremner@09fa754a-f411-0410-976a-da6bfa213b30> | 2006-04-21 17:39:32 +0000 |
commit | a468544d39ef18c6e47fd59cf427a4e25fe22b7f (patch) | |
tree | aacd9a4cad151cd60cef375d75088cbe3f18fe7e /Makefile |
cvs to svn conversion script
git-svn-id: file:///export/data/bremner/svn/trunk/inetools@2344 09fa754a-f411-0410-976a-da6bfa213b30
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 |