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-02-19 15:34:41 +01:00
|
|
|
# this should be the only recursive call
|
|
|
|
SUBDIRS = po
|
|
|
|
|
|
|
|
# directories definition
|
|
|
|
sharedir = $(pkgdatadir)
|
|
|
|
pycdir = $(sharedir)/policies
|
|
|
|
moddir = $(sharedir)/modules
|
|
|
|
localedir = @datadir@/locale
|
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# additional rules
|
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
2006-02-20 01:12:24 +01:00
|
|
|
# swig implementation wrapper files generation for Python:
|
|
|
|
%_wrap.cc : %.i
|
|
|
|
test -d "$(@D)" || mkdir -p -- "$(@D)"
|
2006-02-19 15:34:41 +01:00
|
|
|
$(SWIG) $(SWIG_PYTHON_OPT) -o $@ $<
|
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# 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-02-19 15:34:41 +01:00
|
|
|
macros = m4/compilerflags.m4 \
|
|
|
|
m4/linkingflags.m4 \
|
|
|
|
m4/ac_python_devel.m4 \
|
|
|
|
m4/ac_pkg_swig.m4 \
|
|
|
|
m4/ac_python_module.m4
|
|
|
|
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
config/config.rpath \
|
|
|
|
config/mkinstalldirs \
|
|
|
|
configure.ac \
|
|
|
|
gettext.h \
|
|
|
|
$(macros)
|
|
|
|
MAINTAINERCLEANFILES = doc/API
|
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# desktop files and other distribution data
|
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
|
|
|
# to be written when something will go here...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
#
|
2006-02-20 01:12:24 +01:00
|
|
|
# source : libpyloader.la
|
2006-02-19 15:34:41 +01:00
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
2006-02-20 01:12:24 +01:00
|
|
|
pkglib_LTLIBRARIES = src/backend/pyloader/libpyloader.la
|
2006-02-19 15:34:41 +01:00
|
|
|
|
2006-02-20 01:12:24 +01:00
|
|
|
src_backend_pyloader_libpyloader_la_CPPFLAGS = \
|
2006-02-19 23:25:23 +01:00
|
|
|
-I@top_srcdir@ \
|
2006-02-19 15:34:41 +01:00
|
|
|
-DPYCDIR="\"$(pycdir)\"" \
|
|
|
|
-DMODDIR="\"$(moddir)\"" \
|
|
|
|
-DLOCALEDIR="\"$(localedir)\"" \
|
|
|
|
$(PYTHON_CPPFLAGS) \
|
2006-02-20 01:12:24 +01:00
|
|
|
$(GLIBMM_CFLAGS)
|
|
|
|
src_backend_pyloader_libpyloader_la_LIBADD = \
|
|
|
|
$(PYTHON_LDFLAGS) \
|
|
|
|
$(PYTHON_EXTRA_LIBS) \
|
|
|
|
$(GLIBMM_LIBS)
|
|
|
|
src_backend_pyloader_libpyloader_la_LDFLAGS = \
|
|
|
|
$(PYTHON_EXTRA_LDFLAGS) \
|
|
|
|
$(LT_LDFLAGS)
|
2006-02-19 15:34:41 +01:00
|
|
|
|
|
|
|
# Please keep this in sorted order:
|
2006-02-20 01:12:24 +01:00
|
|
|
src_backend_pyloader_libpyloader_la_SOURCES = \
|
|
|
|
src/backend/pyloader/python_policy.cc \
|
|
|
|
src/backend/pyloader/python_policy_manager.cc
|
2006-02-19 15:34:41 +01:00
|
|
|
|
|
|
|
noinst_HEADERS = \
|
2006-02-20 01:12:24 +01:00
|
|
|
src/backend/pyloader/python_policy.hh \
|
|
|
|
src/backend/pyloader/python_policy_manager.hh
|
|
|
|
|
|
|
|
mod_PYTHON = \
|
|
|
|
src/backend/pyloader/Abstract.py \
|
|
|
|
src/backend/pyloader/Policy.py
|
2006-02-19 15:34:41 +01:00
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# 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-02-19 15:34:41 +01:00
|
|
|
-DPYCDIR="\"$(pycdir)\"" \
|
|
|
|
-DMODDIR="\"$(moddir)\"" \
|
|
|
|
-DLOCALEDIR="\"$(localedir)\"" \
|
|
|
|
$(PYTHON_CPPFLAGS) \
|
|
|
|
$(GLIBMM_CFLAGS)
|
|
|
|
src_backend_libbackend_la_LIBADD = \
|
|
|
|
src/backend/pyloader/libpyloader.la
|
2006-02-20 01:12:24 +01:00
|
|
|
src_backend_libbackend_la_LDFLAGS = \
|
|
|
|
$(GLIBMM_LDFLAGS) \
|
|
|
|
$(LT_LDFLAGS)
|
2006-02-19 15:34:41 +01:00
|
|
|
|
|
|
|
# Please keep this in sorted order:
|
|
|
|
src_backend_libbackend_la_SOURCES = \
|
|
|
|
src/backend/history.cc \
|
|
|
|
src/backend/observed_subject.cc \
|
|
|
|
src/backend/policy.cc \
|
|
|
|
src/backend/policy_manager.cc \
|
|
|
|
src/backend/policy_parameters.cc \
|
|
|
|
src/backend/process.cc \
|
|
|
|
src/backend/schedulable.cc \
|
|
|
|
src/backend/schedulable_list.cc \
|
|
|
|
src/backend/schedulable_status.cc \
|
|
|
|
src/backend/scheduler.cc \
|
|
|
|
src/backend/slice.cc \
|
|
|
|
src/backend/string_utils.cc
|
|
|
|
|
|
|
|
noinst_HEADERS += \
|
|
|
|
src/backend/history.hh \
|
|
|
|
src/backend/observed_subject.hh \
|
|
|
|
src/backend/policy.hh \
|
|
|
|
src/backend/policy_manager.hh \
|
|
|
|
src/backend/policy_parameters.hh \
|
|
|
|
src/backend/process.hh \
|
|
|
|
src/backend/schedulable.hh \
|
|
|
|
src/backend/schedulable_list.hh \
|
|
|
|
src/backend/schedulable_status.hh \
|
|
|
|
src/backend/scheduler.hh \
|
|
|
|
src/backend/slice.hh \
|
|
|
|
src/backend/string_utils.hh
|
|
|
|
|
2006-02-20 01:12:24 +01:00
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# source : main executable
|
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
|
|
|
# Program & library names
|
|
|
|
bin_PROGRAMS = sgpemv2
|
|
|
|
|
|
|
|
sgpemv2_CPPFLAGS = \
|
|
|
|
-I@top_srcdir@ \
|
|
|
|
-DPYCDIR="\"$(pycdir)\"" \
|
|
|
|
-DMODDIR="\"$(moddir)\"" \
|
|
|
|
-DLOCALEDIR="\"$(localedir)\"" \
|
|
|
|
$(CAIRO_CFLAGS) \
|
|
|
|
$(GTKMM_CFLAGS) \
|
|
|
|
$(PYTHON_CPPFLAGS) \
|
|
|
|
$(GTHREAD_CFLAGS)
|
|
|
|
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
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# C++ modules -> Python loadable modules
|
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
|
|
|
proxies = src/backend/sgpem.py
|
|
|
|
wrappers = src/backend/sgpem_wrap.cc
|
|
|
|
|
|
|
|
mod_LTLIBRARIES = _sgpem.la
|
2006-02-20 01:12:24 +01:00
|
|
|
mod_PYTHON += $(proxies)
|
|
|
|
|
|
|
|
# static pattern rule
|
|
|
|
$(proxies): %.py : %.i
|
2006-02-19 23:25:23 +01:00
|
|
|
|
2006-02-20 01:12:24 +01:00
|
|
|
_sgpem_la_INTERFACES = src/backend/sgpem.i
|
2006-02-19 23:25:23 +01:00
|
|
|
|
|
|
|
_sgpem_la_CPPFLAGS = \
|
|
|
|
-I@top_srcdir@ \
|
|
|
|
-I@top_srcdir@/src/backend \
|
|
|
|
$(SWIG_PYTHON_CPPFLAGS) \
|
|
|
|
$(GLIBMM_CFLAGS)
|
2006-02-20 01:12:24 +01:00
|
|
|
_sgpem_la_LDFLAGS = -module $(GLIBMM_LDFLAGS)
|
2006-02-19 23:25:23 +01:00
|
|
|
_sgpem_la_LIBADD = src/backend/libbackend.la
|
|
|
|
_sgpem_la_SOURCES = $(wrappers)
|
2006-02-20 01:12:24 +01:00
|
|
|
|
2006-02-19 23:25:23 +01:00
|
|
|
EXTRA_DIST += $(_sgpem_la_INTERFACES)
|
|
|
|
MOSTLYCLEANFILES = $(proxies) $(wrappers)
|
|
|
|
|
2006-02-19 15:34:41 +01:00
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# source : templates
|
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
src/templates/parameter.tcc \
|
|
|
|
src/templates/smartp.tcc
|
|
|
|
|
|
|
|
noinst_HEADERS += \
|
|
|
|
src/templates/smartp.hh
|
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# source : builtin-policies
|
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
|
|
|
# built-in policies
|
|
|
|
pyc_PYTHON = # fcfs.py rr.py rr-p.py ...
|
|
|
|
|
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
#
|
|
|
|
# check : testsuite
|
|
|
|
#
|
|
|
|
# ############################################################
|
|
|
|
|
|
|
|
# DEJATOOL = src/testsuite/example-test.exp
|
2006-02-20 01:12:24 +01:00
|
|
|
|