#
# Makefile for xdl --  modify to fit your site.
#
# Jonas Yngvesson <jonas-y@isy.liu.se>
#


#
# If your system haven't setitimer and/or getitimer, uncomment
# next line.
#TIMER	= -DNO_ITIMER

#
# If your running on a non-bsd system that defines u_long et al
# in /usr/include/sys/bsdtypes.h, like Interactive 386/ix,
# uncomment next line:
#BSDT	= -DBSDTYPES

#
# On Interactive 386/ix, you need the nsl_s library, uncomment
# next line.
#IXLIBS	= -lnsl_s

#
# Modify these to fit the compiler setup on your system.
CC = gcc
CFLAGS = -O2
LIBS = -lX11 $(IXLIBS)

#
# These specify where to install the binary
# and the manual.
BINDIR = /usr/local/bin
MANDIR = /usr/local/man/man1
MANEXT = 1

all: xdl

xdl: xdl.c
	$(CC) $(CFLAGS) $(TIMER) $(BSDT) -o xdl xdl.c $(LIBS)

install: xdl xdl.man
	cp xdl $(BINDIR)
	cp xdl.man $(MANDIR)/xdl.$(MANEXT)

clean:
	$(RM) xdl *.o *~ core
