summaryrefslogtreecommitdiff
path: root/examples/auth/crackcheck/Makefile
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2004-09-14 00:21:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:39 -0500
commit410a6c72eafbb7fb1ecc9bf89310842ea8027494 (patch)
tree44f523ef0332bbe726b40a558fe8597800528644 /examples/auth/crackcheck/Makefile
parentc0b43349b38cf260c05f060c1efa7e808fff0dc0 (diff)
downloadsamba-410a6c72eafbb7fb1ecc9bf89310842ea8027494.tar.gz
samba-410a6c72eafbb7fb1ecc9bf89310842ea8027494.tar.bz2
samba-410a6c72eafbb7fb1ecc9bf89310842ea8027494.zip
r2331: check password script code and example from trunk
(This used to be commit f836be323a233f3a28cbaa04c532e83ea98ead89)
Diffstat (limited to 'examples/auth/crackcheck/Makefile')
-rw-r--r--examples/auth/crackcheck/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/auth/crackcheck/Makefile b/examples/auth/crackcheck/Makefile
new file mode 100644
index 0000000000..84377aafef
--- /dev/null
+++ b/examples/auth/crackcheck/Makefile
@@ -0,0 +1,25 @@
+# C compiler
+#CC=cc
+CC=gcc
+
+# Uncomment the following to add symbols to the code for debugging
+#DEBUG=-g -Wall
+
+# Optimization for the compiler
+#OPTIMIZE=
+OPTIMIZE=-O2
+
+CFLAGS= $(DEBUG) $(OPTIMIZE)
+
+OBJS = crackcheck.o
+LIBS = -lcrack
+
+crackcheck: $(OBJS)
+ $(CC) $(CFLAGS) $(LIBS) -o crackcheck $(OBJS)
+
+clean:
+ rm -f core *.o crackcheck
+
+install: crackcheck
+ install -m 555 crackcheck $(PREFIX)/sbin/crackcheck
+