source: sources/test_regression/env.mk @ 55

Last change on this file since 55 was 55, checked in by meunier, 11 years ago

Tried to clean the test_regression directory:

  • Code formatting
  • Supressed warnings
  • Made comprehensible outputs
  • Factorized Makefiles

There's still a lot to do (many tests don't pass for either good or bad reasons)

File size: 1.5 KB
Line 
1
2SYSTEMCASS = $(HOME)/src/systemcass/sandbox_test/objdir/
3SYSTEMC = /users/outil/soc/systemc/sc22-64
4
5TARGET_ARCH             = linux64
6
7ifeq (${TARGET_ARCH},Darwin)
8DYNAMICLIB_FLAG = -dynamic
9ENDIANESS_FLAG  = #-mlittle-endian
10else
11DYNAMICLIB_FLAG = -rdynamic
12ENDIANESS_FLAG  = 
13endif
14ifndef SYSTEMC
15$(error SYSTEMC should be set to SystemC directory (OSCI version) \
16to compare simulation results.)
17endif
18
19SYSTEMC_INC     = $(SYSTEMC)/include
20SYSTEMCASS_INC  = $(SYSTEMCASS)/include
21SYSTEMC_LIB     = $(SYSTEMC)/lib-${TARGET_ARCH}/libsystemc.a
22SYSTEMCASS_LIB  = $(SYSTEMCASS)/lib-linux/libsystemc.a
23CXX             = g++
24CPPFILT         = c++filt
25DEBUG           = -g -DDEBUG
26#OPT             = -O2
27#PROF            = -pg # gcc
28#PROF            = -qp # icc
29#EFENCE          = /users/cao/viaud/bin/lib/libefence.a -lpthread
30CFLAGS = $(PROF) $(DEBUG) $(OPT) \
31              -Wall \
32              -fopenmp \
33              -UENABLE_TRACE -UENABLE_PAT -I. -I.. \
34              ${ENDIANESS_FLAG}
35
36LFLAGS = $(PROF) $(BFD_LIBERTY) -ldl -fopenmp
37
38CFLAGS_SYSTEMC    = $(CFLAGS) \
39                    -I$(SYSTEMC_INC) \
40
41CFLAGS_SYSTEMCASS = $(CFLAGS) \
42                    -I$(SYSTEMCASS_INC) \
43                    ${DYNAMICLIB_FLAG} #-Wno-deprecated
44
45LFLAGS_SYSTEMC    = $(LFLAGS) \
46                    $(SYSTEMC_LIB)
47
48LFLAGS_SYSTEMCASS = $(LFLAGS) \
49                    ${DYNAMICLIB_FLAG} $(SYSTEMCASS_LIB) ${EFENCE}
50
51
52ifndef SYSTEMC
53$(error SYSTEMC is not defined.)
54endif
55ifndef SYSTEMCASS
56$(error SYSTEMCASS is not defined.)
57endif
58
59
60
Note: See TracBrowser for help on using the repository browser.