2006-02-19 15:34:41 +01:00
|
|
|
# Makefile.am - Copyright 2005, 2006, University
|
2005-12-30 20:40:34 +01:00
|
|
|
# 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
|
|
|
|
|
2006-02-19 15:34:41 +01:00
|
|
|
|
|
|
|
# extra calls
|
2006-01-26 21:32:06 +01:00
|
|
|
.PHONY : apidox
|
|
|
|
|
2006-04-07 21:57:58 +02:00
|
|
|
# this should be the only recursive call inside sgpemv2 main pkg
|
|
|
|
# please note the "." directory _has_ to come first, before plugins
|
|
|
|
SUBDIRS = . po
|
|
|
|
|
|
|
|
# ################################# #
|
|
|
|
# Additional directories building: #
|
|
|
|
# ################################# #
|
|
|
|
|
|
|
|
# allow building of provided plugins
|
|
|
|
# FIXME: how to make this dynamic? e.g. for plugins/* ?
|
2006-06-13 17:09:13 +02:00
|
|
|
SUBDIRS += \
|
|
|
|
plugins/pyloader \
|
|
|
|
plugins/xmlsave
|
2006-02-19 15:34:41 +01:00
|
|
|
|
|
|
|
# directories definition
|
|
|
|
sharedir = $(pkgdatadir)
|
2006-03-03 22:04:42 +01:00
|
|
|
policiesdir = $(sharedir)/policies
|
|
|
|
plugindir = $(sharedir)/plugins
|
2006-02-19 15:34:41 +01:00
|
|
|
localedir = @datadir@/locale
|
2006-04-07 21:57:58 +02:00
|
|
|
aclocaldir = @datadir@/aclocal
|
2006-02-19 15:34:41 +01:00
|
|
|
|
2006-02-24 17:42:54 +01:00
|
|
|
#define empty global variables
|
|
|
|
bin_PROGRAMS =
|
2006-03-03 22:04:42 +01:00
|
|
|
plugin_LTLIBRARIES =
|
2006-02-24 17:42:54 +01:00
|
|
|
noinst_HEADERS =
|
|
|
|
pkglib_LTLIBRARIES =
|
2006-06-21 11:09:50 +02:00
|
|
|
pkginclude_HEADERS =
|
2006-02-24 17:42:54 +01:00
|
|
|
EXTRA_DIST =
|
|
|
|
MAINTAINERCLEANFILES =
|
|
|
|
MOSTLYCLEANFILES =
|
2006-03-06 00:06:48 +01:00
|
|
|
CLEANFILES =
|
2006-02-24 17:42:54 +01:00
|
|
|
|
2006-02-19 15:34:41 +01:00
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# extra dist, cleanup and automake/aclocal flags
|
|
|
|
#
|
|
|
|
# ############################################################
|
2005-12-30 20:40:34 +01:00
|
|
|
|
2006-01-13 16:52:22 +01:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2006-04-07 21:57:58 +02:00
|
|
|
install_macros = m4/sgpemv2-dirs.m4
|
2006-02-19 15:34:41 +01:00
|
|
|
macros = m4/compilerflags.m4 \
|
2006-04-07 21:57:58 +02:00
|
|
|
m4/linkingflags.m4
|
2006-02-19 15:34:41 +01:00
|
|
|
|
2006-02-24 17:42:54 +01:00
|
|
|
EXTRA_DIST += \
|
2006-02-19 15:34:41 +01:00
|
|
|
config/config.rpath \
|
|
|
|
config/mkinstalldirs \
|
|
|
|
configure.ac \
|
|
|
|
gettext.h \
|
2006-04-07 21:57:58 +02:00
|
|
|
$(install_macros) \
|
2006-02-19 15:34:41 +01:00
|
|
|
$(macros)
|
2006-02-24 17:42:54 +01:00
|
|
|
|
2006-04-07 21:57:58 +02:00
|
|
|
aclocal_DATA = $(install_macros)
|
|
|
|
|
2006-02-24 17:42:54 +01:00
|
|
|
MAINTAINERCLEANFILES += doc/API
|
2006-02-19 15:34:41 +01:00
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# desktop files and other distribution data
|
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
2006-04-07 21:57:58 +02:00
|
|
|
pkgconfdir = $(libdir)/pkgconfig
|
|
|
|
pkgconf_DATA = config/sgpemv2.pc
|
2006-02-19 15:34:41 +01:00
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# documentation
|
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
|
|
|
info_TEXINFOS = \
|
|
|
|
doc/sgpem2uman.texi \
|
|
|
|
doc/sgpem2dman.texi
|
|
|
|
|
|
|
|
licenses = doc/fdl.texi doc/gpl.texi
|
|
|
|
EXTRA_DIST += $(licenses)
|
|
|
|
|
|
|
|
sgpem2uman_TEXINFOS = $(licenses) doc/vers-uman.texi
|
|
|
|
sgpem2dman_TEXINFOS = $(licenses) doc/vers-dman.texi
|
2006-01-26 21:32:06 +01:00
|
|
|
|
|
|
|
apidox :
|
2006-02-20 01:12:24 +01:00
|
|
|
test -d 'doc/API' || mkdir -p -- 'doc/API'
|
2006-02-19 15:34:41 +01:00
|
|
|
if HAVE_DOXYGEN
|
|
|
|
doxygen config/Doxyfile
|
|
|
|
else
|
|
|
|
@echo "** Doxygen not installed. Skipping generating API docs."
|
|
|
|
endif
|
|
|
|
|
|
|
|
dist-hook : apidox
|
|
|
|
cp -Rp 'doc/API' '$(distdir)/doc/API'
|
|
|
|
|
|
|
|
distclean-local :
|
|
|
|
if test -d 'doc/API'; then rm -rf 'doc/API'; fi
|
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# source : libbackend.la
|
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
|
|
|
# Program & library names
|
2006-02-20 01:12:24 +01:00
|
|
|
pkglib_LTLIBRARIES += src/backend/libbackend.la
|
2006-02-19 15:34:41 +01:00
|
|
|
|
|
|
|
src_backend_libbackend_la_CPPFLAGS = \
|
2006-02-19 23:25:23 +01:00
|
|
|
-I@top_srcdir@ \
|
2006-06-21 11:09:50 +02:00
|
|
|
-I@top_srcdir@/src/templates \
|
2006-03-03 22:04:42 +01:00
|
|
|
-DPOLDIR="\"$(policiesdir)\"" \
|
|
|
|
-DPLUGDIR="\"$(plugindir)\"" \
|
2006-02-19 15:34:41 +01:00
|
|
|
-DLOCALEDIR="\"$(localedir)\"" \
|
|
|
|
$(PYTHON_CPPFLAGS) \
|
|
|
|
$(GLIBMM_CFLAGS)
|
2006-02-20 22:26:08 +01:00
|
|
|
src_backend_libbackend_la_CXXFLAGS = \
|
|
|
|
$(VISIB_HIDDEN)
|
2006-02-20 01:12:24 +01:00
|
|
|
src_backend_libbackend_la_LDFLAGS = \
|
|
|
|
$(GLIBMM_LDFLAGS) \
|
2006-02-22 21:36:33 +01:00
|
|
|
$(LT_LDFLAGS) \
|
2006-02-25 13:21:30 +01:00
|
|
|
-version-info 0:0:0 \
|
|
|
|
-export-dynamic
|
2006-02-19 15:34:41 +01:00
|
|
|
|
|
|
|
# Please keep this in sorted order:
|
|
|
|
src_backend_libbackend_la_SOURCES = \
|
2006-06-15 01:31:31 +02:00
|
|
|
src/backend/dynamic_process.cc \
|
2006-06-23 00:48:33 +02:00
|
|
|
src/backend/dynamic_request.cc \
|
|
|
|
src/backend/dynamic_resource.cc \
|
2006-06-13 18:37:57 +02:00
|
|
|
src/backend/dynamic_schedulable.cc \
|
2006-06-23 00:48:33 +02:00
|
|
|
src/backend/dynamic_sub_request.cc \
|
2006-06-22 00:39:35 +02:00
|
|
|
src/backend/dynamic_thread.cc \
|
2006-06-12 16:04:06 +02:00
|
|
|
src/backend/global_preferences.cc \
|
2006-02-19 15:34:41 +01:00
|
|
|
src/backend/history.cc \
|
|
|
|
src/backend/observed_subject.cc \
|
2006-06-10 17:44:42 +02:00
|
|
|
src/backend/policies_gatekeeper.cc \
|
2006-02-19 15:34:41 +01:00
|
|
|
src/backend/policy.cc \
|
|
|
|
src/backend/policy_manager.cc \
|
|
|
|
src/backend/policy_parameters.cc \
|
2006-06-15 01:31:31 +02:00
|
|
|
src/backend/process.cc \
|
2006-06-23 00:48:33 +02:00
|
|
|
src/backend/request.cc \
|
|
|
|
src/backend/resource.cc \
|
2006-06-13 18:37:57 +02:00
|
|
|
src/backend/schedulable.cc \
|
2006-06-03 17:19:13 +02:00
|
|
|
src/backend/schedulable_queue.cc \
|
2006-02-19 15:34:41 +01:00
|
|
|
src/backend/scheduler.cc \
|
|
|
|
src/backend/slice.cc \
|
2006-06-13 18:37:57 +02:00
|
|
|
src/backend/static_process.cc \
|
2006-06-23 00:48:33 +02:00
|
|
|
src/backend/static_request.cc \
|
|
|
|
src/backend/static_resource.cc \
|
2006-06-13 18:37:57 +02:00
|
|
|
src/backend/static_schedulable.cc \
|
2006-06-23 00:48:33 +02:00
|
|
|
src/backend/static_sub_request.cc \
|
2006-06-15 01:31:31 +02:00
|
|
|
src/backend/static_thread.cc \
|
2006-02-23 12:29:25 +01:00
|
|
|
src/backend/string_utils.cc \
|
2006-06-23 00:48:33 +02:00
|
|
|
src/backend/sub_request.cc \
|
2006-06-20 00:37:27 +02:00
|
|
|
src/backend/thread.cc \
|
2006-02-23 12:29:25 +01:00
|
|
|
src/backend/user_interrupt_exception.cc
|
2006-02-19 15:34:41 +01:00
|
|
|
|
2006-06-21 11:09:50 +02:00
|
|
|
pkginclude_HEADERS += \
|
2006-02-25 13:31:46 +01:00
|
|
|
config.h \
|
2006-06-15 01:31:31 +02:00
|
|
|
src/backend/dynamic_process.hh \
|
2006-06-23 00:48:33 +02:00
|
|
|
src/backend/dynamic_request.hh \
|
|
|
|
src/backend/dynamic_resource.hh \
|
2006-06-13 18:37:57 +02:00
|
|
|
src/backend/dynamic_schedulable.hh \
|
2006-06-23 00:48:33 +02:00
|
|
|
src/backend/dynamic_sub_request.hh \
|
2006-06-22 00:39:35 +02:00
|
|
|
src/backend/dynamic_thread.hh \
|
2006-06-12 16:04:06 +02:00
|
|
|
src/backend/global_preferences.hh \
|
2006-02-19 15:34:41 +01:00
|
|
|
src/backend/history.hh \
|
|
|
|
src/backend/observed_subject.hh \
|
2006-02-25 13:40:24 +01:00
|
|
|
src/backend/plugin.hh \
|
2006-06-10 17:44:42 +02:00
|
|
|
src/backend/policies_gatekeeper.hh \
|
2006-02-19 15:34:41 +01:00
|
|
|
src/backend/policy.hh \
|
|
|
|
src/backend/policy_manager.hh \
|
|
|
|
src/backend/policy_parameters.hh \
|
2006-06-23 00:48:33 +02:00
|
|
|
src/backend/request.hh \
|
|
|
|
src/backend/resource.hh \
|
2006-06-15 01:31:31 +02:00
|
|
|
src/backend/process.hh \
|
2006-06-13 18:37:57 +02:00
|
|
|
src/backend/schedulable.hh \
|
2006-06-03 17:19:13 +02:00
|
|
|
src/backend/schedulable_queue.hh \
|
2006-02-19 15:34:41 +01:00
|
|
|
src/backend/scheduler.hh \
|
|
|
|
src/backend/slice.hh \
|
2006-06-13 18:37:57 +02:00
|
|
|
src/backend/static_process.hh \
|
2006-06-23 00:48:33 +02:00
|
|
|
src/backend/static_request.hh \
|
|
|
|
src/backend/static_resource.hh \
|
2006-06-13 18:37:57 +02:00
|
|
|
src/backend/static_schedulable.hh \
|
2006-06-23 00:48:33 +02:00
|
|
|
src/backend/static_sub_request.hh \
|
2006-06-15 01:31:31 +02:00
|
|
|
src/backend/static_thread.hh \
|
2006-02-23 12:29:25 +01:00
|
|
|
src/backend/string_utils.hh \
|
2006-06-23 00:48:33 +02:00
|
|
|
src/backend/sub_request.hh \
|
2006-06-20 00:37:27 +02:00
|
|
|
src/backend/thread.hh \
|
2006-02-23 12:29:25 +01:00
|
|
|
src/backend/user_interrupt_exception.hh
|
2006-02-19 15:34:41 +01:00
|
|
|
|
2006-02-20 01:12:24 +01:00
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# source : main executable
|
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
|
|
|
# Program & library names
|
2006-02-24 17:42:54 +01:00
|
|
|
bin_PROGRAMS += sgpemv2
|
2006-02-20 01:12:24 +01:00
|
|
|
|
|
|
|
sgpemv2_CPPFLAGS = \
|
|
|
|
-I@top_srcdir@ \
|
2006-06-21 11:09:50 +02:00
|
|
|
-I@top_srcdir@/src/templates \
|
2006-02-20 01:12:24 +01:00
|
|
|
-DLOCALEDIR="\"$(localedir)\"" \
|
|
|
|
$(CAIRO_CFLAGS) \
|
|
|
|
$(GTKMM_CFLAGS) \
|
|
|
|
$(PYTHON_CPPFLAGS) \
|
|
|
|
$(GTHREAD_CFLAGS)
|
2006-02-20 22:26:08 +01:00
|
|
|
sgpemv2_CXXFLAGS = $(VISIB_HIDDEN)
|
2006-02-20 01:12:24 +01:00
|
|
|
sgpemv2_LDFLAGS = $(LT_LDFLAGS)
|
|
|
|
sgpemv2_LDADD = \
|
|
|
|
src/backend/libbackend.la \
|
|
|
|
$(CAIRO_LIBS) \
|
|
|
|
$(GTKMM_LIBS) \
|
|
|
|
$(GTHREAD_LIBS)
|
|
|
|
|
|
|
|
# Please keep this in sorted order:
|
|
|
|
sgpemv2_SOURCES = \
|
|
|
|
src/graphical_terminal_io.cc \
|
|
|
|
src/main.cc \
|
|
|
|
src/main_window.cc \
|
|
|
|
src/observer.cc \
|
|
|
|
src/parse_opts.cc \
|
|
|
|
src/simulation.cc \
|
|
|
|
src/standard_io.cc \
|
|
|
|
src/start_gui.cc \
|
|
|
|
src/text_simulation.cc
|
|
|
|
|
|
|
|
noinst_HEADERS += \
|
|
|
|
src/graphical_simulation.hh \
|
|
|
|
src/graphical_terminal_io.hh \
|
|
|
|
src/io_manager.hh \
|
|
|
|
src/main.hh \
|
|
|
|
src/main_window.hh \
|
|
|
|
src/observer.hh \
|
|
|
|
src/parse_opts.hh \
|
|
|
|
src/simulation.hh \
|
|
|
|
src/standard_io.hh \
|
|
|
|
src/start_gui.hh \
|
|
|
|
src/text_simulation.hh
|
2006-02-19 23:25:23 +01:00
|
|
|
|
2006-02-19 15:34:41 +01:00
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# source : templates
|
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
2006-06-21 11:09:50 +02:00
|
|
|
pkginclude_HEADERS += \
|
2006-04-07 21:57:58 +02:00
|
|
|
src/templates/parameter.tcc \
|
2006-06-21 11:09:50 +02:00
|
|
|
src/templates/singleton.hh \
|
|
|
|
src/templates/singleton.tcc \
|
|
|
|
src/templates/smartp.hh \
|
|
|
|
src/templates/smartp.tcc
|
2006-02-19 15:34:41 +01:00
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# check : testsuite
|
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
2006-03-09 22:02:43 +01:00
|
|
|
if COND_TESTS
|
|
|
|
|
2006-02-19 15:34:41 +01:00
|
|
|
# DEJATOOL = src/testsuite/example-test.exp
|
2006-02-20 01:12:24 +01:00
|
|
|
|
2006-03-09 12:37:09 +01:00
|
|
|
noinst_PROGRAMS = \
|
2006-04-07 21:57:58 +02:00
|
|
|
src/testsuite/test-history
|
2006-03-09 12:37:09 +01:00
|
|
|
|
|
|
|
# disable :
|
|
|
|
# src/testsuite/test-parse_command
|
|
|
|
# src/testsuite/test-stepforward
|
|
|
|
|
|
|
|
src_testsuite_test_history_CPPFLAGS = \
|
|
|
|
-I@top_srcdir@/src \
|
2006-06-21 11:09:50 +02:00
|
|
|
-I@top_srcdir@/src/templates \
|
2006-03-09 12:37:09 +01:00
|
|
|
$(GLIBMM_CFLAGS)
|
|
|
|
src_testsuite_test_history_LDFLAGS = \
|
|
|
|
src/backend/libbackend.la \
|
|
|
|
$(GLIBMM_LIBS)
|
|
|
|
src_testsuite_test_history_SOURCES = \
|
|
|
|
src/testsuite/test-history.cc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#src_testsuite_test_parse_command_CPPFLAGS = \
|
|
|
|
# -I@top_srcdir@/src \
|
2006-06-21 11:09:50 +02:00
|
|
|
# -I@top_srcdir@/src/templates \
|
2006-03-09 12:37:09 +01:00
|
|
|
# $(GLIBMM_CFLAGS)
|
|
|
|
#src_testsuite_test_parse_command_LDFLAGS = \
|
|
|
|
# src/backend/libbackend.la \
|
|
|
|
# $(GLIBMM_LIBS)
|
|
|
|
#src_testsuite_test_parse_command_SOURCES = \
|
|
|
|
# src/testsuite/test-parse_command.cc
|
|
|
|
|
|
|
|
|
|
|
|
# advice: get dummy_policy from the somewhere in the repository, and compile it in.
|
|
|
|
#src_testsuite_test_stepforward_CPPFLAGS = \
|
|
|
|
# -I@top_srcdir@/src \
|
2006-06-21 11:09:50 +02:00
|
|
|
# -I@top_srcdir@/src/templates \
|
2006-03-09 12:37:09 +01:00
|
|
|
# $(GLIBMM_CFLAGS)
|
|
|
|
#src_testsuite_test_stepforward_LDFLAGS = \
|
|
|
|
# src/backend/libbackend.la \
|
|
|
|
# $(GLIBMM_LIBS)
|
|
|
|
#src_testsuite_test_stepforward_SOURCES = \
|
|
|
|
# src/testsuite/test-stepforward.cc
|
|
|
|
|
|
|
|
|
2006-03-06 00:06:48 +01:00
|
|
|
# Workaround an automake bug that leaves behind some files
|
|
|
|
# while it's finishing the distcheck target
|
2006-03-09 12:37:09 +01:00
|
|
|
CLEANFILES += \
|
|
|
|
src/testsuite/.libs/test-history
|
2006-03-09 22:02:43 +01:00
|
|
|
|
|
|
|
endif #~ if COND_TESTS
|
2006-04-07 21:57:58 +02:00
|
|
|
|