source: proto/parabix2/src/Makefile @ 504

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

Add 'CARRY_STRATEGY' Makefile variable.

File size: 772 bytes
Line 
1SRCFILE=xmlwf.c
2OUTFILE=xmlwf
3CARRY_STRATEGY=
4
5CC= g++ $(CFLAGS)
6CFLAGS= -O3 $(SSE)
7SSE=-msse2 -mssse3 -msse4.2 -msse4.2
8
9OS = $(shell uname)
10ICONV_FLAGS=
11ifeq ($(OS),Darwin)
12        ICONV_FLAGS=-liconv
13endif
14
15PAPI_DIR=/usr/local/papi-4.0.0
16
17ARCH=$(shell getconf LONG_BIT)
18ifeq ($(ARCH),32)
19    AFLAGS=-march=pentium4
20    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
21else
22    AFLAGS=-march=nocona -m64
23    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
24endif
25
26all:    $(SRCFILE)
27        $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS)
28
29code_clocker:   $(SRCFILE)
30        $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) $(CODE_CLOCKER)
31
32buffer_profiling: $(SRCFILE)
33        $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING     
34
35clean: 
36        rm -f $(OUTFILE)
Note: See TracBrowser for help on using the repository browser.