GNUmakefile
761 Bytes
#!smake
#
# This makefile generates libimage.so from libimage.a, which we
# need in order to work around a Global Offset Table problem with large
# vcs derived executables.
PRDEPTH = ../..
LD=/usr/sbin/ld
include $(PRDEPTH)/PRdefs
include $(ROOT)/usr/include/make/ismcommondefs
#
# SGI Common Rules
#
include $(PRDEPTH)/PRrules
COMMONPREF=TOOLS
TARGETS = libimage.so
LDIRT = so_locations
default exports: $(TARGETS)
#
# Nothing to install; we'll leave libimage.so in place for now. Eventually
# it might need to be installed if we run into an inst boot-phase problem
# when creating images.
#
install : default
libimage.so: $(ROOT)/host_lib/libimage.a
$(LD) -soname libimage.so -elf -shared --whole-archive $? --no-whole-archive \
-lc -o libimage.so