Added makefile.

This commit is contained in:
Krzysztof Gabis 2012-12-02 18:16:12 +01:00
parent b2dbaece40
commit 962d9f13ba
3 changed files with 13 additions and 6 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
.DS_Store .DS_Store
test

11
Makefile Normal file
View File

@ -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

View File

@ -1,5 +0,0 @@
#!/bin/bash
gcc tests.c parson.c -Wall -pedantic-errors -std=c89 -o test
./test
rm -f *.o
rm test