From ce05175372a9ddca1a225db0765ace1127a39293 Mon Sep 17 00:00:00 2001 From: Nicholas Date: Fri, 12 Nov 2021 09:22:01 -0800 Subject: chore: simplified organizational structure --- src/libfmt/rules.mk | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/libfmt/rules.mk (limited to 'src/libfmt/rules.mk') diff --git a/src/libfmt/rules.mk b/src/libfmt/rules.mk new file mode 100644 index 0000000..9080bba --- /dev/null +++ b/src/libfmt/rules.mk @@ -0,0 +1,35 @@ +include share/push.mk + +# Local sources +SRCS_$(d):=\ + $(d)/buffer.c\ + $(d)/do.c\ + $(d)/esprint.c\ + $(d)/fprint.c\ + $(d)/locale.c\ + $(d)/nsprint.c\ + $(d)/open.c\ + $(d)/print.c\ + $(d)/sprint.c\ + $(d)/vesprint.c\ + $(d)/vfprint.c\ + $(d)/vnsprint.c\ + $(d)/vprint.c\ + $(d)/vwrite.c\ + $(d)/write.c + +LIBS_$(d):=\ + $(d)/libfmt.a + +CHECK_$(d):=\ + $(d)/test.c + +include share/paths.mk + +$(LIBS_$(d)): $(OBJS_$(d)) + $(ARCHIVE) + +$(TEST_$(d)): $(UNIT_$(d)) $(LIBS_$(d)) $(OBJ_DIR)/libutf/libutf.a $(OBJ_DIR)/base/base.a + $(COMPLINK) + +include share/pop.mk -- cgit v1.2.1