aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArun Isaac2021-02-03 13:02:23 +0530
committerArun Isaac2021-02-03 13:02:23 +0530
commit1c9128be78a68805ab0d80631c1984fd4291d894 (patch)
treee0051e36633f502baf559f7f0030aa97ce1fce8c /Makefile
downloadnsmc-1c9128be78a68805ab0d80631c1984fd4291d894.tar.gz
nsmc-1c9128be78a68805ab0d80631c1984fd4291d894.tar.lz
nsmc-1c9128be78a68805ab0d80631c1984fd4291d894.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..81c9d98
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+CC = gcc
+CFLAGS = -Wall -D_GNU_SOURCE -g -fPIC -Werror
+LDFLAGS = -lm -lgsl -lgslcblas
+
+libextentsampling.so: extent-sampling.o nd-random.o gaussian-nd-random.o oracles.o utils.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^
+
+depends: $(wildcard *.c)
+ $(CC) $(CFLAGS) -MM $^ > depends
+
+include depends
+
+.PHONY: clean
+clean:
+ rm -vf *.o *.so depends