summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-25 00:31:07 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-25 00:31:07 +0000
commit58a9204e797cf9061ceac3c8ed49c5185ea2ee6b (patch)
tree80e63fe2b8cc17c429cd8527de46e42fdabf9faa /loader
parentcd18aec18a66890d8a07e0f996eb3e323797744e (diff)
downloadmpv-58a9204e797cf9061ceac3c8ed49c5185ea2ee6b.tar.bz2
mpv-58a9204e797cf9061ceac3c8ed49c5185ea2ee6b.tar.xz
Make loader Makefile non-recursive.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21201 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader')
-rw-r--r--loader/Makefile25
-rw-r--r--loader/dmo/Makefile48
-rw-r--r--loader/dshow/Makefile53
3 files changed, 23 insertions, 103 deletions
diff --git a/loader/Makefile b/loader/Makefile
index 0f8ab351e1..4fe5842529 100644
--- a/loader/Makefile
+++ b/loader/Makefile
@@ -1,6 +1,6 @@
include ../config.mak
-CFLAGS=-I. -I.. -DMPLAYER -D__WINE__ $(OPTFLAGS)
+CFLAGS=-I. -I.. -Idshow -DMPLAYER -D__WINE__ -DNOAVIFILE_HEADERS $(OPTFLAGS)
#CFLAGS+=-Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT
SRCS= driver.c afl.c vfl.c
@@ -9,7 +9,21 @@ SRCS+= ldt_keeper.c pe_image.c module.c ext.c win32.c \
pe_resource.c resource.c registry.c elfdll.c wrapper.S stubs.s
endif
-OBJS = $(SRCS:.c=.o)
+SRCS+= dshow/DS_AudioDecoder.c \
+ dshow/DS_Filter.c \
+ dshow/DS_VideoDecoder.c \
+ dshow/allocator.c \
+ dshow/cmediasample.c \
+ dshow/guids.c \
+ dshow/inputpin.c \
+ dshow/outputpin.c \
+ dmo/DMO_AudioDecoder.c \
+ dmo/DMO_VideoDecoder.c \
+ dmo/buffer.c \
+ dmo/dmo.c \
+ dmo/dmo_guids.c \
+
+OBJS = $(SRCS:.c=.o)
OBJS := $(OBJS:.S=.o)
OBJS := $(OBJS:.s=.o)
@@ -19,11 +33,18 @@ libloader.a: $(OBJS)
$(AR) -r $@ $^
$(RANLIB) $@
+dshow/test: libloader.a
+ $(CC) dshow/test.c $(CFLAGS) -o $@ $^ -lstdc++
+
clean:
rm -f *.o *.a *~
+ rm -f dshow/*.o dshow/*.a dshow/*~
+ rm -f dmo/*.o dmo/*.a dmo/*~
distclean: clean
rm -f .depend
+ rm -f dshow/.depend dshow/test dshow/test.raw
+ rm -f dmo/.depend
dep depend:
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
diff --git a/loader/dmo/Makefile b/loader/dmo/Makefile
deleted file mode 100644
index 4a2528fa24..0000000000
--- a/loader/dmo/Makefile
+++ /dev/null
@@ -1,48 +0,0 @@
-
-LIBNAME = libDMO_Filter.a
-
-include ../../config.mak
-
-# DS_AudioDec.c
-SRCS = DMO_AudioDecoder.c \
- DMO_VideoDecoder.c \
- buffer.c \
- dmo.c \
- dmo_guids.c \
-
-OBJS = $(SRCS:.c=.o)
-
-INCLUDE = -I. -I../dshow -I..
-CFLAGS = $(INCLUDE) $(OPTFLAGS) -DNOAVIFILE_HEADERS
-
-.SUFFIXES: .c .o
-
-# .PHONY: all clean
-
-.c.o:
- $(CC) -c $(CFLAGS) -o $@ $<
-
-$(LIBNAME): $(OBJS)
- $(AR) r $(LIBNAME) $(OBJS)
-
-test: test.c $(LIBNAME)
- $(CC) test.c $(CFLAGS) -o test ./libDMO_Filter.a ../libloader.a -lstdc++
-
-all: $(LIBNAME)
-
-clean:
- rm -f *.o *.a *~
-
-distclean: clean
- rm -f .depend test test.raw
-
-dep depend:
- $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
-
-#
-# include dependency files if they exist
-#
-ifneq ($(wildcard .depend),)
-include .depend
-endif
-
diff --git a/loader/dshow/Makefile b/loader/dshow/Makefile
deleted file mode 100644
index b532e09fc4..0000000000
--- a/loader/dshow/Makefile
+++ /dev/null
@@ -1,53 +0,0 @@
-
-LIBNAME = libDS_Filter.a
-
-include ../../config.mak
-
-# 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)
-
-# OBJS = DS_AudioDec.o DS_VideoDec.o DS_Filter.o allocator.o cmediasample.o guids.o inputpin.o outputpin.o
-
-INCLUDE = -I. -I..
-CFLAGS = $(INCLUDE) $(OPTFLAGS) -DNOAVIFILE_HEADERS
-
-.SUFFIXES: .c .o
-
-# .PHONY: all clean
-
-.c.o:
- $(CC) -c $(CFLAGS) -o $@ $<
-
-$(LIBNAME): $(OBJS)
- $(AR) r $(LIBNAME) $(OBJS)
-
-test: test.c $(LIBNAME)
- $(CC) test.c $(CFLAGS) -o test ./libDS_Filter.a ../libloader.a -lstdc++
-
-all: $(LIBNAME)
-
-clean:
- rm -f *.o *.a *~
-
-distclean: clean
- rm -f .depend test test.raw
-
-dep depend:
- $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
-
-#
-# include dependency files if they exist
-#
-ifneq ($(wildcard .depend),)
-include .depend
-endif
-