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 --- sys/libn/rules.mk | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'sys/libn') diff --git a/sys/libn/rules.mk b/sys/libn/rules.mk index 85f3df7..3e9b810 100644 --- a/sys/libn/rules.mk +++ b/sys/libn/rules.mk @@ -5,17 +5,33 @@ include share/push.mk # include $(DIR)/rules.mk # Local sources -SRCS_$(d) := $(wildcard $(d)/*.c) $(wildcard $(d)/*.s) -LIBS_$(d) := $(d)/libnbn.a +SRCS_$(d) := \ + $(d)/bufio.c \ + $(d)/coro_unix_x64.s \ + $(d)/coro.c \ + $(d)/error.c \ + $(d)/flate.c \ + $(d)/gz.c \ + $(d)/io.c \ + $(d)/memory.c \ + $(d)/mmap.c \ + $(d)/random.c \ + $(d)/sort.c \ + $(d)/string.c + +TSTS_$(d) := \ + $(d)/test.c + +LIBS_$(d) := $(d)/libn.a BINS_$(d) := -TSTS_$(d) := $(d)/test include share/paths.mk $(LIBS_$(d)): $(OBJS_$(d)) $(ARCHIVE) -$(TSTS_$(d)): $(LIBS_$(d)) +$(UNTS_$(d)): TCLIBS := $(LIBS_$(d)) +$(UNTS_$(d)): $(TOBJS_$(d)) $(TCLIBS) $(LINK) include share/pop.mk -- cgit v1.2.1