summaryrefslogtreecommitdiff
path: root/mk/initstate.d
diff options
context:
space:
mode:
Diffstat (limited to 'mk/initstate.d')
-rw-r--r--mk/initstate.d9
1 files changed, 9 insertions, 0 deletions
diff --git a/mk/initstate.d b/mk/initstate.d
new file mode 100644
index 00000000..5e363b97
--- /dev/null
+++ b/mk/initstate.d
@@ -0,0 +1,9 @@
+libc_X.400: libc.a(initstate.o)
+libc.a(initstate.o): $(OBJDIR)/initstate.o
+ @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%
+
+$(OBJDIR)/initstate.o: src/stdlib/initstate.c
+$(OBJDIR)/initstate.o:
+ @echo " [CC] $@"
+ @mkdir -p $(@D)
+ @$(CC) -c -o $@ $(CFLAGS) src/stdlib/initstate.c