| 1 |
CXXFLAGS=--std=c++17 -fcontract-continuation-mode=on |
| 2 |
LDFLAGS=-ldl |
| 3 |
|
| 4 |
default: assert_fail libhandle_contract_violation.so libnocontinue.so |
| 5 |
|
| 6 |
run: default |
| 7 |
./assert_fail |
| 8 |
|
| 9 |
runno: default |
| 10 |
LD_PRELOAD="./libnocontinue.so ./libhandle_contract_violation.so" ./assert_fail |
| 11 |
|
| 12 |
runnostd: default |
| 13 |
LD_PRELOAD=./libnocontinue.so ./assert_fail |
| 14 |
|
| 15 |
./libhandle_contract_violation.so: ./handle_contract_violation.cpp |
| 16 |
${CXX} ${CXXFLAGS} -shared -fPIC -o $@ $< |
| 17 |
|
| 18 |
./libnocontinue.so: ./nocontinue.cpp |
| 19 |
${CXX} ${CXXFLAGS} -shared -fPIC -o $@ $< |
| 20 |
|
| 21 |
clean: |
| 22 |
rm -fr ./libhandle_contract_violation.so ./libnocontinue.so ./assert_fail |
| 23 |
|