--- Makefile.orig 2018-09-03 18:10:55 UTC +++ Makefile @@ -1,5 +1,5 @@ -LOADLIBES := -llockfile +LOADLIBES := -L${LOCALBASE}/lib -llockfile CFLAGS ?= -g -Wall -Wformat-security -Werror -O2 all: lockfile-create @@ -24,7 +24,10 @@ all: lockfile-create .PHONY: all lockfile-create: lockfile-progs.o - ${CC} -o $@ ${LDFLAGS} $^ ${LOADLIBES} + ${CC} -o $@ ${LDFLAGS} lockfile-progs.o ${LOADLIBES} + +lockfile-progs.o: + ${CC} ${CFLAGS} -c -I${LOCALBASE}/include lockfile-progs.c # These tests are quite insufficient, but perhaps better than nothing for now. check: all