summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2018-08-09 10:55:46 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2018-08-09 10:55:46 -0400
commite2447ed9523b30663fad2f9e65ba44dd9af62b15 (patch)
tree7f73bbb3aa17cb787ef44505cdc876e815aafe1d
parent33bd0afe7d44d1cc1142ad4384175c84ec20147e (diff)
downloadrandom-seed-e2447ed9523b30663fad2f9e65ba44dd9af62b15.tar.xz
random-seed-e2447ed9523b30663fad2f9e65ba44dd9af62b15.zip
Manually specify makefile dependencies, add distclean0.0.1
-rw-r--r--Makefile.in12
1 files 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)