diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-15 09:19:30 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-15 09:19:30 +0000 |
commit | 99b2bd502cf3b6a12a578c9694c9affbcaeae7f5 (patch) | |
tree | eafcd80240d65d18971b316f046c9c71ccf7b4b5 | |
parent | 5bf5aebe9202b6aabe19d334b7657be6961ae91d (diff) |
Reuse common parts of all Makefiles.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22603 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libdha/Makefile | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/libdha/Makefile b/libdha/Makefile index 59ec7e5d38..fce62790fc 100644 --- a/libdha/Makefile +++ b/libdha/Makefile @@ -14,9 +14,7 @@ SRCS_MPLAYER = libdha.c \ 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 @@ endif all: pci_names.c $(LIBNAME) +include ../mpcommon.mak + $(LIBNAME): $(OBJS_MPLAYER) ifeq ($(TARGET_WIN32),yes) $(AR) r $@ $^ @@ -48,14 +48,13 @@ pci_names.c: oth/pci.db 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 @@ install: uninstall: rm -f $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION) $(LIBDIR)/$(LIBNAME).$(VERSION) -$(LDCONFIG) - --include .depend |