source: proto/s2k/trunk/framework/output/cpplang/idisa/Makefile @ 3843

Last change on this file since 3843 was 3843, checked in by ksherdy, 5 years ago

Additional fixes.

File size: 556 bytes
Line 
1OUTFILE=idisa
2SRCFILE=idisa.cpp
3
4CC= g++ $(CFLAGS)
5CFLAGS= $(SSE) -O2
6SSE=-msse2 #-msse4.1 -DUSE_PTEST #-mssse3 -msse4.1 -msse4.2
7SIMD_LIB=/home/ksherdy/workspace
8INCLUDES=-I$(SIMD_LIB)
9
10ARCH=$(shell getconf LONG_BIT)
11ifeq ($(ARCH),32)
12    AFLAGS=-march=pentium4
13    PAPI=-I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
14else
15    AFLAGS=-march=nocona -m64
16    PAPI=-I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
17endif
18
19all:    $(SRCFILE)
20        $(CC) -o $(OUTFILE) $(SRCFILE) $(INCLUDES) $(AFLAGS) 
21
22clean: 
23        rm -f $(OUTFILE) 
24
25
Note: See TracBrowser for help on using the repository browser.