diff options
Diffstat (limited to 'mk/rand.d')
| -rw-r--r-- | mk/rand.d | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mk/rand.d b/mk/rand.d new file mode 100644 index 00000000..a0f2fa98 --- /dev/null +++ b/mk/rand.d @@ -0,0 +1,10 @@ +libc_C.1: libc.a(rand.o) +libc.a(rand.o): $(OBJDIR)/rand.o + @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% + +$(OBJDIR)/rand.o: src/stdlib/rand.c +$(OBJDIR)/rand.o: src/stdlib/_stdlib.h +$(OBJDIR)/rand.o: + @echo " [CC] $@" + @mkdir -p $(@D) + @$(CC) -c -o $@ $(CFLAGS) src/stdlib/rand.c |
