From 71d5ce1e005fbe38834cce30768f2ffa6e3cc5e0 Mon Sep 17 00:00:00 2001 From: Giovanni Bussi <giovanni.bussi@gmail.com> Date: Fri, 22 Mar 2013 09:46:19 +0100 Subject: [PATCH] Removed extension/ directory It was not used, and also resulted in some error in compilation. A better way to extend the code is by creating a new module directory in src/ --- Makefile | 2 +- extensions/DoNothing.cpp | 27 -------------------- extensions/Makefile | 55 ---------------------------------------- 3 files changed, 1 insertion(+), 83 deletions(-) delete mode 100644 extensions/DoNothing.cpp delete mode 100644 extensions/Makefile diff --git a/Makefile b/Makefile index 69d4f2635..780f5f99f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ -include Makefile.conf -SRCDIRS = src extensions test +SRCDIRS = src test SUBDIRS = $(SRCDIRS) user-doc developer-doc regtest SUBDIRSCLEAN=$(addsuffix .clean,$(SUBDIRS)) diff --git a/extensions/DoNothing.cpp b/extensions/DoNothing.cpp deleted file mode 100644 index 4e01f3149..000000000 --- a/extensions/DoNothing.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "../src/core/ActionRegister.h" -#include "../src/core/ActionSetup.h" - -using namespace std; - -namespace PLMD{ - -/// Action which does nothing -/// -/// It is here to test linking of external libraries -class DoNothing: - public ActionSetup -{ -public: - DoNothing(const ActionOptions&ao); -}; - -PLUMED_REGISTER_ACTION(DoNothing,"DONOTHING") - -DoNothing::DoNothing(const ActionOptions&ao): -Action(ao), -ActionSetup(ao) -{ -} - -} - diff --git a/extensions/Makefile b/extensions/Makefile deleted file mode 100644 index b9ef0b84e..000000000 --- a/extensions/Makefile +++ /dev/null @@ -1,55 +0,0 @@ - --include ../Makefile.conf - -SRC=$(wildcard *.cpp) - -OBJ=$(SRC:.cpp=.o) -SOBJ=$(SRC:.cpp=.$(SOEXT)) - -.PHONY: all clean - -ifdef GCCDEP -all: libplumedExtensions.$(SOEXT) $(SOBJ) -else -all: - @echo No configuration available - @echo First run ./configure.sh in the root directory -endif - - -libplumedExtensions.$(SOEXT): $(OBJ) - $(LDSO) -o $@ $^ - -clean: - rm -f *.o - rm -f *.d - rm -f *~ - rm -f *.tmp - rm -f *.so - rm -f *.dylib - -%.$(SOEXT) : %.o - $(LDSO) -o $@ $^ - -# this compiler is used for dependencies generation -# if unset, use normal CXX -ifndef CXXDEP -CXXDEP=$(CXX) -endif - -%.o: %.cpp - $(CXXDEP) -c -MM -MF$*.d $(CPPFLAGS) $(CXXFLAGS) $*.cpp - @cp -f $*.d $*.d.tmp - @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | \ - sed -e 's/^ *//' -e 's/$$/:/' >> $*.d - @rm -f $*.d.tmp -ifndef XLF - $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $*.cpp -o $*.o -endif - -# Individual dependencies - -ifneq ($(MAKECMDGOALS),clean) --include $(ALL_SRC_DEP) -endif - -- GitLab