source: proto/s2k/trunk/demo/transpose/Makefile @ 4092

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

Cleaned up transpose demo.

File size: 716 bytes
Line 
1OUTFILE=transpose
2SRCFILE=transpose.cpp
3TESTFILE=test/transpose.dat
4
5CC= g++ $(CFLAGS)
6CFLAGS= $(SSE) -O3 -std=gnu++0x
7SSE=-msse2 #-msse4.1 -DUSE_PTEST #-mssse3 -msse4.1 -msse4.2
8INCLUDES= -I./lib -I./lib/cc-lib
9
10PAPI_DIR=/usr/local/papi
11
12ARCH=$(shell getconf LONG_BIT)
13ifeq ($(ARCH),32)
14    AFLAGS=-march=pentium4
15    PAPI=-I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
16else
17    AFLAGS=-march=nocona -m64
18    PAPI=-I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
19endif
20
21all: transpose
22
23transpose:      $(SRCFILE)
24        $(CC) -o $(OUTFILE) $(SRCFILE) $(INCLUDES) $(AFLAGS) -DBASIS_BITS
25
26test: $(OUTFILE)
27        ./$(OUTFILE) $(TESTFILE)
28
29latex:
30        python transpose_demo.py
31
32clean:
33        rm -f $(OUTFILE)
Note: See TracBrowser for help on using the repository browser.