source: trunk/lib/symtab/Makefile @ 1517

Last change on this file since 1517 was 1517, checked in by vla24, 8 years ago

SymbolTable?: clean up and fix idisa library calls

File size: 988 bytes
Line 
1CC= g++ -g $(CFLAGS)
2SSE=-msse2 #-mssse3 #-msse4.2
3CFLAGS= $(SSE) -O3
4SRCFILE=ls_symbol_table.cxx hash_symbol_table.cpp symtab.cxx bitstream_hash_table.cpp
5INCLUDES_IDISA = -I../../../../trunk/libgen/idisa_lib/
6
7PAPI_DIR=/usr/local/papi-4.0.0
8ARCH=$(shell getconf LONG_BIT)
9ifeq ($(ARCH),32)
10    AFLAGS=-march=pentium4
11    PAPI=-DPAPI -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
12else
13    AFLAGS=-march=nocona -m64
14    PAPI=-DPAPI -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
15endif
16
17all:    driver.cxx symtab.cxx lib
18        $(CC) -o driver -static driver.cxx symtab.cxx hash_symbol_table.cpp -L. -lsymtab
19        # $(CC) -o driver driver.cxx symtab.cxx ls_symbol_table.cxx # $(AFLAGS) $(PAPI)
20
21lib:    obj
22        ar -rs libsymtab.a *.o  # $(AFLAGS) $(PAPI)
23
24lib_idisa:obj_idisa
25        ar -rs libsymtab.a *.o    # $(AFLAGS) $(PAPI)
26
27obj:    $(SRCFILE)
28        $(CC) -c $(SRCFILE) # $(AFLAGS) $(PAPI)
29
30obj_idisa:$(SRCFILE)
31        $(CC) $(INCLUDES_IDISA) -c $(SRCFILE) -DUSE_IDISA   # $(AFLAGS) $(PAPI)
32
33
34clean:
35        rm -f driver *.o *.a
Note: See TracBrowser for help on using the repository browser.