aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Willemse2013-11-17 00:52:32 +0100
committerTom Willemse2013-11-17 00:52:32 +0100
commit19129006d3e6507b7192d16fe10a29f3374b9df1 (patch)
tree301905290f1c19a31407fa23ab639bea09ddb6b7
parentf01619891558c46cc2de0f92174f9f1ad1b15a1a (diff)
downloadlibdispass-19129006d3e6507b7192d16fe10a29f3374b9df1.tar.gz
libdispass-19129006d3e6507b7192d16fe10a29f3374b9df1.zip
Improve Makefile, make shared library
-rw-r--r--.gitignore3
-rw-r--r--Makefile6
2 files changed, 6 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 9c1b910..9d22eb4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-dispasstest
+*.o
+*.so
diff --git a/Makefile b/Makefile
index 8f6a1e6..9a75ffc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,4 @@
-dispasstest: dispass.c
- gcc -lcrypto dispass.c -o dispasstest
+CFLAGS = -lcrypto -fPIC
+
+libdispass.so: dispass.o
+ $(CC) $(CFLAGS) -shared -o libdispass.so $^