BIN = myprog		# new variable

${BIN}: list.o main.o
	gcc $^ -o $@	# $@ == target, $^ == all prerequisites

%.o: %.c list.h
	gcc -c $<	# $< == first prerequisite

clean:
	rm ${BIN} *.o

