[torqueusers] Torque on sparc, Libpbs Makefile

Santiago Nuñez snunezcr at gmail.com
Fri Feb 24 14:26:24 MST 2006


Hello again,

Here is the Makefile of the Libpbs directory.

Thanks.
-------------- next part --------------
# Generated automatically from Makefile.in by configure.
#
#
#	Makefile for PBS library libpbs.a
#
#         OpenPBS (Portable Batch System) v2.3 Software License
# 
# Copyright (c) 1999-2000 Veridian Information Solutions, Inc.
# All rights reserved.
# 
# ---------------------------------------------------------------------------
# For a license to use or redistribute the OpenPBS software under conditions
# other than those described below, or to purchase support for this software,
# please contact Veridian Systems, PBS Products Department ("Licensor") at:
# 
#    www.OpenPBS.org  +1 650 967-4675                  sales at OpenPBS.org
#                        877 902-4PBS (US toll-free)
# ---------------------------------------------------------------------------
# 
# This license covers use of the OpenPBS v2.3 software (the "Software") at
# your site or location, and, for certain users, redistribution of the
# Software to other sites and locations.  Use and redistribution of
# OpenPBS v2.3 in source and binary forms, with or without modification,
# are permitted provided that all of the following conditions are met.
# After December 31, 2001, only conditions 3-6 must be met:
# 
# 1. Commercial and/or non-commercial use of the Software is permitted
#    provided a current software registration is on file at www.OpenPBS.org.
#    If use of this software contributes to a publication, product, or
#    service, proper attribution must be given; see www.OpenPBS.org/credit.html
# 
# 2. Redistribution in any form is only permitted for non-commercial,
#    non-profit purposes.  There can be no charge for the Software or any
#    software incorporating the Software.  Further, there can be no
#    expectation of revenue generated as a consequence of redistributing
#    the Software.
# 
# 3. Any Redistribution of source code must retain the above copyright notice
#    and the acknowledgment contained in paragraph 6, this list of conditions
#    and the disclaimer contained in paragraph 7.
# 
# 4. Any Redistribution in binary form must reproduce the above copyright
#    notice and the acknowledgment contained in paragraph 6, this list of
#    conditions and the disclaimer contained in paragraph 7 in the
#    documentation and/or other materials provided with the distribution.
# 
# 5. Redistributions in any form must be accompanied by information on how to
#    obtain complete source code for the OpenPBS software and any
#    modifications and/or additions to the OpenPBS software.  The source code
#    must either be included in the distribution or be available for no more
#    than the cost of distribution plus a nominal fee, and all modifications
#    and additions to the Software must be freely redistributable by any party
#    (including Licensor) without restriction.
# 
# 6. All advertising materials mentioning features or use of the Software must
#    display the following acknowledgment:
# 
#     "This product includes software developed by NASA Ames Research Center,
#     Lawrence Livermore National Laboratory, and Veridian Information
#     Solutions, Inc.
#     Visit www.OpenPBS.org for OpenPBS software support,
#     products, and information."
# 
# 7. DISCLAIMER OF WARRANTY
# 
# THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT
# ARE EXPRESSLY DISCLAIMED.
# 
# IN NO EVENT SHALL VERIDIAN CORPORATION, ITS AFFILIATED COMPANIES, OR THE
# U.S. GOVERNMENT OR ANY OF ITS AGENCIES BE LIABLE FOR ANY DIRECT OR INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 
# This license will be governed by the laws of the Commonwealth of Virginia,
# without reference to its choice of law rules.
#
# the first non-comment line must be .POSIX to assure POSIX make behavior
#
.POSIX:

srcdir = .
top_srcdir = ../../..
MK_VPATH = ./../Libifl:./../Libdis
INSTALL = ../../.././buildutils/install-sh -c


# START head.mk

DEPEND = ${top_srcdir}/buildutils/makedepend-sh
RANLIB = ranlib
CC = gcc
AR = ar
DEFS = -DHAVE_CONFIG_H
CFLAGS_TMP = -g
LIBS = 

LEX = flex
YACC = bison -y -d
LEXLIB = -lfl

HOST = sparc64-unknown-linux-gnu
HOST_OS = linux-gnu
HOST_CPU = sparc64

prefix =       /usr/local
exec_prefix =  ${prefix}
bindir =       ${exec_prefix}/bin
sbindir =      ${exec_prefix}/sbin
datadir =      ${prefix}/share
includedir =   ${prefix}/include
libdir =       ${exec_prefix}/lib
mandir =       ${prefix}/man

