source: proto/u16u8/src/Makefile @ 515

Last change on this file since 515 was 515, checked in by cameron, 9 years ago

make asm option for u16u8

File size: 900 bytes
Line 
1SRCFILE=u16u8.c
2OUTFILE=u16u8
3
4CC= g++ $(CFLAGS)
5CFLAGS= -O3 $(SSE)
6SSE=-msse2 -mssse3 -msse4.2 -msse4.2
7
8OS = $(shell uname)
9ICONV_FLAGS=
10ifeq ($(OS),Darwin)
11        ICONV_FLAGS=-liconv
12endif
13
14PAPI_DIR=/usr/local/papi-4.0.0
15
16ARCH=$(shell getconf LONG_BIT)
17ifeq ($(ARCH),32)
18    AFLAGS=-march=pentium4
19    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
20else
21    AFLAGS=-march=nocona -m64
22    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
23endif
24
25all:    $(SRCFILE)
26        $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS)
27
28code_clocker:   $(SRCFILE)
29        $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) $(CODE_CLOCKER)
30
31buffer_profiling: $(SRCFILE)
32        $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING
33
34asm:  $(SRCFILE)
35        $(CC) -o $(OUTFILE).s $(SRCFILE) $(AFLAGS) -S -fverbose-asm
36
37clean: 
38        rm -f $(OUTFILE) $(OUTFILE).s
39ADSFU\cameron@cs-osl-02:~/parabix-wkg/proto/parabix2
Note: See TracBrowser for help on using the repository browser.