summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--bcrypt-test.c11
-rw-r--r--makefile9
3 files changed, 24 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a3500e5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
1lua-bcrypt
2
3*.o
4bcrypt-test
diff --git a/bcrypt-test.c b/bcrypt-test.c
new file mode 100644
index 0000000..b09dee6
--- /dev/null
+++ b/bcrypt-test.c
@@ -0,0 +1,11 @@
1#include <stdio.h>
2#include <stdlib.h>
3
4#include "lua-bcrypt/compat/include/pwd.h"
5
6int
7main(void)
8{
9 puts("Hallo Welt...");
10 return EXIT_SUCCESS;
11}
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..b598b34
--- /dev/null
+++ b/makefile
@@ -0,0 +1,9 @@
1all: bcrypt-test
2
3CFLAGS =-Wall -Werror -std=c99 -pedantic -O2
4
5bcrypt-test: bcrypt-test.o
6 cc -o $@ bcrypt-test.o lua-bcrypt/bcrypt.a
7
8bcrypt-test.o: bcrypt-test.c
9 cc -o $@ -c $<