pbs_os_version =  
pbs_os_type =     linux-gnu


# Please Do Not Change the Following
SHELL	= /bin/sh


# For documentation processing

PRTCMD	= lpr 
PRTFLG	= -P${PRINTER}
ROFF	= groff
TBL	= gtbl
PIC	= pic
POSTPS	= cat
LN_S    = ln -s
RM	= rm -f



# The PBS Machine Target type
PBS_MACH = linux

# The scheduler type chosen.
SCHD_TYPE = cc

# The path and name of the special rcp used by MOM (pbs_rcp)
RCP_PATH        = $(sbindir)/pbs_rcp

# The path and name of the credential providing program used by the API.
IFF_PATH	= $(sbindir)/pbs_iff

# The path and name of the demuxing program.
DEMUX_PATH	= $(sbindir)/pbs_demux

# Absolute path of file holding default server name (for clients)
PBS_DEFAULT_FILE = ${PBS_SERVER_HOME}/server_name

# Name of the default server, typically this is the same as the host name.
# The name is written into PBS_DEFAULT_FILE for the clients.
PBS_DEFAULT_SERVER = bc-master

# Home working directory for the PBS Server (where it keeps it queues/jobs)
# when it is running
PBS_SERVER_HOME	= /usr/spool/PBS


# A section of machine dependent defines.




#
# in case a POSIX make is not behaving completely correctly we 
# delete all of the suffix rules and replace them with POSIX
# suffix rules as taken from the POSIX standard
#
.SUFFIXES:
.SUFFIXES: .o .c .y .l .a 

.c:
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<

.c.o:
	$(CC) $(CFLAGS) -c $<

.y.o:
	$(YACC) $(YFLAGS) $<
	$(CC) $(CFLAGS) -c y.tab.c
	rm -f y.tab.c
	mv y.tab.o $@

.l.o:
	$(LEX) $(LFLAGS) $<
	$(CC) $(CFLAGS) -c lex.yy.c
	rm -f lex.yy.c
	mv lex.yy.o $@

.y.c:
	$(YACC) $(YFLAGS) $<
	mv y.tab.c $@

.l.c:
	$(LEX) $(LFLAGS) $<
	mv lex.yy.c $@



# END head.mk

INCS = -I../../../src/include -I$(top_srcdir)/src/include \
       -I$(srcdir)/../Libdis -I$(srcdir)/../Libifl

CFLAGS = -g $(INCS) -DHAVE_CONFIG_H -DIFF_PATH=\"$(IFF_PATH)\"

TARGET = libpbs.a

OBJS1 =   PBS_data.o PBS_attr.o get_svrport.o \
          pbs_geterrmg.o pbs_statfree.o PBSD_manage2.o \
          PBSD_msg2.o PBSD_rdrpy.o PBSD_sig2.o PBSD_status2.o \
          PBSD_submit_caps.o dec_Authen.o dec_CpyFil.o dec_JobCred.o dec_JobFile.o \
          dec_JobId.o dec_JobObit.o dec_Manage.o dec_MsgJob.o dec_MoveJob.o \
          dec_QueueJob.o dec_Reg.o dec_ReqExt.o dec_ReqHdr.o dec_Resc.o \
          dec_RunJob.o dec_Shut.o dec_Sig.o dec_Status.o dec_Track.o \
          dec_attrl.o dec_attropl.o dec_rpyc.o dec_rpys.o dec_svrattrl.o \
          enc_CpyFil.o enc_JobCred.o enc_JobFile.o enc_JobId.o enc_JobObit.o \
          enc_Manage.o enc_MsgJob.o enc_MoveJob.o enc_QueueJob.o enc_Reg.o \
          enc_ReqExt.o enc_ReqHdr.o enc_RunJob.o enc_Shut.o enc_Sig.o \
          enc_Status.o enc_Track.o enc_attrl.o enc_attropl.o enc_reply.o \
          enc_svrattrl.o tcp_dis.o tm.o rpp.o nonblock.o

DISOBJS = PBSD_manager_caps.o PBSD_status.o pbsD_alterjo.o \
          pbsD_asyrun.o pbsD_connect.o pbsD_deljob.o pbsD_holdjob.o \
          pbsD_locjob.o pbsD_manager.o pbsD_movejob.o pbsD_msgjob.o \
          pbsD_orderjo.o pbsD_rerunjo.o pbsD_resc.o pbsD_rlsjob.o pbsD_runjob.o \
          pbsD_selectj.o pbsD_sigjob.o pbsD_stagein.o pbsD_statjob.o \
          pbsD_statnode.o pbsD_statque.o pbsD_statsrv.o pbsD_submit.o \
          pbsD_termin.o 

