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