source: trunk/symtab/Makefile @ 1776

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

SymbolTable?: Integrated symbol table with the new IDISA architecture

File size: 829 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../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
24obj:    $(SRCFILE)
25        $(CC) $(INCLUDES_IDISA) -c $(SRCFILE) -DUSE_IDISA   # $(AFLAGS) $(PAPI)
26
27
28clean:
29        rm -f driver *.o *.a
Note: See TracBrowser for help on using the repository browser.