source: sources/test_regression/env.mk @ 65

Last change on this file since 65 was 56, checked in by meunier, 11 years ago
  • Tried to fix a problem with echo
  • Started to resolve some tests failing (often because of the test itself)
File size: 1.3 KB
Line 
1
2
3TARGET_ARCH = linux64
4
5ifeq (${TARGET_ARCH},Darwin)
6DYNAMICLIB_FLAG = -dynamic
7ENDIANESS_FLAG  = #-mlittle-endian
8else
9DYNAMICLIB_FLAG = -rdynamic
10ENDIANESS_FLAG  = 
11endif
12ifndef SYSTEMC
13$(error SYSTEMC should be set to SystemC directory (OSCI version) \
14to compare simulation results.)
15endif
16
17SYSTEMC_INC     = $(SYSTEMC)/include
18SYSTEMCASS_INC  = $(SYSTEMCASS)/include
19SYSTEMC_LIB     = $(SYSTEMC)/lib-${TARGET_ARCH}/libsystemc.a
20SYSTEMCASS_LIB  = $(SYSTEMCASS)/lib-linux/libsystemc.a
21CXX             = g++
22CPPFILT         = c++filt
23DEBUG           = -g -DDEBUG
24#OPT             = -O2
25#PROF            = -pg # gcc
26#PROF            = -qp # icc
27#EFENCE          = /users/cao/viaud/bin/lib/libefence.a -lpthread
28CFLAGS = $(PROF) $(DEBUG) $(OPT) \
29              -Wall \
30              -fopenmp \
31              -UENABLE_TRACE -UENABLE_PAT -I. -I.. \
32              ${ENDIANESS_FLAG}
33
34LFLAGS = $(PROF) $(BFD_LIBERTY) -ldl -fopenmp
35
36CFLAGS_SYSTEMC    = $(CFLAGS) \
37                    -I$(SYSTEMC_INC) \
38
39CFLAGS_SYSTEMCASS = $(CFLAGS) \
40                    -I$(SYSTEMCASS_INC) \
41                    ${DYNAMICLIB_FLAG} #-Wno-deprecated
42
43LFLAGS_SYSTEMC    = $(LFLAGS) \
44                    $(SYSTEMC_LIB)
45
46LFLAGS_SYSTEMCASS = $(LFLAGS) \
47                    ${DYNAMICLIB_FLAG} $(SYSTEMCASS_LIB) ${EFENCE}
48
49ECHO = /bin/echo
50SILENCE = @
51
Note: See TracBrowser for help on using the repository browser.