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