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
|
Rev | Line | |
---|
[1] | 1 | |
---|
[55] | 2 | SYSTEMCASS = $(HOME)/src/systemcass/sandbox_test/objdir/ |
---|
| 3 | SYSTEMC = /users/outil/soc/systemc/sc22-64 |
---|
| 4 | |
---|
| 5 | TARGET_ARCH = linux64 |
---|
| 6 | |
---|
[1] | 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 |
---|
[49] | 21 | SYSTEMC_LIB = $(SYSTEMC)/lib-${TARGET_ARCH}/libsystemc.a |
---|
[27] | 22 | SYSTEMCASS_LIB = $(SYSTEMCASS)/lib-linux/libsystemc.a |
---|
[55] | 23 | CXX = g++ |
---|
| 24 | CPPFILT = c++filt |
---|
[1] | 25 | DEBUG = -g -DDEBUG |
---|
| 26 | #OPT = -O2 |
---|
[55] | 27 | #PROF = -pg # gcc |
---|
| 28 | #PROF = -qp # icc |
---|
| 29 | #EFENCE = /users/cao/viaud/bin/lib/libefence.a -lpthread |
---|
| 30 | CFLAGS = $(PROF) $(DEBUG) $(OPT) \ |
---|
[13] | 31 | -Wall \ |
---|
[41] | 32 | -fopenmp \ |
---|
[55] | 33 | -UENABLE_TRACE -UENABLE_PAT -I. -I.. \ |
---|
[1] | 34 | ${ENDIANESS_FLAG} |
---|
| 35 | |
---|
[55] | 36 | LFLAGS = $(PROF) $(BFD_LIBERTY) -ldl -fopenmp |
---|
[1] | 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 | |
---|
[55] | 51 | |
---|
[1] | 52 | ifndef SYSTEMC |
---|
| 53 | $(error SYSTEMC is not defined.) |
---|
| 54 | endif |
---|
| 55 | ifndef SYSTEMCASS |
---|
| 56 | $(error SYSTEMCASS is not defined.) |
---|
| 57 | endif |
---|
| 58 | |
---|
| 59 | |
---|
[55] | 60 | |
---|
Note: See
TracBrowser
for help on using the repository browser.