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