.SUFFIXES: .c
PROJ	= playza2 recza2 playmp2 conv2bin echodsp readcbits readubits
SOURCES = playza2.c recza2.c playmp2.c testone.c conv2bin.c echodsp.c readcbits.c readubits.c

all: $(PROJ) testone

testone: testone.c
	$(CC) -o $@ $@.c -lm

$(PROJ): $(SOURCES)
	$(CC) -o $@ $@.c

default:
	$(MAKE) all

install: all
	$(INSTALL) -d $(BINDIR)
	$(INSTALL) -s $(PROJ) testone $(BINDIR)

depend:
	@makedepend -Y $(SOURCES) 2> /dev/null

clean:
	-rm -f *.o $(PROJ) core a.out

#depend depends on this line

# DO NOT DELETE

readcbits.o: ../driver/za2specials.h ../driver/cbits.h
readubits.o: ../driver/za2specials.h
