Files
474proj3/Makefile

41 lines
1.1 KiB
Makefile

all: baboons
#../cppcheck-2.2/cppcheck --enable=warning,performance,portability --error-exitcode=1 -v .
baboons: baboons.o
# gcc -Werror -Wall -O0 baboons.o -o baboons -lpthread -lrt
# gcc -Werror -Wall -O3 baboons.o -o baboons -lpthread -lrt
# gcc -Werror -Wall baboons.o -o baboons -lpthread -lrt
# gcc -Wall baboons.o -o baboons -lpthread -lrt
gcc -O0 -Wall -Wextra -Werror -pedantic baboons.o -o baboons -lpthread -lrt
# gcc -O0 -Wall -Wextra -pedantic baboons.o -o baboons -lpthread -lrt
baboons.o: baboons.c
# gcc -Werror -Wall -O0 -c baboons.c -lpthread -lrt
# gcc -Werror -Wall -O3 -c baboons.c -lpthread -lrt
# gcc -Werror -Wall -c baboons.c -lpthread -lrt
# gcc -Wall -c baboons.c -lpthread -lrt
gcc -Wall -Wextra -Werror -pedantic -c baboons.c -lpthread -lrt
# gcc -Wall -Wextra -pedantic -c baboons.c -lpthread -lrt
clean:
rm -rf *.o
memcheck:
valgrind ./baboons input.dat 3 -s
test: testshort testlong
# RUNNING ALL TESTS
testshort:
# TESTING WITH 1 SECOND FOR QUICK TEST
./baboons input.dat 1
testlong:
# TESTING WITH 6 SECONDS TO DEMONSTRATE LOGIC
./baboons input.dat 6
run:
# Running configured params
./baboons input.dat 3