-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
37 lines (26 loc) · 874 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
TARGETS=measure_pstate_latency set_pstate get_pstate \
monitor_pstate raplreader_test etrace2
CC=gcc
CFLAGS=-O2 -Wall -g -fopenmp
LDFLAGS=-lgomp
all: $(TARGETS)
intercoolr.o : intercoolr.c intercoolr.h
libintercoolr.a : intercoolr.o raplreader.o
$(RM) $@
$(AR) cq $@ $^
measure_pstate_latency : measure_pstate_latency.c libintercoolr.a
$(CC) -o $@ $(CFLAGS) $< -L. -lintercoolr
set_pstate : set_pstate.c libintercoolr.a
$(CC) -o $@ $(CFLAGS) $< -L. -lintercoolr $(LDFLAGS)
get_pstate : get_pstate.c libintercoolr.a
$(CC) -o $@ $(CFLAGS) $< -L. -lintercoolr $(LDFLAGS)
monitor_pstate : monitor_pstate.c libintercoolr.a
$(CC) -o $@ $(CFLAGS) $< -L. -lintercoolr $(LDFLAGS)
raplreader_test: raplreader.c
$(CC) -o $@ $(CFLAGS) -D__TEST_MAIN__ $<
etrace2: etrace2.c raplreader.c
$(CC) -o $@ $(CFLAGS) $^ -lm
clean:
rm -f $(TARGETS)
rm -f *.o *.a
rm -f *~