# This file is a product of Sun Microsystems, Inc. and is provided for
# unrestricted use provided that this legend is included on all tape
# media and as a part of the software program in whole or part.  Users
# may copy or modify this file without charge, but are not authorized to
# license or distribute it to anyone else except as part of a product
# or program developed by the user.
# 
# THIS FILE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
# WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
# PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
# 
# This file is provided with no support and without any obligation on the
# part of Sun Microsystems, Inc. to assist in its use, correction,
# modification or enhancement.
# 
# SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
# INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS FILE
# OR ANY PART THEREOF.
# 
# In no event will Sun Microsystems, Inc. be liable for any lost revenue
# or profits or other special, indirect and consequential damages, even
# if Sun has been advised of the possibility of such damages.
# 
# Sun Microsystems, Inc.
# 2550 Garcia Avenue
# Mountain View, California  94043
#
# @(#)Make.ext 23.2 90/06/19 
#
# Copyright (c) 1987 by Sun Microsystems, Inc.
#

# Global macro definitions
INSDIR=/Proto/4.0/Xnews/sun3/usr/share/src/xnews
OSI=SUN
SYSV=
OPT=-O
BYTES=
COPTS=${BYTES}

# --- Sun Specific Src ---
SUNSPECIFICSRC=
SUNSPECIFICOBJ=
SUNSPECIFICHDR=
#
LIBDIR=${INSDIR}/lib
INCLUDEDIR=${INSDIR}/include
INCLUDE= -I${INCLUDEDIR} -I${INCLUDEDIR}/X11 -I${XNEWSHOME}/include/X11

CFLAGS=${OPT} ${COPTS} ${INCLUDE} -D${OSI} ${SYSV} -DUSE_EXTENSIONS

MAJORVERSION=0
MINORVERSION=0

EXTLIB= libXextent.a
EXTLIBSO= libXextent.so.${MAJORVERSION}.${MINORVERSION}
EXTLIBSA= libXextent.sa.${MAJORVERSION}.${MINORVERSION}

SRCS=		initext.c

# add sharable object files here
OBJS=		initext.o

# add external data objects here
SAOBJS =

HDRS=

all: 	dynamic static

dynamic:=	CFLAGS += -pic
dynamic:	${EXTLIBSO} ${EXTLIBSA}

static:	${EXTLIB}

${EXTLIB}: ${OBJS}
	ar uv ${EXTLIB} $?
	ranlib ${EXTLIB}

${EXTLIBSA}:	${SAOBJS}
	ar uv $@ ${SAOBJS}
	ranlib $@

${EXTLIBSO}:	${OBJS}
	rm -f $@
	ld -o $@ -assert pure-text $(OBJS)

depend:	../../makedepend ${HDRS} ${SRCS}
	../../makedepend ${INCLUDE}

clean:
	rm -f *.o *.a *.BAK *.so.* *.sa.*

install: all libinstall

libinstall: ${EXTLIB}
	(cd ${LIBDIR}; rm -f ${EXTLIB})
	cp ${EXTLIB} ${LIBDIR}/${EXTLIB}; ranlib ${LIBDIR}/${EXTLIB}

# START OF AUTOMATICALLY GENERATED DEPENDENCIES 
