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