From 19129006d3e6507b7192d16fe10a29f3374b9df1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 17 Nov 2013 00:52:32 +0100 Subject: [PATCH] Improve Makefile, make shared library --- .gitignore | 3 ++- Makefile | 6 ++++-- 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 $^