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 | |
---|
20 | GPERF = @GPERF@ |
---|
21 | GPERFFLAGS = --readonly-tables |
---|
22 | RAGEL = @RAGEL@ |
---|
23 | RAGELFLAGS = |
---|
24 | |
---|
25 | YLWRAP = $(top_srcdir)/m4/bison_ylwrap.sh |
---|
26 | AM_YFLAGS = -d |
---|
27 | |
---|
28 | noinst_LTLIBRARIES = libdrmaa_utils.la |
---|
29 | |
---|
30 | libdrmaa_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 | |
---|
53 | libdrmaa_utils_la_LDFLAGS = -static |
---|
54 | libdrmaa_utils_la_CPPFLAGS = -fPIC |
---|
55 | |
---|
56 | if GCC |
---|
57 | if !DEVELOPER_MODE |
---|
58 | # allow `%m` in printf-like format string |
---|
59 | # Bison and Ragel generated code have many unused symbols |
---|
60 | libdrmaa_utils_la_CPPFLAGS += -Wno-unused |
---|
61 | endif |
---|
62 | endif |
---|
63 | |
---|
64 | include_HEADERS = drmaa.h |
---|
65 | |
---|
66 | BUILT_SOURCES = \ |
---|
67 | datetime_tab.c datetime_tab.h \ |
---|
68 | conf_tab.c conf_tab.h \ |
---|
69 | drmaa_attrib.c \ |
---|
70 | timedelta.c |
---|
71 | |
---|
72 | EXTRA_DIST = drmaa_attrib.gperf timedelta.rl |
---|
73 | |
---|
74 | if DEVELOPER_MODE |
---|
75 | CLEANFILES = $(BUILT_SOURCES) |
---|
76 | endif |
---|
77 | |
---|
78 | drmaa_attrib.c: drmaa_attrib.gperf |
---|
79 | $(GPERF) $(GPERFFLAGS) --output-file=drmaa_attrib.c drmaa_attrib.gperf |
---|
80 | timedelta.c: timedelta.rl |
---|
81 | $(RAGEL) $(RAGELFLAGS) -o timedelta.c timedelta.rl |
---|
82 | |
---|