Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- all: lib main.c
- gcc -L`pwd` -Wall -o test main.c -lnsd -lm
- lib: nsd.c nsd.h nd.c nd.h
- gcc -c -Wall -Werror -fpic nsd.c
- gcc -c -Wall -Werror -fpic nd.c
- gcc -shared -o libnsd.so nsd.o nd.o
- clean:
- rm nsd.o nd.o libnsd.so test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement