aboutsummaryrefslogtreecommitdiff
path: root/sys/libfmt/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libfmt/rules.mk')
-rw-r--r--sys/libfmt/rules.mk36
1 files changed, 36 insertions, 0 deletions
diff --git a/sys/libfmt/rules.mk b/sys/libfmt/rules.mk
new file mode 100644
index 0000000..2b1b431
--- /dev/null
+++ b/sys/libfmt/rules.mk
@@ -0,0 +1,36 @@
+include share/push.mk
+
+# Iterate through subdirectory tree
+
+# 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
+
+TSTS_$(d) := \
+ $(d)/test.c
+
+include share/paths.mk
+
+$(LIBS_$(d)): $(OBJS_$(d))
+ $(ARCHIVE)
+
+$(UNTS_$(d)): $(TOBJS_$(d)) $(LIBS_$(d)) $(OBJ_DIR)/sys/libutf/libutf.a $(OBJ_DIR)/sys/base/base.a
+ $(COMPLINK)
+
+include share/pop.mk