From 20802a10ce2ca951df3e956cc7d68ae63f3a552c Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Thu, 6 Sep 2018 21:30:18 -0400 Subject: fix out-of-source builds --- Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 9fd7545..6c6c1cc 100644 --- a/Makefile.in +++ b/Makefile.in @@ -24,6 +24,7 @@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ VPATH := $(srcdir) + SRC := src/id.c src/load.c src/main.c src/random-seed.c src/save.c src/sha2.c src/util.c OBJ := $(SRC:.c=.o) DEP := $(SRC:.c=.d) @@ -47,7 +48,7 @@ ifneq ($(UNITY),) random-seed: random-seed.o $(CC) $(LDFLAGS) $^ $(LIBS) -o $@ -random-seed.o: CPPFLAGS+=-I$(srcdir)/src +random-seed.o: CPPFLAGS+=-I$(srcdir) random-seed.c: Makefile for f in $(SRC); do \ -- cgit v1.2.3-70-g09d2