--- /dev/null
+# LD_LIBRARY_PATH=../../lib/.libs
+TARGETS=crypt_log_usage crypt_luks_usage
+CFLAGS=-O0 -g -Wall -D_GNU_SOURCE -L../../lib/.libs -I../../lib
+LDLIBS=-lcryptsetup
+CC=gcc
+
+all: $(TARGETS)
+
+crypt_log_usage: crypt_log_usage.o
+ $(CC) -o $@ $^ $(LDLIBS)
+
+crypt_luks_usage: crypt_luks_usage.o
+ $(CC) -o $@ $^ $(LDLIBS)
+
+clean:
+ rm -f *.o *~ core $(TARGETS)
+
+.PHONY: clean
-#include <libcryptsetup.h>
-#include <syslog.h>
#include <stdio.h>
#include <sys/types.h>
+#include <syslog.h>
#include <unistd.h>
+#include <libcryptsetup.h>
#include "crypt_examples.h"
-#include <inttypes.h>
-#include <libcryptsetup.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/types.h>
#include <unistd.h>
+#include <inttypes.h>
+#include <sys/types.h>
+#include <libcryptsetup.h>
#include "crypt_examples.h"