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