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