summaryrefslogtreecommitdiff
path: root/mk/isprint.d
diff options
context:
space:
mode:
Diffstat (limited to 'mk/isprint.d')
-rw-r--r--mk/isprint.d11
1 files changed, 11 insertions, 0 deletions
diff --git a/mk/isprint.d b/mk/isprint.d
new file mode 100644
index 00000000..f732f59f
--- /dev/null
+++ b/mk/isprint.d
@@ -0,0 +1,11 @@
+libc_C.1: libc.a(isprint.o)
+libc.a(isprint.o): $(OBJDIR)/isprint.o
+ @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%
+
+$(OBJDIR)/isprint.o: src/ctype/isprint.c
+$(OBJDIR)/isprint.o: src/_assert.h
+$(OBJDIR)/isprint.o: src/ctype/_ctype.h
+$(OBJDIR)/isprint.o:
+ @echo " [CC] $@"
+ @mkdir -p $(@D)
+ @$(CC) -c -o $@ $(CFLAGS) src/ctype/isprint.c