Makefile revision 10779:3e986011e99e
1# These two variables are designed to be modifiable.
2SST_VERSION=SST-trunk
3GEM5_LIB=gem5_opt
4
5LDFLAGS=-shared -fno-common ${shell pkg-config ${SST_VERSION} --libs} -L../../build/ARM
6CXXFLAGS=-std=c++0x -g -O2 -fPIC ${shell pkg-config ${SST_VERSION} --cflags} ${shell python-config --includes} -I../../build/ARM
7CPPFLAGS+=-MMD -MP
8SRC=$(wildcard *.cc)
9
10.PHONY: clean all
11
12all: libgem5.so
13
14libgem5.so: $(SRC:%.cc=%.o)
15	${CXX} ${CPPFLAGS} ${LDFLAGS} $? -o $@ -l${GEM5_LIB}
16
17-include $(SRC:%.cc=%.d)
18
19clean:
20	${RM} *.[do] libgem5.so
21