#	Makefile for programs in directory gbin/detail/pcommands
#
#	$Header: /ufs/pcvs/src/support/source/illustrator/Root/Makefile.illus,v 1.1 1996/06/05 21:18:01 awai Exp $
#
#	$Log: Makefile.illus,v $
# Revision 1.1  1996/06/05  21:18:01  awai
# Code needed reorganization so that CVS directories don't end up in
# distributed areas.
#
# Revision 1.1.1.1  1996/05/29  23:53:33  prisms
# Initial release
#

.INCLUDE:	"Prisms.make"

#
# C programs that live in this directory
#

PROGRAMS	=	pilltod

SOURCES		=	pilltod.c

#
# Programs that are shell scripts
#
#SCRIPTS		=

#
# Manual pages must exist for PROGRAMS and SCRIPTS
#
# Again, keep these in alphabetical order too, please.

# DEBUG		=	-DDEBUG -g
DEFINES		=	$(DEBUG) -D$(MACHINE) -D$(UNIX)
OPTIMIZER 	= 	-O

COMMON_CFLAGS	= 	$(DEFINES) $(INCFLAG) $(OPTIMIZER)

COMMON_LIBS	=	-larray -loxpoly -lwing -lpoly -loxpoly -ltools -lvector -lm
FOURDLIBS	=	-lc_s
IRISLIBS	=	-lbsd

all:	progs

progs:  $(PROGRAMS)

$(PROGRAMS):
	$(CC) $(CFLAGS) -o $@ $@.c $(LIBFLAG) $(LIBS)

tags:
	ctags -t $(DEFINES) $(INCLUDES) $(PROGRAMS)

clean:
	rm -f a.out core *.o *lint.out $(PROGRAMS)

install: progs
	for prog in $(PROGRAMS); do \
	    strip $$prog ; \
	    $(INSTALL) -s -c -o prisms -g prisms -m 555 $$prog $(GBINDIR); \
	done

lint:
	for prog in $(PROGRAMS); do \
		(lint -ab $(INCFLAG) $$prog >$$prog.lint.out); \
	done
