2001-12-09 18:04:17 +00:00
|
|
|
|
|
|
|
LIBNAME = liba52.a
|
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
2006-03-25 10:38:37 +00:00
|
|
|
SRCS = crc.c \
|
|
|
|
resample.c \
|
|
|
|
bit_allocate.c \
|
|
|
|
bitstream.c \
|
|
|
|
downmix.c \
|
|
|
|
imdct.c \
|
|
|
|
parse.c \
|
|
|
|
|
2001-12-09 18:04:17 +00:00
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
|
2006-08-17 17:19:56 +00:00
|
|
|
CFLAGS = -I.. $(OPTFLAGS)
|
2001-12-09 18:04:17 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(LIBNAME): $(OBJS)
|
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
2004-06-24 12:52:17 +00:00
|
|
|
$(RANLIB) $(LIBNAME)
|
2001-12-09 18:04:17 +00:00
|
|
|
|
|
|
|
test: $(LIBNAME) test.c
|
2004-08-07 14:15:55 +00:00
|
|
|
$(CC) $(CFLAGS) test.c ../cpudetect.c -o test ../osdep/libosdep.a ./liba52.a -lm
|
2001-12-09 18:04:17 +00:00
|
|
|
|
|
|
|
test2: $(LIBNAME) test.c
|
2002-08-29 21:30:57 +00:00
|
|
|
$(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm
|
2001-12-09 18:04:17 +00:00
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
2006-01-27 00:06:42 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f .depend test
|
2001-12-09 18:04:17 +00:00
|
|
|
|
2006-11-20 11:18:01 +00:00
|
|
|
dep depend:
|
2001-12-09 18:04:17 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|