exile.h/Makefile

24 rader
382 B
Makefile
Normal vy Historik

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
2021-06-05 14:07:11 +02:00
$(CC) test.c -g $(CFLAGS) -o test
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