BIN = myprog

${BIN}: list.o main.o
	gcc -o $@ $^

%.o: %.c list.h
	gcc -c $<

clean:
	rm ${BIN} *.o
