#
#
#  $Header: /tmp_mnt/vol/nwd/tools/media/X11/XP/src/xev/RCS/Makefile.tape,v 1.1 1992/02/07 17:47:25 cathybr Exp $
#  Copyright, Tektronix, Inc., 1990, 1991
#
#
#  xev - X event diagnostics
#
#
#  Define program built by this Makefile.
#
PROGRAM = xev
#
#
#  Define object files in program.
#
OBJECTS = xev.o
#
#
#  Define C compiler.
#
CC = cc
#
#  
#  Define compilation flags.
#	-g		= debugging info (switch off -O if using this)
#	-O		= optimize (cannot use -g )
#
# Note: This program uses some K&R C constructs, you may have to turn
#        on a compatibility flag if you have an ANSI compiler.  This
#        is the first thing to try if you find the program gets a
#        segmentation fault on startup.
#
#	 e.g. use "-traditional" with gcc
#
CFLAGS = -O
#
#
#  Define where to look for .h files.
#
INCLUDES = -I/usr/include -I/usr/openlook/include -I/usr/openwin/include
#
#
#  Define libraries with which to link.
#
LIBS = -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)

install:	$(PROGRAM)
		/usr/bin/install -c -s $(PROGRAM) /etc/$(PROGRAM)
#
#
#  End of Makefile.
#
#
