--- PamCut/makefile 2009/05/27 13:30:01 1.1 +++ PamCut/makefile 2009/06/15 14:43:30 1.3 @@ -62,7 +62,7 @@ endif # All Target -all: version libPamCut.so +all: libPamCut.so version # Tool invocations libPamCut.so: $(OBJS) $(USER_OBJS) @@ -77,7 +77,31 @@ -$(RM) $(CPP_DEPS) $(OBJS) libPamCut.so -@echo ' ' +distclean: + @rm -f ${PAM_LIB}/libPamCut.so + @rm -rf ${PAM_INC}/PamCut + @echo Installed files successfully removed. + +install: + @if [[ "${PAM_INC}" == "" || "${PAM_LIB}" == "" ]]; then \ + echo Pamela environment not set. ; \ + else \ + rootdir=`pwd`; \ + for file in `find -name "*.h"`; do \ + dir=`dirname $${file} | sed 's/.\///'`; \ + mkdir -p ${PAM_INC}/PamCut/$${dir}; \ + cp -u $${file} ${PAM_INC}/PamCut/$${dir}; \ + done; \ + cp -u libPamCut.so ${PAM_LIB}; \ + fi + @echo PamCut installed. + version: - @gcc --version | grep gcc; echo + @echo + @echo "**** Compiler version and compilation host ****" + @$(C++) --version | grep GCC + @hostname + @echo + +.PHONY: all clean distclean install dependents version -.PHONY: all clean dependents version