Mercurial > mplayer.hg
changeset 22585:98a00e3b8a65
Reuse common parts of all Makefiles.
author | diego |
---|---|
date | Thu, 15 Mar 2007 09:19:30 +0000 |
parents | a1b0a9880d58 |
children | 93589138bb33 |
files | libdha/Makefile |
diffstat | 1 files changed, 8 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/libdha/Makefile Thu Mar 15 09:14:35 2007 +0000 +++ b/libdha/Makefile Thu Mar 15 09:19:30 2007 +0000 @@ -14,9 +14,7 @@ pci.c \ pci_names.c \ -OBJS_MPLAYER = $(SRCS_MPLAYER:.c=.o) - -CFLAGS = -fPIC -I. -I.. $(OPTFLAGS) +CFLAGS = -fPIC ifeq ($(TARGET_OS),OpenBSD) ifeq ($(TARGET_ARCH_X86),yes) @@ -33,6 +31,8 @@ all: pci_names.c $(LIBNAME) +include ../mpcommon.mak + $(LIBNAME): $(OBJS_MPLAYER) ifeq ($(TARGET_WIN32),yes) $(AR) r $@ $^ @@ -48,14 +48,13 @@ test: pci.o $(CC) test.c -o $@ $^ -clean: - rm -f *.o *.a *~ *.so *.so.* pci_*.c pci_*.h pci.db +clean:: + rm -f *.so *.so.* pci_*.c pci_*.h pci.db -distclean: clean - rm -f .depend test +distclean:: + rm -f test -dep depend: pci_names.c - $(CC) -MM $(CFLAGS) $(SRCS_MPLAYER) 1>.depend +dep depend:: pci_names.c install: -mkdir -p $(LIBDIR) @@ -66,5 +65,3 @@ uninstall: rm -f $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION) $(LIBDIR)/$(LIBNAME).$(VERSION) -$(LDCONFIG) - --include .depend