source: perf/stream2runs/Makefile @ 4886

Last change on this file since 4886 was 499, checked in by ksherdy, 9 years ago

Substitute preprocessor define PAPI with preprocessor define CODE_CLOCKER.

File size: 494 bytes
Line 
1CC= g++ -g $(CFLAGS)
2SSE=-msse2 #-mssse3 #-msse4.2
3CFLAGS= $(SSE) 
4
5PAPI_DIR=/usr/local/papi-4.0.0
6ARCH=$(shell getconf LONG_BIT)
7ifeq ($(ARCH),32)
8    AFLAGS=-march=pentium4
9    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
10else
11    AFLAGS=-march=nocona -m64
12    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
13endif
14
15all:    src/stream2runs.cxx
16        $(CC) -o stream2runs src/stream2runs.cxx $(AFLAGS) $(PAPI)
17                 
18clean:
19        rm -f stream2runs
20       
Note: See TracBrowser for help on using the repository browser.