source: trunk/IPs/systemC/hierarchy_memory/Makefile @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 685 bytes
Line 
1RM                      = rm -f
2
3INCDIR                  = -I. -I..                              \
4                          -I$(IPS)                              \
5                          -I$(TOOLS)/systemc/include            \
6                          -I$(TOOLS)/soclib/include
7
8LIBDIR                  = -L. -L..                              \
9                          -L$(TOOLS)/or1k/lib                   \
10                          -L$(TOOLS)/soclib/lib-$(TARGET_ARCH)  \
11                          -L$(TOOLS)/systemc/lib-$(TARGET_ARCH)
12
13LIBS                    = -lm -lsystemc -lsoclib -lbfd -liberty -ldl
14
15#DEBUG                  = -DDEBUG
16
17CXX                     = g++
18CXX_OPT                 = -g3 -Wall $(INCDIR) $(LIBDIR) $(DEBUG)
19CXXFILT                 = c++filt
20
21EXE                     = $(patsubst %.cpp,%.x ,$(wildcard *.cpp) )
22HEADERS                 = $(wildcard *.h)
23
24all                     : $(EXE)
25                        ./$(EXE)
26
27%.x                     : %.cpp $(HEADERS)
28                        $(CXX) $(CXX_OPT) -o $@ $<  $(LIBS) 2>&1 | $(CXXFILT)
29#(TOOLS)/soclib/lib/loadexec.o
30
31clean                   :
32                        $(RM) $(EXE) *~ tty_*
Note: See TracBrowser for help on using the repository browser.