-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
32 lines (24 loc) · 1.43 KB
/
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
# Makefile for StencilProbe
#
#
CC = gcc
COPTFLAGS = $(PAPI) -O3
CLDFLAGS = $(PAPI)
# the line below defines timers. if not defined, will attempt to automatically
# detect available timers. See cycle.h.
# should be set to -DHAVE_PAPI or -DHAVEGETTIMEOFDAY or unset.
#TIMER = -DHAVE_PAPI
probe: main.c util.c run.h probe_heat.c cycle.h
$(CC) $(COPTFLAGS) $(TIMER) -DRANDOMVALUES main.c util.c probe_heat.c $(CLDFLAGS) -o probe
circqueue_probe: main.c util.c run.h probe_heat_circqueue.c cycle.h
$(CC) $(COPTFLAGS) $(TIMER) -DRANDOMVALUES -DCIRCULARQUEUEPROBE main.c util.c probe_heat_circqueue.c $(CLDFLAGS) -o probe
timeskew_probe: main.c util.c run.h probe_heat_timeskew.c cycle.h
$(CC) $(COPTFLAGS) $(TIMER) -DRANDOMVALUES main.c util.c probe_heat_timeskew.c $(CLDFLAGS) -o probe
oblivious_probe: main.c util.c run.h probe_heat_oblivious.c cycle.h
$(CC) $(COPTFLAGS) $(TIMER) -DRANDOMVALUES main.c util.c probe_heat_oblivious.c $(CLDFLAGS) -o probe
blocked_probe: main.c util.c probe_heat_blocked.c cycle.h
$(CC) $(COPTFLAGS) $(TIMER) -DRANDOMVALUES main.c util.c probe_heat_blocked.c $(CLDFLAGS) -o probe
test: main.c util.c run.h probe_heat.c cycle.h probe_heat_blocked.c probe_heat_oblivious.c probe_heat_timeskew.c probe_heat_circqueue.c
$(CC) $(COPTFLAGS) -DSTENCILTEST main.test.c util.c probe_heat.c probe_heat_blocked.c probe_heat_oblivious.c probe_heat_timeskew.c probe_heat_circqueue.c $(CLDFLAGS) -o probe
clean:
rm -f *.o probe