Add test.cpp to test C++ API

This commit is contained in:
2022-01-29 23:28:55 +01:00
부모 f13cff754c
커밋 99d26480d7
2개의 변경된 파일85개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

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