changeset 21185:0c866f72b921

Make loader Makefile non-recursive.
author diego
date Sat, 25 Nov 2006 00:31:07 +0000
parents 32a571ec877d
children d3b66895640c
files Makefile loader/Makefile loader/dmo/Makefile loader/dshow/Makefile
diffstat 4 files changed, 25 insertions(+), 114 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Nov 25 00:12:08 2006 +0000
+++ b/Makefile	Sat Nov 25 00:31:07 2006 +0000
@@ -107,8 +107,8 @@
 PARTS += libpostproc
 endif
 ifeq ($(WIN32DLL),yes)
-COMMON_LIBS += loader/libloader.a loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a
-PARTS += loader loader/dshow loader/dmo
+COMMON_LIBS += loader/libloader.a
+PARTS += loader
 endif
 ifeq ($(MP3LIB),yes)
 COMMON_LIBS += mp3lib/libMP3.a
@@ -205,12 +205,6 @@
 libmpcodecs/libmpcodecs.a:
 	$(MAKE) -C libmpcodecs
 
-loader/dshow/libDS_Filter.a:
-	$(MAKE) -C loader/dshow
-
-loader/dmo/libDMO_Filter.a:
-	$(MAKE) -C loader/dmo
-
 libavutil/libavutil.a:
 	$(MAKE) -C libavutil LIBPREF=lib LIBSUF=.a
 
@@ -445,9 +439,6 @@
 libfaad2/libfaad2.a: .norecurse $(wildcard libfaad2/*.[ch] libfaad2/*/*.[ch])
 
 loader/libloader.a: .norecurse $(wildcard loader/*.[chSs])
-loader/dmo/libDMO_Filter.a: .norecurse $(wildcard loader/dmo/*.[ch])
-loader/dshow/libDS_Filter.a: .norecurse $(wildcard loader/dshow/*.[ch])
-
 libdha/libdha.so: .norecurse $(wildcard libdha/*.[ch])
 vidix/libvidix.a: .norecurse $(wildcard vidix/*.[ch])
 Gui/libgui.a: .norecurse $(wildcard Gui/*.[ch] Gui/*/*.[ch] Gui/*/*/*.[ch])
--- a/loader/Makefile	Sat Nov 25 00:12:08 2006 +0000
+++ b/loader/Makefile	Sat Nov 25 00:31:07 2006 +0000
@@ -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 @@
        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 @@
 	$(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
--- a/loader/dmo/Makefile	Sat Nov 25 00:12:08 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -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
-
--- a/loader/dshow/Makefile	Sat Nov 25 00:12:08 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -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
-