[1] | 1 | #TARGET_ARCH =Linux.SLA4x |
---|
| 2 | #TARGET_ARCH = linux |
---|
| 3 | #TARGET_PLATFORM =i386 |
---|
| 4 | |
---|
| 5 | ifeq (${TARGET_ARCH},Darwin) |
---|
| 6 | DYNAMICLIB_FLAG = -dynamic |
---|
| 7 | ENDIANESS_FLAG = #-mlittle-endian |
---|
| 8 | else |
---|
| 9 | DYNAMICLIB_FLAG = -rdynamic |
---|
| 10 | ENDIANESS_FLAG = |
---|
| 11 | endif |
---|
| 12 | ifndef SYSTEMC |
---|
| 13 | $(error SYSTEMC should be set to SystemC directory (OSCI version) \ |
---|
| 14 | to compare simulation results.) |
---|
| 15 | endif |
---|
| 16 | |
---|
| 17 | #BFD_LIBERTY = -lbfd -liberty |
---|
| 18 | #SYSTEMC = /users/outil/systemc/systemc-2.0.1 |
---|
| 19 | #SYSTEMC = /dsk/l1/misc/richard/systemc_2_1.oct_12_2004.beta |
---|
| 20 | #SYSTEMCASS = /users/cao/buchmann/systemcass/systemcass |
---|
| 21 | SYSTEMC_INC = $(SYSTEMC)/include |
---|
| 22 | SYSTEMCASS_INC = $(SYSTEMCASS)/include |
---|
| 23 | SYSTEMC_LIB = $(SYSTEMC)/lib-${TARGET_PLATFORM}-${TARGET_ARCH}/libsystemc.a |
---|
[27] | 24 | SYSTEMCASS_LIB = $(SYSTEMCASS)/lib-linux/libsystemc.a |
---|
[1] | 25 | #CXX = g++ |
---|
| 26 | #CXX = icc -w1 |
---|
| 27 | CPPFILT = c++filt |
---|
| 28 | DEBUG = -g -DDEBUG |
---|
| 29 | #OPT = -O2 |
---|
| 30 | #PROF = -pg # gcc |
---|
| 31 | #PROF = -qp # icc |
---|
| 32 | #EFENCE = /users/cao/viaud/bin/lib/libefence.a -lpthread |
---|
| 33 | CFLAGS = $(PROF) $(DEBUG) $(OPT) \ |
---|
[13] | 34 | -Wall \ |
---|
[41] | 35 | -fopenmp \ |
---|
[1] | 36 | -UENABLE_TRACE -UENABLE_PAT -I. \ |
---|
| 37 | ${ENDIANESS_FLAG} |
---|
| 38 | |
---|
[41] | 39 | LFLAGS = $(PROF) $(BFD_LIBERTY) -ldl -fopenmp |
---|
[1] | 40 | |
---|
| 41 | CFLAGS_SYSTEMC = $(CFLAGS) \ |
---|
| 42 | -I$(SYSTEMC_INC) \ |
---|
| 43 | |
---|
| 44 | CFLAGS_SYSTEMCASS = $(CFLAGS) \ |
---|
| 45 | -I$(SYSTEMCASS_INC) \ |
---|
| 46 | ${DYNAMICLIB_FLAG} #-Wno-deprecated |
---|
| 47 | |
---|
| 48 | LFLAGS_SYSTEMC = $(LFLAGS) \ |
---|
| 49 | $(SYSTEMC_LIB) |
---|
| 50 | |
---|
| 51 | LFLAGS_SYSTEMCASS = $(LFLAGS) \ |
---|
| 52 | ${DYNAMICLIB_FLAG} $(SYSTEMCASS_LIB) ${EFENCE} |
---|
| 53 | |
---|
| 54 | #ifndef TARGET_PLATFORM |
---|
| 55 | #$(error TARGET_PLATFORM is not defined.) |
---|
| 56 | #endif |
---|
| 57 | #ifndef TARGET_ARCH |
---|
| 58 | #$(error TARGET_ARCH is not defined.) |
---|
| 59 | #endif |
---|
| 60 | ifndef SYSTEMC |
---|
| 61 | $(error SYSTEMC is not defined.) |
---|
| 62 | endif |
---|
| 63 | ifndef SYSTEMCASS |
---|
| 64 | $(error SYSTEMCASS is not defined.) |
---|
| 65 | endif |
---|
[18] | 66 | #ifndef SOCVIEW |
---|
| 67 | #$(error SOCVIEW is not defined. This environment variable is optional.) |
---|
| 68 | #endif |
---|
[1] | 69 | |
---|
| 70 | failcom = 'exit 1' |
---|
| 71 | |
---|