all: test testsym testver liboverride.so clean: rm -f *.so test testsym testver liboverride.so : override.c $(CC) -shared -fPIC -o liboverride.so override.c libtest.so : libtest.c $(CC) -shared -fPIC -o libtest.so libtest.c libtestsym.so : libtest.c $(CC) -shared -fPIC -Wl,-Bsymbolic -o libtestsym.so libtest.c libtestver.so : libtest.c Versions $(CC) -shared -fPIC -Wl,-version-script=Versions -o libtestver.so libtest.c test : test.c libtest.so $(CC) -L. -ltest -o test test.c testsym : test.c libtestsym.so $(CC) -L. -ltestsym -o testsym test.c testver : test.c libtestver.so $(CC) -L. -ltestver -o testver test.c