Changeset 1928 for trunk/symtab/Makefile


Ignore:
Timestamp:
Feb 14, 2012, 4:28:02 PM (7 years ago)
Author:
ksherdy
Message:

Update Makefile targets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/symtab/Makefile

    r1649 r1928  
    1 CC= g++ -g $(CFLAGS)
     1CC= g++ $(CFLAGS) -g
    22SSE=-msse2 #-mssse3 #-msse4.2
    3 CFLAGS= $(SSE) -O3
     3CFLAGS= $(SSE)
    44SRCFILE=ls_symbol_table.cxx hash_symbol_table.cpp symtab.cxx bitstream_hash_table.cpp
    55INCLUDES_IDISA = -I../lib/
     
    88ARCH=$(shell getconf LONG_BIT)
    99ifeq ($(ARCH),32)
    10     AFLAGS=-march=pentium4
     10    AFLAGS=-march=pentium4 
    1111    PAPI=-DPAPI -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
    1212else
     
    1515endif
    1616
    17 all:    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)
     17PABLO_COMPILER=../../Compiler/pablomain.py
     18PABLO_ADD_DEBUG = #-a -b
    2019
    21 lib:    obj
    22         ar -rs libsymtab.a *.o  # $(AFLAGS) $(PAPI)
     20MARKER_PREFIX=@marker_strms_
     21MARKER_PABLO_SRC=marker_strms.py
     22MARKER_TEMPLATE=marker_strms_template.hpp
     23MARKER_OUTFILE=marker_strms.hpp
    2324
    24 obj:    $(SRCFILE)
    25         $(CC) $(INCLUDES_IDISA) -c $(SRCFILE) -DUSE_IDISA   # $(AFLAGS) $(PAPI)
     25HASH_PREFIX=@hash_strms_
     26HASH_PABLO_SRC=hash_strms.py
     27HASH_TEMPLATE=hash_strms_template.hpp
     28HASH_OUTFILE=hash_strms.hpp
    2629
     30IDENTITY_PREFIX=@id_group_strms_
     31IDENTITY_PABLO_SRC=id_group_strms.py
     32IDENTITY_TEMPLATE=id_group_strms_template.hpp
     33IDENTITY_OUTFILE=id_group_strms.hpp
     34
     35MAIN_TEMPLATE=main_template.cpp
     36MAIN_OUTFILE=main.cpp
     37
     38main: main.cpp main_template.cpp marker_strms_template.hpp hash_strms_template.hpp marker_strms.py hash_strms.py id_group_strms.py
     39        python $(PABLO_COMPILER) $(MARKER_PABLO_SRC) -t $(MARKER_TEMPLATE) -l$(MARKER_PREFIX) -o $(MARKER_OUTFILE) $(PABLO_ADD_DEBUG)
     40        python $(PABLO_COMPILER) $(HASH_PABLO_SRC) -t $(HASH_TEMPLATE) -l$(HASH_PREFIX) -o $(HASH_OUTFILE) $(PABLO_ADD_DEBUG)
     41        python $(PABLO_COMPILER) $(IDENTITY_PABLO_SRC) -t $(IDENTITY_TEMPLATE) -l$(IDENTITY_PREFIX) -o $(IDENTITY_OUTFILE) $(PABLO_ADD_DEBUG)
     42        python $(PABLO_COMPILER) $(MARKER_PABLO_SRC) -t $(MAIN_TEMPLATE) -l$(MARKER_PREFIX) -o $(MAIN_OUTFILE) $(PABLO_ADD_DEBUG) # @marker_strms_any_carry
     43        $(CC) -o main main.cpp $(AFLAGS)
     44
     45pool_test:      pool_test.cpp
     46        $(CC) -o pool_test pool_test.cpp $(AFLAGS)
     47
     48hash_test:      hash_test.cpp
     49        $(CC) -o hash_test hash_test.cpp $(AFLAGS)
    2750
    2851clean:
    29         rm -f driver *.o *.a
     52        rm -f main pool_test hash_test *.o *.a
     53
     54       
Note: See TracChangeset for help on using the changeset viewer.