LIBS=-ljump -lm UNAME_S := $(shell uname -s) ifeq ($(UNAME_S), Linux) LDFLAGS+=-L.. -Wl,-rpath -Wl,'$${ORIGIN}/..' endif CFLAGS=-I.. include ../dylib.make demo: main.o ../$(DYLIB) cc -o $@ $(LDFLAGS) $< $(LIBS) main.o: main.c .PHONY: clean clean: rm -vf demo main.o