all: sort_file time_sort %.o: %.c gcc -c $< time_sort: time_sort.o insertion_sort.o merge_sort.o gcc -o time_sort time_sort.o insertion_sort.o merge_sort.o -lm sort_file: sort_file.o merge_sort.o gcc -o sort_file sort_file.o merge_sort.o -lm ## The following lines are not necessary any more because of the ## generic rule to create .o files above: # insertion_sort.o: insertion_sort.c # gcc -c insertion_sort.c # merge_sort.o: merge_sort.c # gcc -c merge_sort.c # sort_file.o: sort_file.c # gcc -c sort_file.c # time_sort.o: time_sort.c # gcc -c time_sort.c