source: proto/s2k/demo/strtoll/src/Makefile @ 3611

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

Commit s2l library demo files.

File size: 1.3 KB
Line 
1PARALLEL_STRTOLL_OUTFILE=parallel_strtoll
2PARALLEL_STRTOLL_SRCFILE=parallel_strtoll.cpp
3STRTOLL_OUTFILE=strtoll
4STRTOLL_SRCFILE=strtoll.cpp
5POUTFILE=pstrtoll
6PSTRTOLL_SRCFILE=pstrtoll.cpp
7#TESTFILE0=../test/strtoll0.dat
8#TESTFILE1=../test/strtoll1.dat
9TESTFILE2=../test/strtoll2.dat
10#TESTFILE3=../test/strtoll3.dat
11#TESTFILE4=../test/strtoll4.dat
12
13CC= g++ $(CFLAGS)
14CFLAGS= $(SSE) -O3 -std=gnu++0x
15SSE=-msse2 #-msse4.1 -DUSE_PTEST #-mssse3 -msse4.1 -msse4.2
16INCLUDES= -I../lib #-I../lib/cc-lib
17
18PAPI_DIR=/usr/local/papi
19
20ARCH=$(shell getconf LONG_BIT)
21ifeq ($(ARCH),32)
22    AFLAGS=-march=pentium4
23    PAPI=-I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
24else
25    AFLAGS=-march=nocona -m64
26    PAPI=-I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
27endif
28
29parallel_strtoll: $(PARALLEL_STRTOLL_SRCFILE)
30        $(CC) -o $(PARALLEL_STRTOLL_OUTFILE) $(PARALLEL_STRTOLL_SRCFILE) $(INCLUDES) $(AFLAGS) -DBASIS_BITS
31
32parallel_strtoll_test: $(PARALLEL_STRTOLL_OUTFILE)     
33        ./$(PARALLEL_STRTOLL_OUTFILE) $(TESTFILE2)
34
35#strtoll:       $(STRTOLL_SRCFILE)
36#       $(CC) -o $(STRTOLL_OUTFILE) $(STRTOLL_#SRCFILE) $(INCLUDES) $(AFLAGS)
37
38#pstrtoll:      $(PSTRTOLL_SRCFILE)
39#       $(CC) -o $(PSTRTOLL) $(STRTOLL_SRCFILE) $(INCLUDES) $(AFLAGS)
40
41clean:
42        rm -Rf $(IDISA_OUTFILE) $(STRTOLL_OUTFILE) $(PSTRTOLL_OUTFILE)
43
44
Note: See TracBrowser for help on using the repository browser.