#
#  Makefile for the various face format filters.
#
#  @(#)Makefile 1.4 90/06/26
#
#  Copyright (c) Rich Burridge - Sun Microsystems, Australia.
#
#  Permission is given to distribute these sources, as long as the
#  copyright messages are not removed, and no monies are exchanged. 
#
#  No responsibility is taken for any errors inherent either
#  to the comments or the code of this program, but if reported
#  to me then an attempt will be made to fix them.

# BINDIR is expected to be overridden by the calling Makefile

BINDIR		= /usr/local/bin

BINARIES	= icon2ikon ikon2icon rs2icon 

CC		= cc
CFLAGS		= -g

all:		$(BINARIES)

icon2ikon:	icon2ikon.o
		$(CC) -o icon2ikon $(CFLAGS) icon2ikon.o

ikon2icon:	ikon2icon.o
		$(CC) -o ikon2icon $(CFLAGS) ikon2icon.o

rs2icon:	rs2icon.o
		$(CC) -o rs2icon $(CFLAGS) rs2icon.o

clean:
		rm -f *.o $(BINARIES)

install:	$(BINARIES)
		install -s -m 751 icon2ikon $(BINDIR)
		install -s -m 751 ikon2icon $(BINDIR)
		install -s -m 751 rs2icon $(BINDIR)
		install -c -m 755 fs2ikon $(BINDIR)
