Makefile revision 10779:3e986011e99e
15392Sgblack@eecs.umich.edu# These two variables are designed to be modifiable. 25392Sgblack@eecs.umich.eduSST_VERSION=SST-trunk 35392Sgblack@eecs.umich.eduGEM5_LIB=gem5_opt 45392Sgblack@eecs.umich.edu 55392Sgblack@eecs.umich.eduLDFLAGS=-shared -fno-common ${shell pkg-config ${SST_VERSION} --libs} -L../../build/ARM 65392Sgblack@eecs.umich.eduCXXFLAGS=-std=c++0x -g -O2 -fPIC ${shell pkg-config ${SST_VERSION} --cflags} ${shell python-config --includes} -I../../build/ARM 75392Sgblack@eecs.umich.eduCPPFLAGS+=-MMD -MP 85392Sgblack@eecs.umich.eduSRC=$(wildcard *.cc) 95392Sgblack@eecs.umich.edu 105392Sgblack@eecs.umich.edu.PHONY: clean all 115392Sgblack@eecs.umich.edu 125392Sgblack@eecs.umich.eduall: libgem5.so 135392Sgblack@eecs.umich.edu 145392Sgblack@eecs.umich.edulibgem5.so: $(SRC:%.cc=%.o) 155392Sgblack@eecs.umich.edu ${CXX} ${CPPFLAGS} ${LDFLAGS} $? -o $@ -l${GEM5_LIB} 165392Sgblack@eecs.umich.edu 175392Sgblack@eecs.umich.edu-include $(SRC:%.cc=%.d) 185392Sgblack@eecs.umich.edu 195392Sgblack@eecs.umich.educlean: 205392Sgblack@eecs.umich.edu ${RM} *.[do] libgem5.so 215392Sgblack@eecs.umich.edu