source: proto/parabix2/src/Makefile @ 1598

Last change on this file since 1598 was 1598, checked in by ksherdy, 8 years ago

Deleted unused Make targets.

File size: 1.2 KB
Line 
1OUTFILE=xmlwf
2OUTFILE_XERCES=xmlwf_xerces
3
4SRCFILE=xmlwf.cpp
5SRCFILE_XERCES=xmlwf_xerces.cpp
6
7TEST= run_all.py
8
9CC= g++ $(CFLAGS)
10CFLAGS= $(SSE) -O3
11SSE=-msse2 #-msse4.1 -DUSE_PTEST #-mssse3 -msse4.1 -msse4.2
12
13PAPI_DIR=/usr/local/papi
14
15ARCH=$(shell getconf LONG_BIT)
16ifeq ($(ARCH),32)
17    AFLAGS=-march=pentium4
18    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
19else
20    AFLAGS=-march=nocona -m64
21    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
22endif
23
24all:    $(SRCFILE)
25        $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) 
26
27avx:    $(SRCFILE)
28        $(CC) -o $(OUTFILE) $(SRCFILE) -march=nocona -m64 -mavx
29
30threads:        $(SRCFILE)
31        g++ -O3 -msse2 -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -lpthread -DBUFFER_PROFILING
32
33buffer_profiling: $(SRCFILE)
34        $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING
35
36buffer_profiling_perf: $(SRCFILE)
37        $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING  -DPERF_SCRIPT
38
39asm:  $(SRCFILE)
40        $(CC) -o $(OUTFILE).s $(SRCFILE) $(AFLAGS) -S -fverbose-asm
41       
42as: $(OUTFILE).s
43        as $(OUTFILE).s -o $(OUTFILE).o
44       
45as.o: $(OUTFILE).o
46        $(CC) $(OUTFILE).o -o $(OUTFILE)       
47
48test: 
49        python $(TEST)
50
51clean: 
52        rm -f $(OUTFILE) $(OUTFILE).s $(OUTFILE).o
Note: See TracBrowser for help on using the repository browser.