From e881e80d6b793c2d29e472ae4b65bdf8e4363b87 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Fri, 15 May 2020 12:11:57 -0700 Subject: feat: testing directory to allow for easier tests of code --- sys/libn/rules.mk | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'sys/libn') diff --git a/sys/libn/rules.mk b/sys/libn/rules.mk index bd3308a..85f3df7 100644 --- a/sys/libn/rules.mk +++ b/sys/libn/rules.mk @@ -1,21 +1,21 @@ include share/push.mk +# Iterate through subdirectory tree +# DIR := $(d)/bufio +# include $(DIR)/rules.mk + # Local sources -SRCS_$(d) := $(wildcard $(d)/*.c) -ASMS_$(d) := $(wildcard $(d)/*.s) -LIBS_$(d) := $(d)/libn.a +SRCS_$(d) := $(wildcard $(d)/*.c) $(wildcard $(d)/*.s) +LIBS_$(d) := $(d)/libnbn.a BINS_$(d) := TSTS_$(d) := $(d)/test include share/paths.mk $(LIBS_$(d)): $(OBJS_$(d)) - @echo LIB $@ - @$(ARCHIVE) + $(ARCHIVE) -$(BINS_$(d)): TCLIBS := $(LIBS_$(d)) $(LIB_DIR)/vendor/libz.a -$(BINS_$(d)): $(OBJ_DIR)/libn/test.o $(LIBS_$(d)) - @echo BIN $@ - @$(LINK) +$(TSTS_$(d)): $(LIBS_$(d)) + $(LINK) include share/pop.mk -- cgit v1.2.1