diff --git a/build.sh b/build.sh index 05850b5..a7cdf3f 100644 --- a/build.sh +++ b/build.sh @@ -32,7 +32,7 @@ if [[ "$1" == "test" ]]; then ########## TEST ########## ### # Compile - $compiler $testFile $sourceFiles $includeFiles $flags -o $output + $compiler -lwhy2 $testFile $flags -o $output # Compilation failed if [[ $? -ne 0 ]]; then diff --git a/src/decrypter.c b/src/decrypter.c index e654a54..5e4f0dd 100644 --- a/src/decrypter.c +++ b/src/decrypter.c @@ -1,11 +1,11 @@ -#include "../include/decrypter.h" +#include #include #include #include -#include "../include/flags.h" -#include "../include/misc.h" +#include +#include char* decryptText(char *text, char *key) diff --git a/src/encrypter.c b/src/encrypter.c index 08b2529..ec060d2 100644 --- a/src/encrypter.c +++ b/src/encrypter.c @@ -1,4 +1,4 @@ -#include "../include/encrypter.h" +#include #include #include @@ -6,8 +6,8 @@ #include #include -#include "../include/flags.h" -#include "../include/misc.h" +#include +#include char* encryptText(char *text, char *keyNew) diff --git a/src/misc.c b/src/misc.c index ed72f83..20fabcc 100644 --- a/src/misc.c +++ b/src/misc.c @@ -1,4 +1,4 @@ -#include "../include/misc.h" +#include #include #include @@ -6,7 +6,7 @@ #include #include -#include "../include/flags.h" +#include #define CLEAR_SCREEN "\e[1;1H\e[2J" #define NOT_FOUND_TRIES 10 diff --git a/src/test/main.c b/src/test/main.c index 08acdbd..0c6247c 100644 --- a/src/test/main.c +++ b/src/test/main.c @@ -2,8 +2,8 @@ #include #include -#include "../../include/encrypter.h" -#include "../../include/decrypter.h" +#include +#include #define TEST_TEXT "Pepa smrdí." #define TEST_KEY "lZwOBFvjJEmaYRIaKsALKLkSeJvXhFPbZIRNFbjQRNyiOuLTexhgOpObHzyQgNT"