#
#
#  $Header: /tmp_mnt/vol/nwd/tools/media/X11/XP/src/xlock/RCS/Makefile,v 1.2 1991/05/22 11:27:33 stank Exp $
#  Copyright, Tektronix, Inc., 1990, 1991
#
#
#  Define program built by this Makefile.
#
PROGRAM  = xlock
#
#
#  Define object files in program.
#
OBJECTS  = xlock.o \
	   hopalong.o \
	   life.o qix.o \
	   XCrHsbCmap.o \
	   HSBmap.o \
	   XCrDynCmap.o

#
#
#  Define C compiler.
#
CC = cc
#
#  
#  Define compilation flags.
#	-g	= debugging info
#	-O	= optimize (cannot use -g then)
#	-DSYSV	= System V machine
#	-DUTEK  = Tek XD88
#
CFLAGS = -g
#
#
#  Define where to look for .h files.
#
#  e.g.     -I/usr/include         for UTek
#           -I/usr/openwin/include for Sun4
INCLUDES =  -I/usr/openwin/include
#
#
#  Define libraries with which to link.
#
LIBS = -lX11 -lm
#
#
#  Commands to compile and link objects together.
#
all:		$(PROGRAM)

$(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.
#
#
