diff --git a/LibAutomaton/Makefile b/LibAutomaton/Makefile index 3778091..5f9c04e 100644 --- a/LibAutomaton/Makefile +++ b/LibAutomaton/Makefile @@ -1,5 +1,5 @@ CC=gcc -CFLAGS=-Wall -Werror -pedantic -fpic -g +CFLAGS=-Wall -Werror -pedantic -fpic -g -std=c89 LIBSDIR=-L/usr/lib -L../Libs diff --git a/Makefile b/Makefile index 24db132..5c8a299 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:./Libs CC=gcc -CFLAGS=-Wall -Werror -pedantic -fpic -g +CFLAGS=-Wall -Werror -pedantic -fpic -g -std=c89 LIBSDIR=-L/usr/lib -L./Libs diff --git a/main.c b/main.c index 12d7ac3..6ae9fd3 100644 --- a/main.c +++ b/main.c @@ -11,6 +11,8 @@ #include int main(int argc, char **argv){ + int Rule = 256; + int N = 1; Matrix matrix = CreateMatrix(); Matrix m2; Matrix m3; @@ -22,8 +24,6 @@ int main(int argc, char **argv){ BasicPrintMatrix(m3); freeMatrix(m3); - int Rule = 256; - int N = 1; applyRules(matrix,Rule,N); matrix = SetMatrixDim(matrix,3,3);