#
# Makefile for unarj 2.41 under Linux
# by Arrigo Triulzi ({a.triulzi,agbt}@{imperial,ic}.ac.uk)
#
# Modified by Terry Glass (terry@iamerica.net) to work
# with the Metrowerks compiler for BeOS
CC = cc
CFLAGS = -O2 -ansi on -DUNIX
INSTALLDIR=/boot/beos/bin

unarj: unarj.o decode.o environ.o
	$(CC) $(CFLAGS) -o unarj unarj.o decode.o environ.o

clean:
	rm -f core unarj *.o *.out *~

install:
	cp unarj $(INSTALLDIR)

unarj.o: unarj.c unarj.h Makefile
environ.o:  environ.c unarj.h Makefile
decode.o:   decode.c unarj.h Makefile
