LIBNAME = libac3.a include config.mak SRCS = bit_allocate.c bitstream.c coeff.c crc.c debug.c decode.c dither.c exponent.c imdct.c parse.c rematrix.c sanity_check.c srfft.c stats.c $(OPTIONAL_SRCS) OBJS = bit_allocate.o bitstream.o coeff.o crc.o debug.o decode.o dither.o exponent.o imdct.o parse.o rematrix.o sanity_check.o srfft.o stats.o $(OPTIONAL_OBJS) CFLAGS = $(OPTFLAGS) -I. -I.. .SUFFIXES: .c .o # .PHONY: all clean .c.o: $(CC) -c $(CFLAGS) $(INCLUDE) -o $@ $< $(LIBNAME): .depend $(OBJS) $(AR) r $(LIBNAME) $(OBJS) all: $(LIBNAME) clean: rm -f *.o *.a *~ downmix/*.o downmix/*~ distclean: rm -f Makefile.bak *.o *.a *~ downmix/*.o downmix/*~ .depend dep: depend depend: .depend .depend: Makefile config.mak ../config.mak ../config.h makedepend -f- -- $(CFLAGS) -- $(SRCS) 1>.depend 2>/dev/null # # include dependency files if they exist # ifneq ($(wildcard .depend),) include .depend endif