diff --git a/.gitignore b/.gitignore index 496ee2c..8963476 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.DS_Store \ No newline at end of file +.DS_Store +test \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b5bf194 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +CFLAGS = -O0 -g -Wall -Wextra -std=c89 -pedantic-errors + +all: test + +.PHONY: test +test: tests.c parson.c + $(CC) $(CFLAGS) -o $@ tests.c parson.c + ./$@ + +clean: + rm -f test *.o \ No newline at end of file diff --git a/tests.sh b/tests.sh deleted file mode 100755 index 7eff98e..0000000 --- a/tests.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -gcc tests.c parson.c -Wall -pedantic-errors -std=c89 -o test -./test -rm -f *.o -rm test