# Makefile for abekas A62 conversion routines.

#
# DEST is where to install it
# RI is the include directory for RLE files
# RL is the library directory (for librle.a)

DEST	=	../../../bin
RI	=	../../include
RL	=	../../lib

#
LIBES 	=	$(RL)/librle.a -lm
CFLAGS	=	-O $(DFLAGS) $(IFLAGS)
IFLAGS	=	-I. -I$(RI) -I$(CX3DI)

# System V make pays attention to the SHELL environment variable. Override it.
SHELL = /bin/sh

all		:	rletoabA62.out

# Executables.  The .out will be stripped off in the install action.

rletoabA62.out	:	rletoabA62.o rle.o
			cc $(CFLAGS) -o rletoabA62.new \
			  rletoabA62.o rle.o $(LIBES)
			mv rletoabA62.new rletoabA62.out

# Incremental install, copies executable to DEST dir.
install		:	install-pgm
install-pgm	:	rletoabA62.out
			cp rletoabA62.out $(DEST)/rletoabA62
			touch install-pgm

# Clean up installed binaries
pristine	:
			-rm -f $(DEST)/rletoabA62
			-rm -f install-pgm

# Clean up binaries
clean		:
			rm -f *.out core *.o errs m.err

lint		:
			lint $(RI) rletoabA62.c rle.c sig.c

# Keep Alpha1 global make happy.
makefile:
depend:

# Dependencies
rletoabA62.o:	$(RI)/svfb_global.h
rle.o:		$(RI)/svfb_global.h
