# COPYRIGHT
#
# This file is part of Mustajuuri.
#
# Author: Tommi Ilmonen, 1999-2001.
#
# Mustajuuri is licensed under GNU Lesser General Public License
# (LGPL). The LGPL text can be founs in file "LGPL" that is
# distributed with this source package. The Mustajuuri way to
# interpret LGPL can be found in file "MUSTAJUURI_LICENSE" that is
# distributed with the mustajuuri source code.  
#
# License: LPGL

# FOR SGI/IRIX

$(PLATFORM)/lib$(LIBRARY).so: $(addprefix $(PLATFORM)/,$(OBJS))
		@echo "Creating $(PLATFORM)/$(DLIBRARY) ..."
		cd $(PLATFORM); $(LD) $(LDFLAGS) -shared $(OBJS)  $(DLIBS) $(LIBS) -o $(DLIBRARY)
		$(EXECPERMISSIONS) $(PLATFORM)/$(DLIBRARY)
		$(EXECPERMISSIONS) $(PLATFORM)/ii_files
		$(NORMALPERMISSIONS) $(PLATFORM)/ii_files/*
		cd $(MUSTAJUURI_LIB_TARGET)/; \
		rm -f $(DLIBRARY); \
		ln -s -f $(PWD)/$(PLATFORM)/$(DLIBRARY) .

