From e2447ed9523b30663fad2f9e65ba44dd9af62b15 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Thu, 9 Aug 2018 10:55:46 -0400 Subject: Manually specify makefile dependencies, add distclean --- Makefile.in | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 57aa4cb..69af917 100644 --- a/Makefile.in +++ b/Makefile.in @@ -14,19 +14,24 @@ systemdsystemunitdir = @systemdsystemunitdir@ default_seed_path_dir = @default_seed_path_dir@ CC = @CC@ -CFLAGS = -Wall -Wextra -pedantic @CFLAGS@ -MD -MP -UNDEBUG -include @abs_top_builddir@/config.h +CFLAGS = -Wall -Wextra -pedantic @CFLAGS@ -UNDEBUG -include @abs_top_builddir@/config.h CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ SRC := random-seed.c sha2.c util.c OBJ := $(SRC:.c=.o) -DEP := $(SRC:.c=.d) TEST_FILE := random-seed.test all: random-seed random-seed.service random-seed: $(OBJ) +random-seed.o: random-seed.c musl-libgen-c.h util.h sha2.h + +util.o: util.c util.h sha2.h + +sha2.o: sha2.c sha2.h + random-seed.service: random-seed.service.in sed -e 's|@sbindir[@]|$(sbindir)|g' \ -e 's|@default_seed_path_dir[@]|$(default_seed_path_dir)|g' \ @@ -50,7 +55,8 @@ $(TEST_FILE): random-seed clean: $(RM) random-seed $(OBJ) $(DEP) $(TEST_FILE) --include $(DEP) +distclean: clean + $(RM) -r aclocal.m4 autom4te.cache config.h config.h.in 'config.h.in~' config.log config.status configure Makefile .PHONY: all install test clean .INTERMEDIATE: $(TEST_FILE) -- cgit v1.2.3-70-g09d2