Mercurial > mplayer.hg
comparison libdha/Makefile @ 22573:749da6290adc
Use standard variable names for SRCS and OBJS.
author | diego |
---|---|
date | Thu, 15 Mar 2007 00:49:32 +0000 |
parents | a5e0e1210f0f |
children | fc29f62bcb0e |
comparison
equal
deleted
inserted
replaced
22572:a5e0e1210f0f | 22573:749da6290adc |
---|---|
16 SHORTNAME = libdha.a | 16 SHORTNAME = libdha.a |
17 else | 17 else |
18 LIBNAME = libdha.so.$(VERSION) | 18 LIBNAME = libdha.so.$(VERSION) |
19 endif | 19 endif |
20 | 20 |
21 SRCS=libdha.c \ | 21 SRCS_MPLAYER = libdha.c \ |
22 mtrr.c \ | 22 mtrr.c \ |
23 pci.c \ | 23 pci.c \ |
24 pci_names.c \ | 24 pci_names.c \ |
25 | 25 |
26 OBJS=$(SRCS:.c=.o) | 26 OBJS_MPLAYER=$(SRCS_MPLAYER:.c=.o) |
27 | 27 |
28 CFLAGS = -fPIC -I. -I.. $(OPTFLAGS) | 28 CFLAGS = -fPIC -I. -I.. $(OPTFLAGS) |
29 | 29 |
30 ifeq ($(TARGET_OS),OpenBSD) | 30 ifeq ($(TARGET_OS),OpenBSD) |
31 ifeq ($(TARGET_ARCH_X86),yes) | 31 ifeq ($(TARGET_ARCH_X86),yes) |
40 CFLAGS += -DDEV_SVGA=\"/dev/svga\" -DCONFIG_SVGAHELPER -Isvgalib_helper/ | 40 CFLAGS += -DDEV_SVGA=\"/dev/svga\" -DCONFIG_SVGAHELPER -Isvgalib_helper/ |
41 endif | 41 endif |
42 | 42 |
43 all: pci_names.c $(LIBNAME) $(SHORTNAME) | 43 all: pci_names.c $(LIBNAME) $(SHORTNAME) |
44 | 44 |
45 $(LIBNAME): $(OBJS) | 45 $(LIBNAME): $(OBJS_MPLAYER) |
46 ifeq ($(TARGET_WIN32),yes) | 46 ifeq ($(TARGET_WIN32),yes) |
47 $(AR) r $@ $^ | 47 $(AR) r $@ $^ |
48 else | 48 else |
49 $(CC) -shared -Wl,-soname -Wl,$@ -o $@ $^ $(LIBS) | 49 $(CC) -shared -Wl,-soname -Wl,$@ -o $@ $^ $(LIBS) |
50 ln -sf $@ $(SHORTNAME) | 50 ln -sf $@ $(SHORTNAME) |
63 | 63 |
64 distclean: clean | 64 distclean: clean |
65 rm -f .depend test | 65 rm -f .depend test |
66 | 66 |
67 dep depend: pci_names.c | 67 dep depend: pci_names.c |
68 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | 68 $(CC) -MM $(CFLAGS) $(SRCS_MPLAYER) 1>.depend |
69 | 69 |
70 install: | 70 install: |
71 -mkdir -p $(LIBDIR) | 71 -mkdir -p $(LIBDIR) |
72 $(INSTALL) -m 755 $(INSTALLSTRIP) -p $(LIBNAME) $(LIBDIR)/$(LIBNAME) | 72 $(INSTALL) -m 755 $(INSTALLSTRIP) -p $(LIBNAME) $(LIBDIR)/$(LIBNAME) |
73 ln -sf $(LIBNAME) $(LIBDIR)/$(SHORTNAME) | 73 ln -sf $(LIBNAME) $(LIBDIR)/$(SHORTNAME) |