diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-05-16 10:38:24 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-05-16 10:38:24 -0700 |
commit | 3f7474df0645224ce61fedcd908028f41971189e (patch) | |
tree | 0bd98f69f9ba09ec9c1cb19fe0c96bf89d8b6ee6 /sys/libn | |
parent | fa25c8f3df6791727b9384c9b405c996ac68b8ab (diff) |
fix: linking errors associated to linking bins against all dependencies. partitioned more explictly now
Diffstat (limited to 'sys/libn')
-rw-r--r-- | sys/libn/rules.mk | 24 |
1 files changed, 20 insertions, 4 deletions
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 |