include @RPLAY_TOP@/Makefile.config

srcdir = @srcdir@
VPATH = @srcdir@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

CPPFLAGS=	$(CC_OPTIONS) -I. -I../include -I@srcdir@ -I@srcdir@/../include -I@srcdir@/../lib @DEFS@

.c.o:
		$(CC) -c $(CPPFLAGS) $(CFLAGS) $<

LDFLAGS=	$(LD_OPTIONS) -L. -ladpcm @LDFLAGS@

TARGET=		libadpcm.a
SRCS=		g711.c g721.c g723_24.c g723_40.c g72x.c
OBJS=		g711.o g721.o g723_24.o g723_40.o g72x.o

all:		$(TARGET) decode encode

$(TARGET):	$(OBJS)
		$(AR) rcv $@ $?
		$(RANLIB) $@

decode:		$(TARGET) decode.o
		$(CC) -o g72xdecode decode.o $(LDFLAGS)

encode:		$(TARGET) encode.o
		$(CC) -o g72xencode encode.o $(LDFLAGS)

install:

uninstall:

clean:
		$(RM) $(OBJS) $(TARGET) decode.o g72xdecode encode.o g72xencode a.out core *~ *.bak *.orig TAGS

distclean:	clean
		$(RM) Makefile

tags:
		$(TAGS) *.[ch]

TAGS:		tags

etags:		tags

depend:
		$(MAKEDEPEND) -- $(CPPFLAGS) $(CFLAGS) -- $(SRCS)

