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