source: proto/FIX/src/Makefile @ 3370

Last change on this file since 3370 was 2557, checked in by ksherdy, 7 years ago

Removed CODE_CLOCKER reference.

File size: 958 bytes
Line 
1SRCFILE=fixcheck.cpp
2OUTFILE=fixcheck
3TEST= run_all.py
4
5CC= g++ $(CFLAGS)
6CFLAGS= $(SSE) -O3
7SSE=-msse2 #-msse4.1 -DUSE_PTEST #-mssse3 -msse4.1 -msse4.2
8
9PAPI_DIR=/usr/local/papi
10
11ARCH=$(shell getconf LONG_BIT)
12ifeq ($(ARCH),32)
13    AFLAGS=-march=pentium4
14    PAPI = -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
15else
16    AFLAGS=-march=nocona -m64
17    PAPI = -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
18endif
19
20sse2:   $(SRCFILE)
21        $(CC) -o $(OUTFILE) $(SRCFILE) -march=nocona -m64 -msse2
22
23O1:     $(SRCFILE)
24        g++ -O1 -o $(OUTFILE) $(SRCFILE) -march=nocona -m64 -msse2 -DBUFFER_PROFILING
25
26
27buffer_profiling: $(SRCFILE)
28        $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING
29
30buffer_profiling_perf: $(SRCFILE)
31        $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING  -DPERF_SCRIPT
32
33asm:  $(SRCFILE)
34        $(CC) -o $(OUTFILE).s $(SRCFILE) $(AFLAGS) -S -fverbose-asm
35       
36clean: 
37        rm -f $(OUTFILE) $(OUTFILE).s $(OUTFILE).o
Note: See TracBrowser for help on using the repository browser.