From 3f7474df0645224ce61fedcd908028f41971189e Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sat, 16 May 2020 10:38:24 -0700 Subject: fix: linking errors associated to linking bins against all dependencies. partitioned more explictly now --- bin/initmk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/initmk b/bin/initmk index 141764d..2ea018f 100755 --- a/bin/initmk +++ b/bin/initmk @@ -8,12 +8,12 @@ TEMPLATE = """include share/push.mk # Iterate through subdirectory tree # Local sources -SRCS_$(d) := $(wildcard $(d)/*.c) +SRCS_$(d) := LIBS_$(d) := BINS_$(d) := -TSTS_$(d) := $(wildcard $(d)/*_test.c:.c=.test) +TSTS_$(d) := -include share/pop.mk +include share/paths.mk # Local rules # $(LIBS_$(d)) = TCFLAGS := @@ -26,6 +26,9 @@ $(LIBS_$(d)): $(OBJS_$(d)) $(BINS_$(d)): $(OBJS_$(d)) $(LINK) +$(UNTS_$(d)): $(TOBJS_$(d)) $(LIBS_$(d)) + $(LINK) + include share/pop.mk""" if __name__ == "__main__": -- cgit v1.2.1