Improve Makefile, make shared library
This commit is contained in:
parent
f016198915
commit
19129006d3
2 changed files with 6 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
dispasstest
|
*.o
|
||||||
|
*.so
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -1,2 +1,4 @@
|
||||||
dispasstest: dispass.c
|
CFLAGS = -lcrypto -fPIC
|
||||||
gcc -lcrypto dispass.c -o dispasstest
|
|
||||||
|
libdispass.so: dispass.o
|
||||||
|
$(CC) $(CFLAGS) -shared -o libdispass.so $^
|
||||||
|
|
Loading…
Reference in a new issue