# This makefile is for xforward.
# See the file NOTICE for distribution information.
#
#       Created: 	21 Oct 1990
#
#	Win Treese
#	Cambridge Research Lab
#	Digital Equipment Corporation
#	treese@crl.dec.com
#
#	$Source: /udir/treese/Work/Xforward.src/RCS/Makefile,v $
#	$Header: /udir/treese/Work/Xforward.src/RCS/Makefile,v 1.1 1993/06/05 02:32:00 treese Exp $
#

# Where to install things
# DESTDIR is normally empty, unless you want an entirely different root.
# BINDIR is where the executable will be installed.
# MANDIR is where the manual page will be installed.

DESTDIR=
BINDIR=/usr/local/bin
MANDIR=/usr/local/man/man1

# Where to find things
# INCFLAGS lists directories to search for header files
# LDFLAGS lists directories to search for libraries
# LIBS lists the necessary libraries (Motif, Xt, X11)

INCFLAGS= -I/usr/lib/DXM/lib -I/usr/lib/DXM/lib/Xt
LDFLAGS= -L/usr/lib/DXM/lib/Xm -L/usr/lib/DXM/lib/Xt
LIBS= -lXm -lXt -lX11

CFLAGS= ${INCFLAGS} -O

# For CenterLine CodeCenter
CENTER_FLAGS= ${INCFLAGS}

SRCS= xforward.c
AUXFILES= README NOTICE Makefile xforward.1

PROGS = xforward

all: ${PROGS}

xforward:	xforward.o
	cc ${LDFLAGS} xforward.o -o xforward ${LIBS}

xforward.o:	xforward.c
	cc -c ${CFLAGS} xforward.c

install: ${PROGS}
	install -c xforward ${DESTDIR}${BINDIR}/xforward
	install -c xforward.1 ${DESTDIR}${MANDIR}/xforward.1
clean: 	;
	rm -f *~ *.o core ${PROGS}

center:
	#load ${LDFLAGS} ${LIBS}
	#load ${CENTER_FLAGS} xforward.c

shar:
	shar ${AUXFILES} ${SRCS} > xforward.shar

dist:
	tar cf - ${AUXFILES} ${SRCS} | compress -c > xforward.tar.Z
