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