source: sources/test_regression/env.mk @ 13

Last change on this file since 13 was 13, checked in by buchmann, 16 years ago

clean up : removing Makefile.deps

File size: 1.9 KB
Line 
1#TARGET_ARCH            =Linux.SLA4x
2#TARGET_ARCH            = linux
3#TARGET_PLATFORM  =i386
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
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
21SYSTEMC_INC     = $(SYSTEMC)/include
22SYSTEMCASS_INC  = $(SYSTEMCASS)/include
23SYSTEMC_LIB     = $(SYSTEMC)/lib-${TARGET_PLATFORM}-${TARGET_ARCH}/libsystemc.a
24SYSTEMCASS_LIB  = $(SYSTEMCASS)/lib/libsystemc_$(firstword $(CXX))-d.a
25#CXX                    = g++
26#CXX                    = icc -w1
27CPPFILT                 = c++filt
28DEBUG           = -g -DDEBUG
29#OPT             = -O2
30#PROF        = -pg # gcc
31#PROF        = -qp # icc
32#EFENCE      = /users/cao/viaud/bin/lib/libefence.a -lpthread
33CFLAGS      = $(PROF) $(DEBUG) $(OPT) \
34              -Wall \
35              -UENABLE_TRACE -UENABLE_PAT -I. \
36              ${ENDIANESS_FLAG}
37
38LFLAGS      = $(PROF) $(BFD_LIBERTY) -ldl
39
40CFLAGS_SYSTEMC    = $(CFLAGS) \
41                    -I$(SYSTEMC_INC) \
42
43CFLAGS_SYSTEMCASS = $(CFLAGS) \
44                    -I$(SYSTEMCASS_INC) \
45                    ${DYNAMICLIB_FLAG} #-Wno-deprecated
46
47LFLAGS_SYSTEMC    = $(LFLAGS) \
48                    $(SYSTEMC_LIB)
49
50LFLAGS_SYSTEMCASS = $(LFLAGS) \
51                    ${DYNAMICLIB_FLAG} $(SYSTEMCASS_LIB) ${EFENCE}
52
53#ifndef TARGET_PLATFORM
54#$(error TARGET_PLATFORM is not defined.)
55#endif
56#ifndef TARGET_ARCH
57#$(error TARGET_ARCH is not defined.)
58#endif
59ifndef SYSTEMC
60$(error SYSTEMC is not defined.)
61endif
62ifndef SYSTEMCASS
63$(error SYSTEMCASS is not defined.)
64endif
65ifndef SOCVIEW
66$(error SOCVIEW is not defined.)
67endif
68
69failcom   = 'exit 1'
70
Note: See TracBrowser for help on using the repository browser.