source: proto/CSV/csv2xml/src/Makefile @ 2663

Last change on this file since 2663 was 2663, checked in by linmengl, 6 years ago

use store_unaligned to for speed

File size: 732 bytes
Line 
1OUTFILE=csv
2SRCFILE=csv.cpp
3TEST=run_all.py
4PERF=perf_script.py
5
6CC= g++ $(CFLAGS)
7CFLAGS= $(SSE) -O3
8SSE=-msse2 #-msse4.1 -DUSE_PTEST #-mssse3 -msse4.1 -msse4.2
9INCLUDES=-I../lib/ -I../util/
10
11PAPI_DIR=/usr/local/papi
12
13ARCH=$(shell getconf LONG_BIT)
14ifeq ($(ARCH),32)
15    AFLAGS=-march=pentium4
16    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
17else
18    AFLAGS=-march=nocona -m64
19    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
20endif
21
22all:    $(SRCFILE)
23        $(CC) -o $(OUTFILE) $(SRCFILE) $(INCLUDES) $(AFLAGS)
24
25perf:   $(SRCFILE)
26        $(CC) -o $(OUTFILE) $(SRCFILE) $(INCLUDES) $(AFLAGS) -DBUFFER_PROFILING
27
28debug:  $(SRCFILE)
29        $(CC) -g -o $(OUTFILE) $(SRCFILE) $(INCLUDES) $(AFLAGS)
Note: See TracBrowser for help on using the repository browser.