parson/Makefile

21 lines
321 B
Makefile
Raw Normal View History

2012-12-02 17:40:13 +00:00
CC = gcc
2012-12-02 17:16:12 +00:00
CFLAGS = -O0 -g -Wall -Wextra -std=c89 -pedantic-errors
CPPC = g++
CPPFLAGS = -O0 -g -Wall -Wextra
2012-12-02 17:16:12 +00:00
all: test testcpp
.PHONY: test testcpp
2012-12-02 17:16:12 +00:00
test: tests.c parson.c
$(CC) $(CFLAGS) -o $@ tests.c parson.c
./$@
testcpp: tests.c parson.c
$(CPPC) $(CPPFLAGS) -o $@ tests.c parson.c
./$@
2012-12-02 17:16:12 +00:00
clean:
rm -f test *.o