# N.B. the previous line should be blank. #+ # Name: # pda_link # Purpose: # Generate linker (ld) arguments for linking against the ADAM version # of the PDA library. # Language: # Bourne Shell # Type of Module: # Shell script. # Invocation: # The script is normally invoked as part of a compiler command line, # such as: # # alink program.f -L/star/lib `pda_link_adam` # Description: # This script should be invoked by those building ADAM # applications which use PDA in order to generate the correct # arguments for the compiler (or ld) command. The arguments # generated are written to the standard output. # Copyright: # Copyright (C) 1995 Rutherford Appleton Laboratory # Licence: # 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 2 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, write to the Free Software # Foundation, Inc., 51 Franklin Street,Fifth Floor, Boston, MA # 02110-1301, USA # Authors: # DSB: Davdi Berry (STARLINK) # {enter_new_authors_here} # History: # 3-MAR-1997 (DSB): # Original version (copied from NDF equivalent). # {enter_further_changes_here} #- echo -lpda `ems_link_adam` \ | awk 'BEGIN{RS=" ";FS="\n"} {f[i++]=$1} END{for(;i--;)if(!w[f[i]]++)l=f[i]" "l;print l}' # End of script.