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