Ignore:
Timestamp:
Oct 24, 2012, 1:32:15 PM (6 years ago)
Author:
ksherdy
Message:

Updated JSON project. Migration to IDISA library needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/JSON/src/Makefile

    r791 r2548  
    11SRCFILE=json.c
    2 PYBIT_SRCFILE=pybit_json.c
    32PABLO_SRCFILE=pablo_json.c
    43
    54OUTFILE=json
    6 PYBIT_OUTFILE=pybit_json
     5
    76PABLO_OUTFILE=pablo_json
    87
     
    2019
    2120PAPI_DIR=/usr/local/papi
     21
    2222ARCH=$(shell getconf LONG_BIT)
    2323ifeq ($(ARCH),32)
    2424    AFLAGS=-march=pentium4
    25     CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
     25    PAPI=-I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
    2626else
    2727    AFLAGS=-march=nocona -m64
    28     CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
     28    PAPI=-I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib
    2929endif
    30 
    31 pybit:  $(PYBIT_SRCFILE)
    32         $(CC) -o $(PYBIT_OUTFILE) $(PYBIT_SRCFILE) $(AFLAGS)
    3330
    3431pablo:  $(PABLO_SRCFILE)
    3532        $(CC) -o $(PABLO_OUTFILE) $(PABLO_SRCFILE) $(AFLAGS)
    36 
    37 all:    $(SRCFILE)
    38         $(CC) -o $(OUTFILE) $(SRCFILE) $(AFLAGS)
    39 
    40 asm:  $(SRCFILE)
    41         $(CC) -o $(OUTFILE).s $(SRCFILE) $(AFLAGS) -S -fverbose-asm
    42        
    43 as: $(OUTFILE).s
    44         as $(OUTFILE).s -o $(OUTFILE).o
    45        
    46 as.o: $(OUTFILE).o
    47         $(CC) $(OUTFILE).o -o $(OUTFILE)       
    48 
    49 test: $(SRCFILE)
    50         python $(TEST)
    5133
    5234clean: 
Note: See TracChangeset for help on using the changeset viewer.