2001-03-20 00:05:27 +00:00
|
|
|
|
|
|
|
LIBNAME = libDS_Filter.a
|
|
|
|
|
|
|
|
include ../../config.mak
|
|
|
|
|
2001-11-22 03:16:31 +00:00
|
|
|
# DS_AudioDec.c
|
|
|
|
SRCS = DS_AudioDecoder.c DS_Filter.c DS_VideoDecoder.c allocator.c cmediasample.c guids.c inputpin.c outputpin.c
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
2001-05-24 21:09:13 +00:00
|
|
|
|
|
|
|
# OBJS = DS_AudioDec.o DS_VideoDec.o DS_Filter.o allocator.o cmediasample.o guids.o inputpin.o outputpin.o
|
2001-03-20 00:05:27 +00:00
|
|
|
|
2001-08-16 00:50:02 +00:00
|
|
|
INCLUDE = -I. -I.. $(EXTRA_INC) -DNOAVIFILE_HEADERS
|
2001-11-22 03:16:31 +00:00
|
|
|
CFLAGS = $(OPTFLAGS) $(INCLUDE)
|
2001-03-20 00:05:27 +00:00
|
|
|
|
2001-11-22 03:16:31 +00:00
|
|
|
.SUFFIXES: .c .o
|
2001-03-20 00:05:27 +00:00
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
2001-11-22 03:16:31 +00:00
|
|
|
.c.o:
|
2001-03-20 00:05:27 +00:00
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
2001-06-04 19:33:28 +00:00
|
|
|
$(LIBNAME): $(OBJS)
|
2001-03-20 00:05:27 +00:00
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
|
|
|
|
2001-03-20 01:59:42 +00:00
|
|
|
test: test.c $(LIBNAME)
|
2002-08-29 21:30:57 +00:00
|
|
|
$(CC) test.c $(CFLAGS) -o test ./libDS_Filter.a ../libloader.a $(ARCH_LIBS) -lstdc++
|
2001-03-20 00:05:27 +00:00
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
|
|
|
distclean:
|
|
|
|
rm -f Makefile.bak *.o *.a *~ .depend test test.raw
|
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
2001-06-04 19:33:28 +00:00
|
|
|
depend:
|
2001-05-24 21:09:13 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
2001-03-20 00:05:27 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|
2001-08-16 00:50:02 +00:00
|
|
|
|