From 962d9f13ba2c1b1b39d7b014a9369c2810bced87 Mon Sep 17 00:00:00 2001 From: Krzysztof Gabis Date: Sun, 2 Dec 2012 18:16:12 +0100 Subject: [PATCH] Added makefile. --- .gitignore | 3 ++- Makefile | 11 +++++++++++ tests.sh | 5 ----- 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 Makefile delete mode 100755 tests.sh 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