- Reorganize sources to split them across three parts:

- The main program, the frontend
	- A pyton loader library
	- The backend library
Happy hacking.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@240 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-01-27 17:57:53 +00:00
parent cc7851daf9
commit 420a7f0e95
13 changed files with 106 additions and 39 deletions

55
src/backend/Makefile.am Normal file
View file

@ -0,0 +1,55 @@
# src/backend/Makefile.am - Copyright 2005, 2006, University
# of Padova, dept. of Pure and Applied
# Mathematics
#
# This file is part of SGPEMv2.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# SGPEMv2 is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with SGPEMv2; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# you'll want to setup a testsuite for this component, sooner or later.
#SUBDIRS = testsuite
#additional rules:
%_wrap.cc : %.i
$(SWIG) $(SWIG_PYTHON_OPT) -o $@ $<
# Program & library names
pkglib_LTLIBRARIES = libbackend.la
# Other directories
sharedir = @datadir@/sgpemv2
pycdir = $(sharedir)/policies
moddir = $(sharedir)/modules
localedir = @datadir@/locale
libbackend_la_CPPFLAGS = -I@top_srcdir@ \
-DPYCDIR="\"$(pycdir)\"" \
-DMODDIR="\"$(moddir)\"" \
-DLOCALEDIR="\"$(localedir)\"" \
$(PYTHON_CPPFLAGS)
libbackend_la_LIBADD = $(PYTHON_LDFLAGS) \
$(PYTHON_EXTRA_LIBS)
libbackend_la_LDFLAGS = $(PYTHON_EXTRA_LDFLAGS)
# Please keep this in sorted order:
libbackend_la_SOURCES = empty.cc
noinst_HEADERS =
# !! temp file for debug, will be deleted as soon as
# !! source's in place
empty.cc :
echo "int main() {}" > @builddir@/$@