source: trunk/lib/symtab/Makefile @ 1229

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

Reorganized SymbolTable? library

File size: 745 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
5
6PAPI_DIR=/usr/local/papi-4.0.0
7ARCH=$(shell getconf LONG_BIT)
8ifeq ($(ARCH),32)
9    AFLAGS=-march=pentium4
10    PAPI=-DPAPI -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
11else
12    AFLAGS=-march=nocona -m64
13    PAPI=-DPAPI -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
14endif
15
16all:    driver.cxx symtab.cxx lib
17        $(CC) -o driver -static driver.cxx symtab.cxx hash_symbol_table.cpp -L. -lsymtab
18        # $(CC) -o driver driver.cxx symtab.cxx ls_symbol_table.cxx # $(AFLAGS) $(PAPI)
19
20lib:    obj
21        ar -rs libsymtab.a *.o  # $(AFLAGS) $(PAPI)
22
23obj:    $(SRCFILE)
24        $(CC) -c $(SRCFILE)  # $(AFLAGS) $(PAPI)
25
26clean:
27        rm -f driver *.o *.a
Note: See TracBrowser for help on using the repository browser.