Improve Makefile, make shared library

This commit is contained in:
Tom Willemse 2013-11-17 00:52:32 +01:00
parent f016198915
commit 19129006d3
2 changed files with 6 additions and 3 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
dispasstest
*.o
*.so

View file

@ -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 $^