# $Id$ # # FedStage DRMAA for PBS Professional # Copyright (C) 2006-2009 FedStage Systems # # This program 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 3 of the License, or # (at your option) any later version. # # This program 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 this program. If not, see . # GPERF = @GPERF@ GPERFFLAGS = --readonly-tables AM_CPPFLAGS = @PBS_INCLUDES@ -I$(top_srcdir)/drmaa_utils -fPIC lib_LTLIBRARIES = libdrmaa.la libdrmaa_la_SOURCES = \ drmaa.c \ job.c job.h \ pbs_attrib.h \ session.c session.h \ submit.c submit.h \ util.c util.h \ log_reader.c log_reader.h \ pbs_conn.c pbs_conn.h if PBS_PROFESSIONAL GPERF_INPUT= pbs_attrib_pro.gperf else GPERF_INPUT= pbs_attrib.gperf endif libdrmaa_la_SOURCES += $(GPERF_INPUT) BUILT_SOURCES = $(GPERF_INPUT:.gperf=.c) EXTRA_DIST = $(GPERF_INPUT:.gperf=.c) if TORQUE4 libdrmaa_la_SOURCES += torque4.cpp torque4.h endif dist_sysconf_DATA = pbs_drmaa.conf.example libdrmaa_la_LIBADD = ../drmaa_utils/drmaa_utils/libdrmaa_utils.la @PBS_LIBS@ libdrmaa_la_LDFLAGS = @PBS_LDFLAGS@ -version-info @PBS_DRMAA_VERSION_INFO@ .gperf.c: $(GPERF) $(GPERFFLAGS) --output-file=$@ $< if GCC $(GPERF_INPUT:.gperf=.lo): CFLAGS += @GCC_W_NO_MISSING_FIELD_INITIALIZERS@ endif