aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-11-01 14:15:00 +0100
committerAnton Khirnov <anton@khirnov.net>2014-11-01 14:15:00 +0100
commitc8441c7e80cca2b26bdd9f6b043ab9e4827b6703 (patch)
tree2353734333f22980ff5c0567d0839a6fe6d7e5de
parent4c52660b125a296b449efb4f30c18d498f21e17c (diff)
Add a Makefile and a linker versioning script.
-rw-r--r--Makefile14
-rw-r--r--libbrilldata.v4
2 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..bab8386
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+CFLAGS = -std=gnu99 -D_XOPEN_SOURCE=700 -fPIC
+LDFLAGS = --version-script=libbrilldata.v -shared -lgsl -lm -llapacke
+
+TARGET = libbrilldata.so
+
+all: $(TARGET)
+
+$(TARGET): brill_data.o
+ ld ${LDFLAGS} -o $@ $<
+
+clean:
+ -rm *.o $(TARGET)
+
+.PHONY: clean
diff --git a/libbrilldata.v b/libbrilldata.v
new file mode 100644
index 0000000..c6cfab2
--- /dev/null
+++ b/libbrilldata.v
@@ -0,0 +1,4 @@
+LIBBRILLDATA_0 {
+ global: bd_*;
+ local: *;
+};