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