exile.h/Makefile
Albert S 7f083909e6 exile.h: Move definitions to new file exile.c
Especially with exile_launch(), we will be included
from more than one translation unit. Thus, ODR becomes
a headache now.

So move definitions to exile.c.
2022-03-15 08:48:04 +01:00

24 γραμμές
390 B
Makefile

prefix = /usr/local
bindir = $(prefix)/bin
CFLAGS = -std=c99 -Wall -Wextra -pedantic
CXXFLAGS = -std=c++20 -Wall -Wextra -pedantic
.DEFAULT_GOAL := tests
clean:
rm -f test testcpp
test: test.c exile.h
$(CC) test.c exile.c -g $(CFLAGS) -o test
testcpp: test.cpp exile.h exile.hpp
$(CXX) test.cpp -g $(CXXFLAGS) -o testcpp
tests: test testcpp
check: tests
./test.sh
.PHONY: check