diff options
author | Nicholas <nbnoll@eml.cc> | 2021-11-12 09:22:01 -0800 |
---|---|---|
committer | Nicholas <nbnoll@eml.cc> | 2021-11-12 09:22:01 -0800 |
commit | ce05175372a9ddca1a225db0765ace1127a39293 (patch) | |
tree | 5988b4d4f6b402e4953945886fc90aae11203df6 /src/libc/rules.mk | |
parent | b375f3cdedb5b0e08745d100b40e38d2f8396a58 (diff) |
chore: simplified organizational structurelaptop
Diffstat (limited to 'src/libc/rules.mk')
-rw-r--r-- | src/libc/rules.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libc/rules.mk b/src/libc/rules.mk new file mode 100644 index 0000000..34e0912 --- /dev/null +++ b/src/libc/rules.mk @@ -0,0 +1,20 @@ +include share/push.mk + +# Iterate through subdirectory tree + +# Local sources +SRCS_$(d) := $(wildcard $(d)/*.c) +LIBS_$(d) := $(d)/libc_n.a +BINS_$(d) := + +include share/paths.mk + +# Local rules +$(LIBS_$(d)): TCFLAGS = -ffreestanding -fno-builtin -nostdlib +$(LIBS_$(d)): $(OBJS_$(d)) + $(ARCHIVE) + +$(BINS_$(d)): $(OBJ_DIR)/libn/test.o + $(LINK) + +include share/pop.mk |