cppcourse/Makefile
2023-03-10 18:38:13 +01:00

72 lines
1.4 KiB
Makefile
Executable File

CC := clang++ -Wall -std=c++17 -Wall -Wextra -g -fsanitize=address,undefined -fno-omit-frame-pointer
#CC := clang++ -Wall -std=c++17 -Wall -Wextra
setup:
mkdir build
chmod -R +x src/
sheet0:
$(CC) src/sheet00.cpp -o build/sheet0
chmod +x build/sheet0
build/sheet0
sheet01:
$(CC) src/sheet01.cpp -o build/sheet01
chmod +x build/sheet01
build/sheet01
sheet02:
$(CC) src/sheet02.cpp -o build/sheet02
chmod +x build/sheet02
build/sheet02
sheet03:
$(CC) src/sheet03.cpp src/MyType.cpp -o build/sheet03
chmod +x build/sheet03
build/sheet03
sheet04:
$(CC) src/sheet04.cpp -o build/sheet04
chmod +x build/sheet04
build/sheet04
sheet05:
$(CC) src/sheet05.cpp -o build/sheet05
chmod +x build/sheet05
build/sheet05
sheet06:
$(CC) src/sheet06.cpp -o build/sheet06
chmod +x build/sheet06
build/sheet06
sheet07:
$(CC) src/sheet07.cpp -o build/sheet07
chmod +x build/sheet07
build/sheet07
sheet08:
$(CC) src/sheet08.cpp -o build/sheet08
chmod +x build/sheet08
build/sheet08
sheet09:
$(CC) src/sheet09.cpp -o build/sheet09
chmod +x build/sheet09
build/sheet09 src/grid src/grid 1
HTable:
$(CC) src/HTable.cpp -o build/HTable
chmod +x build/HTable
build/HTable src/grid src/grid 1
pizza:
$(CC) src/pizza.cpp -o build/pizza
chmod +x build/pizza
build/pizza
probability:
$(CC) src/probability.cpp -o build/probability
chmod +x build/probability
build/probability