#
#
#  $Header: /tmp_mnt/vol/nwd/tools/media/X11/XP/src/xmodmap/RCS/Makefile.pen,v 1.3 1993/01/22 00:58:49 davidsc Exp $
#  Copyright, Tektronix, Inc., 1990, 1991
#
#
#  Define program built by this Makefile.
#
PROGRAM1 = xmodmap
PROGRAM2 = getlang
#
#
#  Define object files in program.
#
OBJECTS1 = xmodmap.o pf.o handle.o exec.o XKeysym.o
OBJECTS2 = getlang.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
#		= SGI machines
#
CFLAGS = -g
#
#
#  Define where to look for .h files.
#	-I/usr/openwin/include
#		= Sun's X11 default include directory
#	<null>
#		= SGI machines
#
INCLUDES = -I/usr/openwin/include
#
#
#  Define libraries with which to link.
#	-lX11	= X11 graphics library
#
LIBS =  -lX11
#
#
#  Commands to compile and link objects together.
#
all:		$(PROGRAM1) $(PROGRAM2)

$(PROGRAM1):	$(OBJECTS1)
		rm -f $(PROGRAM1)
		$(CC) $(CFLAGS) -o $(PROGRAM1) $(OBJECTS1) $(LIBS)

$(PROGRAM2):	$(OBJECTS2)
		rm -f $(PROGRAM2)
		$(CC) $(CFLAGS) -o $(PROGRAM2) $(OBJECTS2) $(LIBS)

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

clean:
		rm -f core $(OBJECTS1) $(PROGRAM1) $(OBJECTS2) $(PROGRAM2)
#
#
#  End of Makefile.
#
#
