Last change
on this file since 82 was
81,
checked in by rosiere, 17 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
685 bytes
|
Line | |
---|
1 | RM = rm -f |
---|
2 | |
---|
3 | INCDIR = -I. -I.. \ |
---|
4 | -I$(IPS) \ |
---|
5 | -I$(TOOLS)/systemc/include \ |
---|
6 | -I$(TOOLS)/soclib/include |
---|
7 | |
---|
8 | LIBDIR = -L. -L.. \ |
---|
9 | -L$(TOOLS)/or1k/lib \ |
---|
10 | -L$(TOOLS)/soclib/lib-$(TARGET_ARCH) \ |
---|
11 | -L$(TOOLS)/systemc/lib-$(TARGET_ARCH) |
---|
12 | |
---|
13 | LIBS = -lm -lsystemc -lsoclib -lbfd -liberty -ldl |
---|
14 | |
---|
15 | #DEBUG = -DDEBUG |
---|
16 | |
---|
17 | CXX = g++ |
---|
18 | CXX_OPT = -g3 -Wall $(INCDIR) $(LIBDIR) $(DEBUG) |
---|
19 | CXXFILT = c++filt |
---|
20 | |
---|
21 | EXE = $(patsubst %.cpp,%.x ,$(wildcard *.cpp) ) |
---|
22 | HEADERS = $(wildcard *.h) |
---|
23 | |
---|
24 | all : $(EXE) |
---|
25 | ./$(EXE) |
---|
26 | |
---|
27 | %.x : %.cpp $(HEADERS) |
---|
28 | $(CXX) $(CXX_OPT) -o $@ $< $(LIBS) 2>&1 | $(CXXFILT) |
---|
29 | #(TOOLS)/soclib/lib/loadexec.o |
---|
30 | |
---|
31 | clean : |
---|
32 | $(RM) $(EXE) *~ tty_* |
---|
Note: See
TracBrowser
for help on using the repository browser.