#
#
#  $Header: /tmp_mnt/vol/nwd/tools/media/X11/XP/src/xpsh/RCS/Makefile.pen,v 1.2 1993/01/22 00:55:36 davidsc Exp $
#  Copyright, Tektronix, Inc., 1990, 1991
#
#
#  Define program built by this Makefile.
#
PROGRAM = xpsh
#
#
#  Define object files in program.
#
OBJECTS = xpsh.o
#
#
#  Define C compiler.
#
CC = cc
#
#  
#  Define compilation flags.
#	-g	= debugging info
#	-O	= optimize (cannot use -g then)
#	-DSYSV	= System V machine
#	-DM4800 -DUTEKV -DSYSV -DUSG -DMALLOC_0_RETURNS_NULL
#		= Tek XD88 machines
#	-O -cckr -DSYSV -DUSG -DMALLOC_0_RETURNS_NULL
#		= SGI machines
#
CFLAGS = -g -DM4800 -DUTEKV -DSYSV -DUSG -DMALLOC_0_RETURNS_NULL
#
#
#  Define where to look for .h files.
#
INCLUDES = -I. -I../include
#
#
#  Define libraries with which to link.
#	../lib/Xp/libXp.a
#		= Tekronix X11 XP local client utilities library
#	../lib/Xu/libXu.a
#		= Tekronix X11 utilities library
#	-lX11	= X11 graphics library
#
LIBS = ../lib/Xp/libXp.a ../lib/Xu/libXu.a -lX11
#
#
#  Commands to compile and link objects together.
#
$(PROGRAM):	$(OBJECTS)
		rm -f $(PROGRAM)
		$(CC) $(CFLAGS) -o $(PROGRAM) $(OBJECTS) $(LIBS)

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

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