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