.PHONY: check check: arithmetic exceptions parallel graphite optimizers transaction printf '\n' | c99 -dM -E - | grep -Fx '#define __STDC_VERSION__ 199901L' printf '\n' | c89 -dM -E - >c89-macros if grep -q __STDC_VERSION__ c89-macros; then exit 1; fi if c89 -std=c99 -v >/dev/null 2>&1; then exit 1; fi ./arithmetic ./exceptions ./parallel ./graphite ./optimizers ./transaction readelf -d transaction | grep -F '[libitm.so.1]' grep -Eq 'number of SCoPs: [1-9]|SCoP statistics' graphite.dump arithmetic: arithmetic.c $(CC) -std=c17 -Wall -Wextra -o $@ $< -lmpc -lmpfr -lgmp exceptions: exceptions.cc $(CXX) -std=c++17 -Wall -Wextra -o $@ $< parallel: parallel.c $(CC) -std=gnu17 -Wall -Wextra -fopenmp -o $@ $< -latomic transaction: transaction.c $(CC) -std=gnu17 -Wall -Wextra -fgnu-tm -pthread -o $@ $< graphite.o: graphite.c $(CC) -O2 -fgraphite-identity -fdump-tree-graphite-details=graphite.dump -c -o $@ $< graphite: optimizers.c graphite.o $(CC) -O2 -o $@ $^ libgraphite.a: graphite.c $(CC) -O2 -flto -fno-fat-lto-objects -c -o graphite-lto.o $< $(AR) rcs $@ graphite-lto.o gcc-ar t $@ | grep -Fx graphite-lto.o gcc-ranlib $@ gcc-nm --defined-only $@ | grep -E '[[:space:]]T[[:space:]]fill_rows$$' optimizers: optimizers.c libgraphite.a $(CC) -O2 -flto -o $@ $^