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