source: proto/JSON/src/Makefile @ 2548

Last change on this file since 2548 was 2548, checked in by ksherdy, 7 years ago

Updated JSON project. Migration to IDISA library needed.

File size: 951 bytes
Line 
1SRCFILE=json.c
2PABLO_SRCFILE=pablo_json.c
3
4OUTFILE=json
5
6PABLO_OUTFILE=pablo_json
7
8TEST= 
9
10CC= g++ $(CFLAGS)
11CFLAGS= $(SSE) -O3
12SSE=-msse2 #-mssse3 -msse4.1 -msse4.2
13
14OS = $(shell uname)
15ICONV_FLAGS=
16ifeq ($(OS),Darwin)
17        ICONV_FLAGS=-liconv
18endif
19
20PAPI_DIR=/usr/local/papi
21
22ARCH=$(shell getconf LONG_BIT)
23ifeq ($(ARCH),32)
24    AFLAGS=-march=pentium4
25    PAPI=-I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
26else
27    AFLAGS=-march=nocona -m64
28    PAPI=-I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
29endif
30
31pablo:  $(PABLO_SRCFILE)
32        $(CC) -o $(PABLO_OUTFILE) $(PABLO_SRCFILE) $(AFLAGS) 
33
34clean: 
35        rm -f $(OUTFILE) $(OUTFILE).s $(OUTFILE).o $(PYBIT_OUTFILE) $(PABLO_OUTFILE)
36
37help:
38        @echo "Preprocessor Macro Defines"
39        @echo
40        @echo "Performance Timing    - CODE_CLOCKER | DBUFFER_PROFILING [PERF_SCRIPT]"
41        @echo "S2P Algorithm         - USE_S2P_IDEAL | USE_S2P_MOVEMASK"
42        @echo "Bitwise Comparision   - USE_PTEST"   
43
Note: See TracBrowser for help on using the repository browser.