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