mirror of https://github.com/kgabis/parson.git
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.
20 lines
321 B
20 lines
321 B
CC = gcc
|
|
CFLAGS = -O0 -g -Wall -Wextra -std=c89 -pedantic-errors
|
|
|
|
CPPC = g++
|
|
CPPFLAGS = -O0 -g -Wall -Wextra
|
|
|
|
all: test testcpp
|
|
|
|
.PHONY: test testcpp
|
|
test: tests.c parson.c
|
|
$(CC) $(CFLAGS) -o $@ tests.c parson.c
|
|
./$@
|
|
|
|
testcpp: tests.c parson.c
|
|
$(CPPC) $(CPPFLAGS) -o $@ tests.c parson.c
|
|
./$@
|
|
|
|
clean:
|
|
rm -f test *.o
|
|
|
|
|