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