exile.h/Makefile

24 lines
390 B
Makefile
Raw Normal View History

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
.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
test: test.c exile.h
$(CC) test.c exile.c -g $(CFLAGS) -o test
2021-06-05 14:07:11 +02:00
testcpp: test.cpp exile.h exile.hpp
2022-01-29 23:28:55 +01:00
$(CXX) test.cpp -g $(CXXFLAGS) -o testcpp
tests: test testcpp
check: tests
2021-06-05 14:07:11 +02:00
./test.sh
.PHONY: check