summaryrefslogtreecommitdiffstats
path: root/3rdparty/phpass/c/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/phpass/c/Makefile')
-rw-r--r--3rdparty/phpass/c/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/3rdparty/phpass/c/Makefile b/3rdparty/phpass/c/Makefile
new file mode 100644
index 00000000000..fe48917f7f5
--- /dev/null
+++ b/3rdparty/phpass/c/Makefile
@@ -0,0 +1,21 @@
+#
+# Written by Solar Designer and placed in the public domain.
+# See crypt_private.c for more information.
+#
+CC = gcc
+LD = $(CC)
+RM = rm -f
+CFLAGS = -Wall -O2 -fomit-frame-pointer -funroll-loops
+LDFLAGS = -s
+LIBS = -lcrypto
+
+all: crypt_private-test
+
+crypt_private-test: crypt_private-test.o
+ $(LD) $(LDFLAGS) $(LIBS) crypt_private-test.o -o $@
+
+crypt_private-test.o: crypt_private.c
+ $(CC) -c $(CFLAGS) crypt_private.c -DTEST -o $@
+
+clean:
+ $(RM) crypt_private-test*