# smakefile for xDMS for powerUP (TM)
# 1998 by Andreas R. Kleinert

CC   = SCPPC
OBJS = getbits.o u_medium.o u_quick.o tables.o maketbl.o u_rle.o \
       crc_csum.o u_heavy.o xdms.o pfile.o u_deep.o

xDMS: $(OBJS)

   ppc-amigaos-ld -r lib:c_ppc.o $(OBJS) LIB:scppc.a lib:end.o -o xDMS.elf
   Copy xDMS.elf /

getbits.o: getbits.c cdata.h getbits.h

tables.o: tables.c cdata.h

maketbl.o: maketbl.c cdata.h maketbl.h

crc_csum.o: crc_csum.c cdata.h crc_csum.h

u_rle.o: u_rle.c cdata.h u_rle.h

u_quick.o: u_quick.c cdata.h u_quick.h getbits.h

u_medium.o: u_medium.c cdata.h u_medium.h getbits.h tables.h cdata.h

u_deep.o: u_deep.c cdata.h u_deep.h getbits.h

u_heavy.o: u_heavy.c cdata.h u_heavy.h getbits.h maketbl.h

xdms.o: xdms.c cdata.h pfile.h crc_csum.h

pfile.o: pfile.c cdata.h u_rle.h u_quick.h u_medium.h u_deep.h \
         u_heavy.h crc_csum.h pfile.h
