Makefile


all:		latency histogram

latency:	latency.o test_common.o rpi_pmu.o
		gcc -o latency latency.o test_common.o rpi_pmu.o

latency.o:	latency.c
		gcc -c -O2 latency.c

test_common.o:	../test_common/test_common.c ../test_common/test_common.h
		gcc -c ../test_common/test_common.c

rpi_pmu.o:	../test_common/rpi_pmu.c ../test_common/rpi_pmu.h
		gcc -c ../test_common/rpi_pmu.c

histogram:	histogram.c
		gcc -o histogram histogram.c

clean:
		rm latency *.o