parson/Makefile

25 lines
507 B
Makefile
Raw Permalink Normal View History

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