Mercurial > mplayer.hg
comparison libdha/Makefile @ 22584:a1b0a9880d58
Use versioned names explicitly instead of employed backwards-named variables.
author | diego |
---|---|
date | Thu, 15 Mar 2007 09:14:35 +0000 |
parents | 104d125600b2 |
children | 98a00e3b8a65 |
comparison
equal
deleted
inserted
replaced
22583:104d125600b2 | 22584:a1b0a9880d58 |
---|---|
2 | 2 |
3 MAJOR_VERSION = 1 | 3 MAJOR_VERSION = 1 |
4 MINOR_VERSION = 0 | 4 MINOR_VERSION = 0 |
5 VERSION = $(MAJOR_VERSION).$(MINOR_VERSION) | 5 VERSION = $(MAJOR_VERSION).$(MINOR_VERSION) |
6 | 6 |
7 LIBNAME = libdha.so.$(VERSION) | 7 LIBNAME = libdha.so |
8 SHORTNAME = libdha.so.$(MAJOR_VERSION) | |
9 VSHORTNAME = libdha.so | |
10 ifeq ($(TARGET_WIN32),yes) | 8 ifeq ($(TARGET_WIN32),yes) |
11 LIBNAME = libdha.a | 9 LIBNAME = libdha.a |
12 SHORTNAME = libdha.a | |
13 endif | 10 endif |
14 | 11 |
15 SRCS_MPLAYER = libdha.c \ | 12 SRCS_MPLAYER = libdha.c \ |
16 mtrr.c \ | 13 mtrr.c \ |
17 pci.c \ | 14 pci.c \ |
39 $(LIBNAME): $(OBJS_MPLAYER) | 36 $(LIBNAME): $(OBJS_MPLAYER) |
40 ifeq ($(TARGET_WIN32),yes) | 37 ifeq ($(TARGET_WIN32),yes) |
41 $(AR) r $@ $^ | 38 $(AR) r $@ $^ |
42 else | 39 else |
43 $(CC) -shared -Wl,-soname -Wl,$@ -o $@ $^ $(EXTRALIBS) | 40 $(CC) -shared -Wl,-soname -Wl,$@ -o $@ $^ $(EXTRALIBS) |
44 ln -sf $@ $(SHORTNAME) | 41 ln -sf $@ $@.$(VERSION) |
45 ln -sf $@ $(VSHORTNAME) | 42 ln -sf $@ $@.$(MAJOR_VERSION) |
46 endif | 43 endif |
47 | 44 |
48 pci_names.c: oth/pci.db | 45 pci_names.c: oth/pci.db |
49 LC_ALL=C $(AWK) -f pci_db2c.awk $< | 46 LC_ALL=C $(AWK) -f pci_db2c.awk $< |
50 | 47 |
61 $(CC) -MM $(CFLAGS) $(SRCS_MPLAYER) 1>.depend | 58 $(CC) -MM $(CFLAGS) $(SRCS_MPLAYER) 1>.depend |
62 | 59 |
63 install: | 60 install: |
64 -mkdir -p $(LIBDIR) | 61 -mkdir -p $(LIBDIR) |
65 $(INSTALL) -m 755 $(INSTALLSTRIP) -p $(LIBNAME) $(LIBDIR)/$(LIBNAME) | 62 $(INSTALL) -m 755 $(INSTALLSTRIP) -p $(LIBNAME) $(LIBDIR)/$(LIBNAME) |
66 ln -sf $(LIBNAME) $(LIBDIR)/$(SHORTNAME) | 63 ln -sf $(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION) |
67 -$(LDCONFIG) | 64 -$(LDCONFIG) |
68 | 65 |
69 uninstall: | 66 uninstall: |
70 rm -f $(LIBDIR)/libdha.so $(LIBDIR)/$(SHORTNAME) $(LIBDIR)/$(LIBNAME) | 67 rm -f $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION) $(LIBDIR)/$(LIBNAME).$(VERSION) |
71 -$(LDCONFIG) | 68 -$(LDCONFIG) |
72 | 69 |
73 -include .depend | 70 -include .depend |