LDISOBJS = dis.o discui_.o discul_.o disi10d_.o disi10l_.o disiui_.o \
          disp10d_.o disp10l_.o disrcs.o disrd.o disrf.o \
          disrfcs.o disrfst.o disrl.o disrl_.o disrsc.o \
          disrsi.o disrsi_.o disrsl.o disrsl_.o disrss.o \
          disrst.o disruc.o disrui.o disrul.o disrus.o \
          diswcs.o diswf.o diswl_.o diswsi.o diswsl.o \
          diswui.o diswui_.o diswul.o


OBJS = $(OBJS1) $(DISOBJS) $(LDISOBJS)


# START lib.mk

#
# All of the PBS libs are made using this standard form and target
#

all: autodepend
	+@$(MAKE) build

build: $(TARGET)


$(TARGET): $(OBJS)
	$(AR) $(ARFLAGS) $@ $? && \
	$(RANLIB) $@

install:: $(TARGET)
	@# a two step process is best to work around broken installs
	$(INSTALL) -d $(libdir) && \
	$(INSTALL) -m 644 $(TARGET) $(libdir)/$(TARGET)

# END lib.mk

# START cleanup.mk

#
# most Makefiles can include these as the cleanup routines
#

clean::
	-($(RM) $(OBJS) $(TARGET) $(TARGETS); exit 0) > /dev/null 2>&1

distclean:: clean
	-($(RM) $(DEP_STAMP) Makefile; exit 0) > /dev/null 2>&1

# END cleanup.mk

# START tail.mk

#
# Generated automatically from tail.mk.in by configure.
#


# The philosophy of depend...
# - dependencies should be generated automatically, without the
#   user having to do anything the first time.
# - dependencies should not ever be regenerated unless the user 
#   explicitly does a "make depend", or after a clean.
# - regenerating dependencies automatically whenever they theoretically
#   should be regenerated just annoys people working on code.
# - dependencies should be regenerated whenever Makefile has been
#   touched, as this is usually due to it being remade from
#   a Makefile.in by configure (in which case all of the depend info
#   has been lost).
#
# There are two dependency related targets:
#    autodepend (gets made every time and depends on a stamp file)
#    depend     (gets made by explicit user invocation)
#
# Thus we expect some sort of:
#    all: autodepend realtarget
# as the default target in the makefile.
#

# the name of the file to time stamp after dependency (re)generation
DEP_STAMP=.depend_stamp

# all possible dependency related files
DEP_FILES=$(DEP_STAMP) .depends .dep_cksum

#
# the name of a file containing makefile-style suffix transformation
# rules to use. In the PBS tree the head.mk file contains a set of
# POSIX rules.
#
MAKERULES=$(top_srcdir)/./buildutils/mkincludes/posix_rules

#
# the name of a sed script file used to process the list of .h
# dependencies. This is useful for excluding things in /usr/include
# and other places that otherwise bloat the makefile
#
XSCRIPT=$(top_srcdir)/buildutils/exclude_script

#
# autodepend: create dependencies only if the .depend-stamp file does
# not exist. (this target is never invoked directly by a human)
# The reason for having two targets here is so that we have a 
# friendlier name in "all: autodepend realtarget" than $(DEP_STAMP)
#
autodepend: $(DEP_STAMP)

$(DEP_STAMP): Makefile
	@echo generating dependencies
	@$(DEPEND) -v -m $(MAKERULES)  \
                 -x "$(MKDEP_EXCLUDE)" -i "$(MKDEP_IGNORE)" \
                 -p "$(CC) -E" -V $(MK_VPATH) -e $(XSCRIPT) -- \
                 $(CFLAGS) -- $(OBJS) && touch $(DEP_STAMP)

	

#
# depend: force a remaking of depends by removing the stamp file and
# invoking make again. The reason that it is done in the subshell is
# to prevent make from telling us that rm failed even though '-' is given.
# Although most makes automatically execute lines with "MAKE" appearing
# in them regardless of whether "-n" is given, POSIX does not specify
# this, so we use a "+".
#
depend:
	-@(/bin/rm -f $(DEP_FILES); exit 0) > /dev/null 2>&1
	+@$(MAKE) autodepend

distclean::
	-@(/bin/rm -f $(DEP_FILES); exit 0) > /dev/null 2>&1

# END tail.mk


More information about the torqueusers mailing list