2021-06-05 14:07:11 +02:00
|
|
|
prefix = /usr/local
|
|
|
|
bindir = $(prefix)/bin
|
|
|
|
CFLAGS = -std=c99 -Wall -Wextra -pedantic
|
2022-01-29 23:28:55 +01:00
|
|
|
CXXFLAGS = -std=c++20 -Wall -Wextra -pedantic
|
2021-06-05 14:07:11 +02:00
|
|
|
|
2022-01-29 23:39:36 +01:00
|
|
|
.DEFAULT_GOAL := tests
|
2021-06-05 14:07:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2022-01-29 23:28:55 +01:00
|
|
|
rm -f test testcpp
|
2021-06-05 14:07:11 +02:00
|
|
|
|
2022-01-29 23:39:36 +01:00
|
|
|
test: test.c exile.h
|
2021-06-05 14:07:11 +02:00
|
|
|
$(CC) test.c -g $(CFLAGS) -o test
|
|
|
|
|
2022-01-29 23:39:36 +01:00
|
|
|
testcpp: test.cpp exile.h exile.hpp
|
2022-01-29 23:28:55 +01:00
|
|
|
$(CXX) test.cpp -g $(CXXFLAGS) -o testcpp
|
|
|
|
|
2022-01-29 23:39:36 +01:00
|
|
|
tests: test testcpp
|
|
|
|
|
|
|
|
check: tests
|
2021-06-05 14:07:11 +02:00
|
|
|
./test.sh
|
|
|
|
|
|
|
|
.PHONY: check
|