-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
18 lines (13 loc) · 845 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
main: main.o trycatchc_test.o Makefile
gcc -Wall -Wextra -Werror -Wfatal-errors -fopenmp -O3 main.o trycatchc_test.o -lm -o main
trycatchc_test.o: trycatchc.c trycatchc.h Makefile
gcc -std=c17 -pedantic -Wall -Wextra -Werror -Wfatal-errors -fopenmp -O3 -DTryCatchMaxExcLvl=3 -DCOMMIT=`git rev-parse HEAD` -c trycatchc.c; mv trycatchc.o trycatchc_test.o
trycatchc.o: trycatchc.c trycatchc.h Makefile
gcc -std=c17 -pedantic -Wall -Wextra -Werror -Wfatal-errors -fopenmp -O3 -DCOMMIT=`git rev-parse HEAD` -c trycatchc.c
main.o: main.c trycatchc.h Makefile
gcc -std=c17 -pedantic -Wall -Wextra -Werror -Wfatal-errors -fopenmp -O3 -c main.c
install: trycatchc.o
rm -rf /usr/local/include/TryCatchC
mkdir /usr/local/include/TryCatchC
cp trycatchc.h /usr/local/include/TryCatchC/trycatchc.h
ar -r /usr/local/lib/libtrycatchc.a trycatchc.o