mirror of
https://github.com/kgabis/parson.git
synced 2024-11-24 06:05:29 +00:00
3c4ee26dbb
Issue #200
25 lines
565 B
Makefile
25 lines
565 B
Makefile
CC = gcc
|
|
CFLAGS = -O0 -g -Wall -Wextra -Wno-deprecated-declarations -std=c89 -pedantic-errors -DTESTS_MAIN
|
|
|
|
CPPC = g++
|
|
CPPFLAGS = -O0 -g -Wall -Wextra -Wno-deprecated-declarations -DTESTS_MAIN
|
|
|
|
all: test testcpp test_hash_collisions
|
|
|
|
.PHONY: test testcpp test_hash_collisions
|
|
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
|
|
./$@
|
|
|
|
clean:
|
|
rm -f test *.o
|
|
|