mirror of https://github.com/mpv-player/mpv
Reuse common parts of all Makefiles.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22603 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5bf5aebe92
commit
99b2bd502c
|
@ -14,9 +14,7 @@ SRCS_MPLAYER = libdha.c \
|
||||||
pci.c \
|
pci.c \
|
||||||
pci_names.c \
|
pci_names.c \
|
||||||
|
|
||||||
OBJS_MPLAYER = $(SRCS_MPLAYER:.c=.o)
|
CFLAGS = -fPIC
|
||||||
|
|
||||||
CFLAGS = -fPIC -I. -I.. $(OPTFLAGS)
|
|
||||||
|
|
||||||
ifeq ($(TARGET_OS),OpenBSD)
|
ifeq ($(TARGET_OS),OpenBSD)
|
||||||
ifeq ($(TARGET_ARCH_X86),yes)
|
ifeq ($(TARGET_ARCH_X86),yes)
|
||||||
|
@ -33,6 +31,8 @@ endif
|
||||||
|
|
||||||
all: pci_names.c $(LIBNAME)
|
all: pci_names.c $(LIBNAME)
|
||||||
|
|
||||||
|
include ../mpcommon.mak
|
||||||
|
|
||||||
$(LIBNAME): $(OBJS_MPLAYER)
|
$(LIBNAME): $(OBJS_MPLAYER)
|
||||||
ifeq ($(TARGET_WIN32),yes)
|
ifeq ($(TARGET_WIN32),yes)
|
||||||
$(AR) r $@ $^
|
$(AR) r $@ $^
|
||||||
|
@ -48,14 +48,13 @@ pci_names.c: oth/pci.db
|
||||||
test: pci.o
|
test: pci.o
|
||||||
$(CC) test.c -o $@ $^
|
$(CC) test.c -o $@ $^
|
||||||
|
|
||||||
clean:
|
clean::
|
||||||
rm -f *.o *.a *~ *.so *.so.* pci_*.c pci_*.h pci.db
|
rm -f *.so *.so.* pci_*.c pci_*.h pci.db
|
||||||
|
|
||||||
distclean: clean
|
distclean::
|
||||||
rm -f .depend test
|
rm -f test
|
||||||
|
|
||||||
dep depend: pci_names.c
|
dep depend:: pci_names.c
|
||||||
$(CC) -MM $(CFLAGS) $(SRCS_MPLAYER) 1>.depend
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
-mkdir -p $(LIBDIR)
|
-mkdir -p $(LIBDIR)
|
||||||
|
@ -66,5 +65,3 @@ install:
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION) $(LIBDIR)/$(LIBNAME).$(VERSION)
|
rm -f $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION) $(LIBDIR)/$(LIBNAME).$(VERSION)
|
||||||
-$(LDCONFIG)
|
-$(LDCONFIG)
|
||||||
|
|
||||||
-include .depend
|
|
||||||
|
|
Loading…
Reference in New Issue