Modify makefile

This commit is contained in:
2023-11-28 10:42:46 -04:00
parent b760363dc9
commit 0bff959f1b
4 changed files with 41 additions and 1 deletions

View File

@ -1,4 +1,9 @@
all:
clean:
mkdir -p student_out
rm student_out/*
rm a.out
build:
gcc -g -O0 ./code/*.c -lm
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
@ -13,3 +18,6 @@ all:
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
test: build 1 2 3 4 5 6
all: clean build test