#	Makefile for programs in directory $PSGF/other
#
#	$Log: Makefile.frame,v $
# Revision 1.1.1.1  1996/05/29  23:53:33  prisms
# Initial release
#

.INCLUDE:	"Prisms.make"

PROGRAMS	=	fbumpmap

#
# C program sources that live in this directory
#
SOURCES		=	fbumpmap.c

INCLUDES	=	
#
# Manual pages must exist for PROGRAMS and SCRIPTS
#
# DEBUG		=	-DDEBUG -g
DEFINES		=	$(DEBUG) -D$(MACHINE) -D$(UNIX)
OPTIMIZER 	= 	-O

COMMON_CFLAGS	= 	$(DEFINES) $(INCFLAG) $(OPTIMIZER)
MIPS_CFLAGS	=	-G 4

COMMON_LIBS	=	-lFB -larray -ltools -lm
IRISLIBS	=	-lgl -lbsd -ldbm
SUNLIBS		=	-lpixrect
FOURDLIBS	=	-ltiff -lgl_s -lc_s -lbsd
MIPSLIBS	=	-lpc

all:	$(PROGRAMS)

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

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

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

install:	$(PROGRAMS)
	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
