summaryrefslogtreecommitdiff
path: root/tests/rand/Makefile
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>1999-03-16 11:30:46 +0100
committerLinus Nordberg <linus@nordberg.se>1999-03-16 11:30:46 +0100
commit6b271ada539875ce6a09a4f50a64bd9785a2a6de (patch)
tree266be964a407bcbce55bb8a0087e959e4c7ac485 /tests/rand/Makefile
parent9d88b9a05385660699543e5c64b7562ee36d6034 (diff)
downloadgmp-6b271ada539875ce6a09a4f50a64bd9785a2a6de.tar.gz
New randomization functions.
Diffstat (limited to 'tests/rand/Makefile')
-rw-r--r--tests/rand/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/rand/Makefile b/tests/rand/Makefile
new file mode 100644
index 000000000..56dc6c7bd
--- /dev/null
+++ b/tests/rand/Makefile
@@ -0,0 +1,28 @@
+CC = gcc
+GMPDIR = ../..
+#GMPLIBDIR = $(GMPDIR)
+GMPLIBDIR = /tmp/linus/gmp
+GMPLIB = $(GMPLIBDIR)/libgmp.a
+GMPINC = $(GMPDIR)/gmp.h
+
+DEP = statlib.o $(GMPLIB) $(GMPINC)
+
+CFLAGS = -Wall -g -I$(GMPDIR) -L$(GMPLIBDIR) $(XCFLAGS)
+LIBS = -lgmp -lm
+
+findcl: findcl.c $(DEP)
+gen: gen.c $(DEP)
+stat: stat.c $(DEP)
+ $(CC) $(CFLAGS) -L$(GMPLIBDIR) -L. -o $@ $< statlib.o $(LIBS)
+foo: foo.c $(DEP)
+ $(CC) $(CFLAGS) -L$(GMPLIBDIR) -o $@ $< -lgmp
+
+statlib.o: statlib.c statlib.h $(GMPLIB)
+
+ks: ks.c $(DEP)
+ $(CC) $(CFLAGS) -o $@ $< statlib.o $(LIBS)
+
+%.o : %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+% : %.c
+ $(CC) $(CFLAGS) -o $@ $< $(LIBS)