#
# Makefile for psraster, leonid@math.tau.ac.IL
#
DESTBIN = /usr/local
DESTLIB = /usr/local/lib/ps
#DESTLIB = /udv/mafia/leonid/src/psraster
MANSECT = l

#CFLAGS = -g -DDEBUG -DDESTLIB=\"$(DESTLIB)\" -f68881
CFLAGS = -O -DDESTLIB=\"$(DESTLIB)\" -f68881
LIBS = -lpixrect -lm

all:		psraster

psraster.o:	psraster.c
psraster: 	psraster.o
	$(CC) $(CFLAGS) -o $@ $? $(LIBS)

install:	psraster psraster.ps psraster.man
		install -s psraster $(DESTBIN)
		install psraster.ps $(DESTLIB)
		cp psraster.man /usr/man/man$(MANSECT)/psraster.$(MANSECT)

clean:
		rm -f *.o psraster

lint:		psraster.c
		lint -achv $(LIBS)

shar:		psraster.c psraster.ps psraster.man Makefile
		cat README > shar
		shar -u psraster.c psraster.ps psraster.man Makefile \
		| sed -e 's/ $$/    $$/' >> shar