OFILES= test.o stdfile.o PatMatch.o VolList.o
CFILES= test.c stdfile.c PatMatch.c VolList.c
TEXT= Makefile readme
OTHERS= $(TEXT) test

.SUFFIXES: .c .o .h

.c.o:
	@delete $*.o
	cc +P -S -B -DAMIGA $*.c

test: $(OFILES)
	@delete test
	ln -o test $(OFILES) -lcl32

stdfile.arc: $(CFILES) $(OTHERS)
	@delete stdfile.arc
	arc a stdfile $(CFILES) $(OTHERS)

stdfile.shar: $(CFILES) $(TEXT)
	@delete stdfile.shar
	shar >stdfile.shar $(CFILES) $(TEXT)

print: $(CFILES) $(TEXT)
	pr $(CFILES) $(TEXT)
