Last change
on this file since 81 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:
574 bytes
|
Line | |
---|
1 | RM = rm -f |
---|
2 | |
---|
3 | INCDIR = -I../../ \ |
---|
4 | -I$(TOOLS)/soclib/include |
---|
5 | |
---|
6 | LIBDIR = -L$(TOOLS)/soclib/lib-$(TARGET_ARCH) \ |
---|
7 | -L$(TOOLS)/or1k/lib/ |
---|
8 | |
---|
9 | LIB = -lsoclib -lbfd -liberty |
---|
10 | |
---|
11 | CXX = g++ |
---|
12 | CXX_OPT = -g3 -Wall -Werror -ansi $(INCDIR) |
---|
13 | LXX_OPT = $(LIBDIR) $(LIB) |
---|
14 | |
---|
15 | EXE = $(patsubst %.cpp,%.x ,$(wildcard *.cpp) ) |
---|
16 | HEADERS = $(wildcard *.h) |
---|
17 | |
---|
18 | all : $(EXE) |
---|
19 | ./$(EXE) |
---|
20 | |
---|
21 | %.x : %.cpp $(HEADERS) |
---|
22 | $(CXX) $(CXX_OPT) -o $@ $< $(LXX_OPT) |
---|
23 | # $(CXX) $(CXX_OPT) -c -o $@.o $< |
---|
24 | # $(CXX) -o $@ $@.o $(LXX_OPT) |
---|
25 | |
---|
26 | clean : |
---|
27 | $(RM) $(EXE) *~ *.o |
---|
Note: See
TracBrowser
for help on using the repository browser.