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