Skip to content

Commit

Permalink
Added Makefile.am for Py-ChemShell plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
chemsh committed Aug 8, 2019
1 parent 38ac049 commit 1dd1bc9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SUBDIRS = interfaces
SUBDIRS += io_akf io_chemshell io_cif io_cube io_dlpoly io_dlputils io_epsr io_ff io_gamessus io_gromacs io_mdlmol io_mopac io_msi io_pdb io_rmcprofile io_sybylmol2 io_test io_vfield io_xyz
#SUBDIRS += io_csd io_espresso io_gaussian io_siesta
SUBDIRS += method_mopac71
SUBDIRS += tool_springs tool_test
SUBDIRS += tool_springs tool_test tool_chemshell

noinst_LTLIBRARIES = libplugins.la

Expand Down
35 changes: 35 additions & 0 deletions src/plugins/tool_chemshell/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Set plugin installation dir and define plugin targets
pluginexecdir = @ATEN_PLUGINLIBDIR@
pluginexec_LTLIBRARIES = chemshelltool.la

SUFFIXES: .ui .hui .qrc

.ui.lo:
$(QTUIC) -o ui_$*.h $<
$(QTMOC) -o moc_$*.cpp $*.h
${LIBTOOL} --tag=CXX --mode=compile ${CXX} -I$(top_srcdir)/src -I../ -I./ ${AM_CPPFLAGS} -c moc_$*.cpp -o $@
rm moc_$*.cpp

.hui.lo:
${QTMOC} -o $*.cpp -I../../ @ATEN_INCLUDES@ $<
${LIBTOOL} --tag=CXX --mode=compile $(CXX) -I$(top_srcdir)/src -I../ -I./ ${AM_CPPFLAGS} -c $*.cpp -o $@
rm $*.cpp

.qrc.lo:
$(QTRCC) -o $*.cpp -name $* $<
${LIBTOOL} --tag=CXX --mode=compile $(CXX) -I$(top_srcdir)/src -I../ -I./ ${AM_CPPFLAGS} -c -o $@ $*.cpp
rm $*.cpp

# Local clean (temporary files generated from rules)
clean-local:
-rm -f chemshelltool.cpp chemshelltool_icons.cpp ui_*

# SP Rings Tool Plugin
chemshelltool_la_SOURCES = chemshelltool_icons.qrc chemshelltooldialog.ui chemshelltooldialog_funcs.cpp chemshelltool_funcs.cpp chemshelltool.hui
chemshelltool_la_LDFLAGS = -module -shared -avoid-version

AM_CPPFLAGS = -I${top_srcdir}/src @ATEN_INCLUDES@ @ATEN_CFLAGS@

noinst_HEADERS = chemshelltooldialog.h

EXTRA_DIST = icon.svg

0 comments on commit 1dd1bc9

Please sign in to comment.