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