myprog: list.o main.o
	gcc $^ -o $@

list.o: list.c list.h
	gcc -c list.c

main.o: main.c list.h
	gcc -c main.c

clean:
	rm myprog *.o

