all: test

test: test.c exn.so
	${CC} -Wall -Wextra -ansi -std=c89 test.c exn.so -L . -o test

exn.so: exn.c exn.h
	$(CC) -shared -fPIC -Wall -Wextra -ansi -std=c89 exn.c -o exn.so

run: all
	./test

clean:
	rm -f exn.so test
