From 4df6ed05246cf8bc9fe0cb0c8766ebc368d2f512 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Sat, 09 Mar 2019 19:33:51 +0000
Subject: [PATCH] Added stretching energy plugin

---
 src/plugins/Makefile |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/plugins/Makefile b/src/plugins/Makefile
index 9b25029..28ebbd4 100644
--- a/src/plugins/Makefile
+++ b/src/plugins/Makefile
@@ -170,6 +170,13 @@
 pressure_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
 	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
 	$(pressure_la_LDFLAGS) $(LDFLAGS) -o $@
+stretching_energy_la_LIBADD =
+am_stretching_energy_la_OBJECTS = constant_area.lo
+stretching_energy_la_OBJECTS = $(am_stretching_energy_la_OBJECTS)
+stretching_energy_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
+	$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
+	$(AM_CFLAGS) $(CFLAGS) $(stretching_energy_la_LDFLAGS) \
+	$(LDFLAGS) -o $@
 vmdefaulthardconstraints_la_LIBADD =
 am_vmdefaulthardconstraints_la_OBJECTS = default_hard_constraints.lo
 vmdefaulthardconstraints_la_OBJECTS =  \
@@ -215,11 +222,13 @@
 SOURCES = $(constant_area_la_SOURCES) $(constant_volume_la_SOURCES) \
 	$(demoplugin_la_SOURCES) $(nucleus_la_SOURCES) \
 	$(plane_confinement_la_SOURCES) $(pressure_la_SOURCES) \
+	$(stretching_energy_la_SOURCES) \
 	$(vmdefaulthardconstraints_la_SOURCES)
 DIST_SOURCES = $(constant_area_la_SOURCES) \
 	$(constant_volume_la_SOURCES) $(demoplugin_la_SOURCES) \
 	$(nucleus_la_SOURCES) $(plane_confinement_la_SOURCES) \
-	$(pressure_la_SOURCES) $(vmdefaulthardconstraints_la_SOURCES)
+	$(pressure_la_SOURCES) $(stretching_energy_la_SOURCES) \
+	$(vmdefaulthardconstraints_la_SOURCES)
 am__can_run_installinfo = \
   case $$AM_UPDATE_INFO_DIR in \
     n|no|NO) false;; \
@@ -368,7 +377,7 @@
 top_builddir = ../..
 top_srcdir = ../..
 AM_CFLAGS = -Wall -Werror -DTS_VERSION=\"$(GITVERSION)\" -fgnu89-inline -Wno-error=date-time -I..
-lib_LTLIBRARIES = demoplugin.la vmdefaulthardconstraints.la nucleus.la plane_confinement.la pressure.la constant_volume.la constant_area.la
+lib_LTLIBRARIES = demoplugin.la vmdefaulthardconstraints.la nucleus.la plane_confinement.la pressure.la constant_volume.la constant_area.la stretching_energy.la
 demoplugin_la_SOURCES = demo_plugin.c
 demoplugin_la_LDFLAGS = -module -avoid-version -export-dynamic
 vmdefaulthardconstraints_la_SOURCES = default_hard_constraints.c
@@ -383,6 +392,8 @@
 constant_volume_la_LDFLAGS = -module -avoid-version -export-dynamic
 constant_area_la_SOURCES = constant_area.c 
 constant_area_la_LDFLAGS = -module -avoid-version -export-dynamic
+stretching_energy_la_SOURCES = constant_area.c 
+stretching_energy_la_LDFLAGS = -module -avoid-version -export-dynamic
 all: all-am
 
 .SUFFIXES:
@@ -470,6 +481,9 @@
 pressure.la: $(pressure_la_OBJECTS) $(pressure_la_DEPENDENCIES) $(EXTRA_pressure_la_DEPENDENCIES) 
 	$(AM_V_CCLD)$(pressure_la_LINK) -rpath $(libdir) $(pressure_la_OBJECTS) $(pressure_la_LIBADD) $(LIBS)
 
+stretching_energy.la: $(stretching_energy_la_OBJECTS) $(stretching_energy_la_DEPENDENCIES) $(EXTRA_stretching_energy_la_DEPENDENCIES) 
+	$(AM_V_CCLD)$(stretching_energy_la_LINK) -rpath $(libdir) $(stretching_energy_la_OBJECTS) $(stretching_energy_la_LIBADD) $(LIBS)
+
 vmdefaulthardconstraints.la: $(vmdefaulthardconstraints_la_OBJECTS) $(vmdefaulthardconstraints_la_DEPENDENCIES) $(EXTRA_vmdefaulthardconstraints_la_DEPENDENCIES) 
 	$(AM_V_CCLD)$(vmdefaulthardconstraints_la_LINK) -rpath $(libdir) $(vmdefaulthardconstraints_la_OBJECTS) $(vmdefaulthardconstraints_la_LIBADD) $(LIBS)
 

--
Gitblit v1.9.3