# 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
#
# %Z%%M% %I% %E% 
#
# Copyright (c) 1987 by Sun Microsystems, Inc.
#

# Global macro definitions
INSDIR=${OPENWINHOME}/share/src/xnews
OSI=SUN
SYSV=
OPT=-O
BYTES=
COPTS=${BYTES}

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

CFLAGS=${OPT} ${COPTS} ${INCLUDE} -D${OSI} ${SYSV} -DUSE_EXTENSIONS \
	-DAUDIO
LINTOPTS = -axz
LINTFLAGS = $(LINTOPTS) $(INCLUDE) $(STD_DEFINES) $(DEFINES) -DLINT

MAJORVERSION=0
MINORVERSION=0

EXTLIB= libXext.a

SRCS=		XAudio.c
#SRCS=		XBezier.c XFillZoids.c XAudio.c

# add sharable object files here
#OBJS=		XBezier.o XFillZoids.o XAudio.o
OBJS=		XAudio.o

# add external data objects here
SAOBJS =

HDRS= bezier.h zoid.h audio.h
RM = rm
AR = ar
LD = ld

all: 	dynamic static

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

static:	${EXTLIB}

${EXTLIB}: ${OBJS}
	rm -f $@
	ar vclq ${EXTLIB} $?
	ranlib ${EXTLIB}

lint: llib-lXext.ln
	
llib-lXext.ln: $(SRCS)
	$(RM) $@
	$(LINT) -CXext $(LINTFLAGS) $(SRCS)

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

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

install: all libinstall

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

# START OF AUTOMATICALLY GENERATED DEPENDENCIES 
