* Import keyanalyze into signing-party. Thanks to Matthew Wilcox for the
[pgp-tools.git] / keyanalyze / Makefile
diff --git a/keyanalyze/Makefile b/keyanalyze/Makefile
new file mode 100644 (file)
index 0000000..ec4683b
--- /dev/null
@@ -0,0 +1,21 @@
+LDLIBS=-lpthread
+CFLAGS=-O2 -W -Wall -g
+
+all: keyanalyze process_keys pgpring/pgpring
+
+keyanalyze: keyanalyze.o
+process_keys: process_keys.o
+
+pgpring/pgpring:
+       cd pgpring && CFLAGS="${CFLAGS}" ./configure && make pgpring
+
+install:
+       install pgpring/pgpring $(DESTDIR)/usr/bin
+       install keyanalyze $(DESTDIR)/usr/bin
+       install process_keys $(DESTDIR)/usr/bin
+
+clean:
+       -(cd pgpring && make distclean)
+       -rm -f *.o core *~ keyanalyze process_keys
+       -rm -f test.pre preprocess.keys keyanalyze.out all.keys
+       -rm -rf output