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
RevLine 
[741]1SRCFILE=json.c
[791]2PABLO_SRCFILE=pablo_json.c
3
[741]4OUTFILE=json
[2548]5
[791]6PABLO_OUTFILE=pablo_json
7
[741]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
[2548]21
[741]22ARCH=$(shell getconf LONG_BIT)
23ifeq ($(ARCH),32)
24    AFLAGS=-march=pentium4
[2548]25    PAPI=-I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
[741]26else
27    AFLAGS=-march=nocona -m64
[2548]28    PAPI=-I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
[741]29endif
30
[791]31pablo:  $(PABLO_SRCFILE)
32        $(CC) -o $(PABLO_OUTFILE) $(PABLO_SRCFILE) $(AFLAGS) 
33
[741]34clean: 
[791]35        rm -f $(OUTFILE) $(OUTFILE).s $(OUTFILE).o $(PYBIT_OUTFILE) $(PABLO_OUTFILE)
[741]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.