source: trunk/drmaa_utils/drmaa_utils/Makefile.am @ 1

Revision 1, 2.1 KB checked in by mmamonski, 13 years ago (diff)

Torque/PBS DRMAA initial commit

Line 
1# $Id: Makefile.am 1656 2008-11-18 17:11:58Z lukasz $
2#
3# FedStage DRMAA utilities library
4# Copyright (C) 2006-2008  FedStage Systems
5#
6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation, either version 3 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18#
19
20GPERF = @GPERF@
21GPERFFLAGS = --readonly-tables
22RAGEL = @RAGEL@
23RAGELFLAGS =
24
25YLWRAP = $(top_srcdir)/m4/bison_ylwrap.sh
26AM_YFLAGS = -d
27
28noinst_LTLIBRARIES = libdrmaa_utils.la
29
30libdrmaa_utils_la_SOURCES = \
31 compat.c compat.h \
32 common.h \
33 conf.c conf.h \
34 conf_impl.h conf_tab.y \
35 datetime.c datetime.h \
36 datetime_impl.h datetime_tab.y \
37 drmaa_attrib.c drmaa_attrib.h \
38 environ.c environ.h \
39 exception.c exception.h \
40 iter.c iter.h \
41 fsd_job.c job.h \
42 logging.c logging.h \
43 lookup3.c lookup3.h \
44 fsd_session.c session.h \
45 template.c template.h \
46 timedelta.c \
47 thread.c thread.h \
48 fsd_util.c util.h \
49 drmaa_util.c drmaa_util.h \
50 xmalloc.c xmalloc.h \
51 drmaa_base.c drmaa_base.h
52
53libdrmaa_utils_la_LDFLAGS = -static
54libdrmaa_utils_la_CPPFLAGS = -fPIC
55
56if GCC
57if !DEVELOPER_MODE
58# allow `%m` in printf-like format string
59# Bison and Ragel generated code have many unused symbols
60libdrmaa_utils_la_CPPFLAGS +=  -Wno-unused
61endif
62endif
63
64include_HEADERS = drmaa.h
65
66BUILT_SOURCES = \
67 datetime_tab.c datetime_tab.h \
68 conf_tab.c conf_tab.h \
69 drmaa_attrib.c \
70 timedelta.c
71
72EXTRA_DIST = drmaa_attrib.gperf timedelta.rl
73
74if DEVELOPER_MODE
75CLEANFILES = $(BUILT_SOURCES)
76endif
77
78drmaa_attrib.c: drmaa_attrib.gperf
79        $(GPERF) $(GPERFFLAGS) --output-file=drmaa_attrib.c drmaa_attrib.gperf
80timedelta.c: timedelta.rl
81        $(RAGEL) $(RAGELFLAGS) -o timedelta.c timedelta.rl
82
Note: See TracBrowser for help on using the repository browser.