source: sources/test_regression/24082009/Makefile @ 51

Last change on this file since 51 was 41, checked in by buchmann, 15 years ago

Add:

  • openmp support:
    • add flags to test_regression makefile
    • configure.ac now checks for openmp
    • Makefile.am add openmp flags
    • a new testbench to check benefits due to openmp
  • Property svn:executable set to *
File size: 1.3 KB
RevLine 
[41]1include ../env.mk
2
3EXE_SCASS = system_systemcass.x
4EXE_SC    = system_systemc.x
5EXE       = ${EXE_SCASS}
6OBJECTS   = $(EXE:.x=.o)
7LINKS     = $(OBJECTS:.o=.cpp)
8
9RESULTS   = perf
10
11.SECONDARY:
12
13main : $(EXE) 
14
15test : ${RESULTS}
16        @echo OK
17
18perf : system_systemcass.x
19        time (./system_systemcass.x --nobanner --p --nodynamiclink 1000000 )
20
21%_systemc.x : %_systemc.o $(SYSTEMC_LIB)
22        $(CXX) -o $@ $*_systemc.o $(LFLAGS_SYSTEMC) 2>&1 | $(CPPFILT)
23
24%_systemcass.x : %_systemcass.o  $(SYSTEMCASS_LIB)
25        $(CXX) -o $@ $*_systemcass.o $(LFLAGS_SYSTEMCASS) 2>&1 | $(CPPFILT)
26
27-include Makefile.deps
28
29%_systemc.cpp : %.cpp
30        ln -s $*.cpp $*_systemc.cpp
31
32%_systemcass.cpp : %.cpp
33        ln -s $*.cpp $*_systemcass.cpp
34
35%_systemc.o : %_systemc.cpp
36        $(CXX) $(CFLAGS_SYSTEMC) -MM $*_systemc.cpp >> Makefile.deps
37        $(CXX) $(CFLAGS_SYSTEMC) -c $*_systemc.cpp -o $*_systemc.o
38
39%_systemcass.o : %_systemcass.cpp
40        $(CXX) $(CFLAGS_SYSTEMCASS) -MM $*_systemcass.cpp >> Makefile.deps
41        $(CXX) $(CFLAGS_SYSTEMCASS) -c $*_systemcass.cpp -o $*_systemcass.o
42
43clean :
44        rm -f Makefile.deps
45        -rm -f *.o gmon.out
46        -rm -f $(EXE) $(OBJECTS) 
47        -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null
48        -rm -f core*
49        -rm -rf generated_by_systemcass
50        -rm -rf tracesystem_systemcass.x.vcd tracesystem_systemc.x.vcd
51        -rm -rf ${RESULTS}
Note: See TracBrowser for help on using the repository browser.