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