CURL_LIBS = -lcurl JSON_LIBS = -ljson all: fafdemo fafdemo: libfaf.so g++ demo.cc -ansi -lfaf -L. -o fafdemo-bin echo '#!/bin/sh' > fafdemo echo 'LD_LIBRARY_PATH=. ./fafdemo-bin $$@' >> fafdemo chmod a+x fafdemo libfaf.so: g++ faf.cc -shared -ansi -fPIC $(JSON_LIBS) $(CURL_LIBS) -o libfaf.so clean: rm -f fafdemo fafdemo-bin libfaf.so