You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
parson/Makefile

25 lines
507 B

12 years ago
CC = gcc
CFLAGS = -O0 -g -Wall -Wextra -std=c89 -pedantic-errors -DTESTS_MAIN
12 years ago
CPPC = g++
CPPFLAGS = -O0 -g -Wall -Wextra -DTESTS_MAIN
12 years ago
all: test testcpp test_hash_collisions
.PHONY: test testcpp test_hash_collisions
12 years ago
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
./$@
12 years ago
clean:
rm -f test *.o