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