2023-11-28 10:43:57 -04:00
|
|
|
.PHONY: clean build test all
|
|
|
|
|
2023-11-28 10:42:46 -04:00
|
|
|
clean:
|
2023-11-28 10:48:55 -04:00
|
|
|
mkdir -p ./student_out
|
|
|
|
rm -f ./student_out/*
|
|
|
|
rm -f ./a.out
|
2023-11-28 10:42:46 -04:00
|
|
|
|
|
|
|
build:
|
2023-11-28 20:33:23 -04:00
|
|
|
gcc -g -O0 ./code/main.c ./code/disk.c -lm
|
2023-11-28 10:39:46 -04:00
|
|
|
1:
|
|
|
|
./a.out F < in/all_known_in_advance_spaces.in > student_out/f-in-advance.out && diff student_out/f-in-advance.out out/f-in-advance.out
|
|
|
|
2:
|
|
|
|
./a.out C < in/all_known_in_advance_spaces.in > student_out/c-in-advance.out && diff student_out/c-in-advance.out out/c-in-advance.out
|
|
|
|
3:
|
|
|
|
./a.out F < in/time_dependent_spaces.in > student_out/f-time_dependent.out && diff student_out/f-time_dependent.out out/f-time_dependent.out
|
|
|
|
4:
|
|
|
|
./a.out C < in/time_dependent_spaces.in > student_out/c-time_dependent.out && diff student_out/c-time_dependent.out out/c-time_dependent.out
|
|
|
|
5:
|
|
|
|
./a.out F < in/time_dependent_second_spaces.in > student_out/f-time_dependent_second.out && diff student_out/f-time_dependent_second.out out/f-time_dependent_second.out
|
|
|
|
6:
|
|
|
|
./a.out C < in/time_dependent_second_spaces.in > student_out/c-time_dependent_second.out && diff student_out/c-time_dependent_second.out out/c-time_dependent_second.out
|
|
|
|
|
2023-11-28 10:42:46 -04:00
|
|
|
test: build 1 2 3 4 5 6
|
|
|
|
|
|
|
|
all: clean build test
|