| 1 |
include @RPLAY_TOP@/Makefile.config |
| 2 |
|
| 3 |
srcdir = @srcdir@ |
| 4 |
VPATH = @srcdir@ |
| 5 |
|
| 6 |
INSTALL = @INSTALL@ |
| 7 |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 8 |
INSTALL_DATA = @INSTALL_DATA@ |
| 9 |
|
| 10 |
CPPFLAGS= $(CC_OPTIONS) -I. -I../include -I@srcdir@ -I@srcdir@/../include -I@srcdir@/../lib @DEFS@ |
| 11 |
|
| 12 |
.c.o: |
| 13 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
| 14 |
|
| 15 |
LDFLAGS= $(LD_OPTIONS) -L. -ladpcm @LDFLAGS@ |
| 16 |
|
| 17 |
TARGET= libadpcm.a |
| 18 |
SRCS= g711.c g721.c g723_24.c g723_40.c g72x.c |
| 19 |
OBJS= g711.o g721.o g723_24.o g723_40.o g72x.o |
| 20 |
|
| 21 |
all: $(TARGET) decode encode |
| 22 |
|
| 23 |
$(TARGET): $(OBJS) |
| 24 |
$(AR) rcv $@ $? |
| 25 |
$(RANLIB) $@ |
| 26 |
|
| 27 |
decode: $(TARGET) decode.o |
| 28 |
$(CC) -o g72xdecode decode.o $(LDFLAGS) |
| 29 |
|
| 30 |
encode: $(TARGET) encode.o |
| 31 |
$(CC) -o g72xencode encode.o $(LDFLAGS) |
| 32 |
|
| 33 |
install: |
| 34 |
|
| 35 |
uninstall: |
| 36 |
|
| 37 |
clean: |
| 38 |
$(RM) $(OBJS) $(TARGET) decode.o g72xdecode encode.o g72xencode a.out core *~ *.bak *.orig TAGS |
| 39 |
|
| 40 |
distclean: clean |
| 41 |
$(RM) Makefile |
| 42 |
|
| 43 |
tags: |
| 44 |
$(TAGS) *.[ch] |
| 45 |
|
| 46 |
TAGS: tags |
| 47 |
|
| 48 |
etags: tags |
| 49 |
|
| 50 |
depend: |
| 51 |
$(MAKEDEPEND) -- $(CPPFLAGS) $(CFLAGS) -- $(SRCS) |
| 52 |
|