summaryrefslogtreecommitdiff
path: root/src/lib/libc/amd64/Makefile
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-17 17:03:51 -0400
committerIan Moffett <ian@osmora.org>2025-09-17 17:03:51 -0400
commita1e193f571e167c3784976843a45b077324d41c4 (patch)
tree71e5e197b3937d39319b9871d096d3d654b64eaa /src/lib/libc/amd64/Makefile
parentaddd41a407519d99c50f59ef5ce1d2412486b2cd (diff)
lib: Add initial libc stub
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/lib/libc/amd64/Makefile')
-rw-r--r--src/lib/libc/amd64/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/libc/amd64/Makefile b/src/lib/libc/amd64/Makefile
new file mode 100644
index 0000000..f70def3
--- /dev/null
+++ b/src/lib/libc/amd64/Makefile
@@ -0,0 +1,19 @@
+.SILENT:
+override PROMPT := printf "%s\t\t%s\n"
+
+ASMFILES = $(shell find . -name "*.S")
+ASMOBJECTS = $(ASMFILES:.S=.S.o)
+
+.PHONY: all
+all: ../build/$(OBJECTS) ../build/$(ASMOBJECTS)
+
+-include $(DEPS)
+../build/%.o: %.c
+ mkdir -p $(@D)
+ $(CC) -c $(CFLAGS) $< -o $@
+
+-include $(ASMDEPS)
+../build/%.S.o: %.S
+ mkdir -p $(@D)
+ $(PROMPT) " MD.AS " $<
+ $(CC) -c $< -o $@ $(CFLAGS) $(MD_CFLAGS)