2006-07-12 17:28:14 +00:00
|
|
|
include ../config.mak
|
2001-06-02 23:25:43 +00:00
|
|
|
|
2001-06-04 21:00:47 +00:00
|
|
|
LIBNAME = libao2.a
|
2001-06-02 23:25:43 +00:00
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
SRCS=audio_out.c \
|
|
|
|
ao_mpegpes.c \
|
|
|
|
ao_null.c \
|
|
|
|
ao_pcm.c \
|
2006-07-12 17:28:14 +00:00
|
|
|
$(AO_SRCS) \
|
2001-12-20 15:30:22 +00:00
|
|
|
|
2001-06-02 23:25:43 +00:00
|
|
|
OBJS=$(SRCS:.c=.o)
|
|
|
|
|
2006-08-17 17:19:56 +00:00
|
|
|
CFLAGS = -I. -I.. $(OPTFLAGS)
|
2001-06-02 23:25:43 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
2001-06-04 19:33:28 +00:00
|
|
|
$(LIBNAME): $(OBJS)
|
2001-06-02 23:25:43 +00:00
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
2004-06-24 12:52:17 +00:00
|
|
|
$(RANLIB) $(LIBNAME)
|
2001-06-02 23:25:43 +00:00
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
2006-01-27 00:06:42 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f .depend
|
2001-06-02 23:25:43 +00:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
2001-06-04 19:33:28 +00:00
|
|
|
depend:
|
2001-06-02 23:25:43 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|