]> git.buserror.net Git - polintos/scott/priv.git/blobdiff - lib/c/freestanding/Makefile.final
Move some freestanding libc functions from the kernel into
[polintos/scott/priv.git] / lib / c / freestanding / Makefile.final
diff --git a/lib/c/freestanding/Makefile.final b/lib/c/freestanding/Makefile.final
new file mode 100644 (file)
index 0000000..d8106f9
--- /dev/null
@@ -0,0 +1,8 @@
+MYOBJS := $(filter $(BUILDDIR)/c/freestanding/%,$(OBJS))
+
+$(BUILDDIR)/c/libfreestanding.a: $(MYOBJS)
+       @echo $(COMP): Linking c/libfreestanding.a
+       @$(MKDIR) $(dir $@)
+       @$(RM) $@
+       @$(AR) rc $@ $(MYOBJS)
+       @$(RANLIB) $@