#!/bin/csh -f
# --- Copyright University of Sussex 1996. All rights reserved. ----------
# File:             C.unix/extern/unicode/mkencodings
# Purpose:          Build encoding shareable libraries
# Author:           John Gibson, Feb 27 1997
# Documentation:
# Related Files:

eval `$popcom/get_archive_args csh $*:q`

if { $CC -c $CFLAGS $IDIRS *.c } then
	if ( $LIBEXTN == ".a" ) then
		set LIBNAME = $popexternlib/libencodings.a
		eval $AR *.o $LDLIBS && eval $RANLIB
	else
		foreach f (*.o)
			set LIBNAME = $popexternlib/$f:r$LIBEXTN
			eval $AR $f $LDLIBS
		end
	endif
endif

rm *.o
