source: trunk/pbs_drmaa/Makefile.am @ 103

Revision 103, 1.7 KB checked in by pkopta, 9 years ago (diff)
  • Property svn:keywords set to Id
Line 
1# $Id$
2#
3# FedStage DRMAA for PBS Professional
4# Copyright (C) 2006-2009  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
22AM_CPPFLAGS = @PBS_INCLUDES@ -I$(top_srcdir)/drmaa_utils -fPIC
23
24lib_LTLIBRARIES = libdrmaa.la
25
26libdrmaa_la_SOURCES = \
27 drmaa.c \
28 job.c job.h \
29 pbs_attrib.h \
30 session.c session.h \
31 submit.c submit.h \
32 util.c util.h \
33 log_reader.c log_reader.h \
34 pbs_conn.c pbs_conn.h
35
36
37if PBS_PROFESSIONAL
38GPERF_INPUT= pbs_attrib_pro.gperf
39else
40GPERF_INPUT= pbs_attrib.gperf
41endif
42
43libdrmaa_la_SOURCES += $(GPERF_INPUT)
44
45BUILT_SOURCES       = $(GPERF_INPUT:.gperf=.c)
46EXTRA_DIST          = $(GPERF_INPUT:.gperf=.c)
47
48if TORQUE4
49libdrmaa_la_SOURCES += torque4.cpp torque4.h
50endif
51dist_sysconf_DATA   = pbs_drmaa.conf.example
52libdrmaa_la_LIBADD  = ../drmaa_utils/drmaa_utils/libdrmaa_utils.la @PBS_LIBS@
53libdrmaa_la_LDFLAGS = @PBS_LDFLAGS@ -version-info @PBS_DRMAA_VERSION_INFO@
54
55
56.gperf.c:
57        $(GPERF) $(GPERFFLAGS) --output-file=$@ $<
58
59if GCC
60$(GPERF_INPUT:.gperf=.lo): CFLAGS += @GCC_W_NO_MISSING_FIELD_INITIALIZERS@
61endif
Note: See TracBrowser for help on using the repository browser.