GCC = gcc -g -std=gnu99 all: timetest timetest: timestamp.o timetest.o gcc -o $@ timestamp.o timetest.o -lrt %.o: %.s $(GCC) -O0 -c $< %.s: %.c $(GCC) -O0 -S $< clean: rm -f *~ timetest *.o *.s .PHONY: clean