diff options
| -rw-r--r-- | mk/__time.d | 10 | ||||
| -rw-r--r-- | src/time/__time.c | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/mk/__time.d b/mk/__time.d new file mode 100644 index 00000000..3fdc33eb --- /dev/null +++ b/mk/__time.d @@ -0,0 +1,10 @@ +libc_C.0: libc.a(__time.o) +libc.a(__time.o): $(OBJDIR)/__time.o + @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% + +$(OBJDIR)/__time.o: src/time/__time.c +$(OBJDIR)/__time.o: src/time/_time.h +$(OBJDIR)/__time.o: + @echo " [CC] $@" + @mkdir -p $(@D) + @$(CC) -c -o $@ $(CFLAGS) src/time/__time.c diff --git a/src/time/__time.c b/src/time/__time.c new file mode 100644 index 00000000..fd72bacb --- /dev/null +++ b/src/time/__time.c @@ -0,0 +1,3 @@ +#include "_time.h" + +struct __time __time; |
