#
#
#  $Header: /nwd/tools/media/X11/XP/src/lib/Xp/RCS/Makefile.pen,v 1.6 1993/02/03 18:20:32 kentb Exp $
#  Copyright, Tektronix, Inc., 1990, 1991
#
#
#  Define library built by this Makefile.
#
LIBRARY = libXp.a
#
#
#  Define object files in library.
#
OBJECTS = \
	XpAtom.o\
	XpCrPropWin.o\
	XpEnv.o\
        XpError.o\
	XpGetProp.o\
	XpGlobals.o\
	XpHomeAccess.o\
	XpOpenDpy.o\
	XpSendClMsg.o\
	XpSendProp.o\
	XpSetProp.o\
	XpSIGCHLD.o
#
#
#  Define C compiler.
#
CC = cc
#
#  
#  Define compilation flags.
#	-g		= debugging info
#	-O		= optimize (cannot use -g then)
#	-DSYSV		= System V machine
#	-DGLOBAL=	= define GLOBAL to be null string
#	-DM4800 -DUTEKV -DSYSV -DUSG -DMALLOC_0_RETURNS_NULL -DGLOBAL=
#			= Tek XD88 machines
#	-O -cckr -DSYSV -DUSG -DMALLOC_0_RETURNS_NULL -DGLOBAL=
#			= SGI machines
#
CFLAGS = -g -DM4800 -DUTEKV -DSYSV -DUSG -DMALLOC_0_RETURNS_NULL -DGLOBAL=
#
#
#  Define where to look for .h files.
#
INCLUDES = -I. -I../../include
#
#  
#  Define archive command.
#	ar clq	= Tek XD88 machines
#	ar qv	= Ultrix
#
AR = ar clq
#
#  
#  Define ranlib command.
#	/bin/file	= Tek XD88 machines
#	ranlib		= Ultrix
#	ar -rs		= SGI machines
#
RANLIB = /usr/bin/ranlib
#
#
#  Commands to build library.
#
$(LIBRARY):	$(OBJECTS)
		rm -f $(LIBRARY)
		$(AR) $(LIBRARY) $(OBJECTS)
		$(RANLIB) $(LIBRARY)

.c.o:
		$(CC) $(CFLAGS) -c $(INCLUDES) $<

clean:
		rm -f $(OBJECTS) $(LIBRARY)
#
#
#  End of Makefile.
#
#
