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