diff options
| author | Thomas Schmucker <ts@its1.de> | 2020-08-23 09:56:54 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2020-08-23 09:56:54 +0200 |
| commit | 165e06e7544cae2b2f0932f4c2dab26bf06a5326 (patch) | |
| tree | dc13647ac5f2e868983d21ace4f763b3b770b11a | |
| download | use-bcrypt-165e06e7544cae2b2f0932f4c2dab26bf06a5326.tar.gz use-bcrypt-165e06e7544cae2b2f0932f4c2dab26bf06a5326.tar.bz2 use-bcrypt-165e06e7544cae2b2f0932f4c2dab26bf06a5326.zip | |
erster Prototyp
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | bcrypt-test.c | 11 | ||||
| -rw-r--r-- | makefile | 9 |
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 @@ | |||
| 1 | lua-bcrypt | ||
| 2 | |||
| 3 | *.o | ||
| 4 | bcrypt-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 | |||
| 6 | int | ||
| 7 | main(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 @@ | |||
| 1 | all: bcrypt-test | ||
| 2 | |||
| 3 | CFLAGS =-Wall -Werror -std=c99 -pedantic -O2 | ||
| 4 | |||
| 5 | bcrypt-test: bcrypt-test.o | ||
| 6 | cc -o $@ bcrypt-test.o lua-bcrypt/bcrypt.a | ||
| 7 | |||
| 8 | bcrypt-test.o: bcrypt-test.c | ||
| 9 | cc -o $@ -c $< | ||
