hello: libhello.so main.c
	gcc -o $@ -L. -lhello main.c

libhello.so: hello.o
	gcc -o $@ -shared -Wl,-soname,libhello.so hello.o

hello.o: hello.c
	gcc -c -fPIC hello.c

myhello.so: myhello.c
	gcc -o $@ -shared myhello.c

clean:
	rm -rf main.o hello.o