Using thread's tsc count instead of performance counter Refs: #1025 Change-Id: I1d7a18f1c52f1d52087002d31818638a6b206014
40 lines
725 B
Makefile
40 lines
725 B
Makefile
CC = gcc
|
|
TARGET=perf_test perf_case_a perf_case_b perf_case_c perf_case_d perf_case_e perf_case_f
|
|
|
|
CPPFLAGS =
|
|
LDFLAGS =
|
|
|
|
ARCH=$(shell uname -p)
|
|
|
|
all: $(TARGET)
|
|
|
|
perf_tool.o: perftool.c perftool.h
|
|
|
|
perf_test: perf_test.c perftool.o
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
perf_case_a: perf_case_a.c perftool.o
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
perf_case_b: perf_case_b.c perftool.o
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
perf_case_c: perf_case_c.c perftool.o
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
perf_case_d: perf_case_d.c perftool.o
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
perf_case_e: perf_case_e.c perftool.o
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
perf_case_f: perf_case_f.c perftool.o
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
test: all
|
|
@sh ./C1025_$(ARCH).sh
|
|
|
|
clean:
|
|
rm -f $(TARGET) *.o *.txt
|
|
|