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