Mercurial > mplayer.hg
comparison libdha/Makefile @ 22837:2e506e1c8d85
Build libdha statically like all the other libraries.
author | diego |
---|---|
date | Sat, 31 Mar 2007 13:37:29 +0000 |
parents | 39cdbfe7d24e |
children | d391740ae689 |
comparison
equal
deleted
inserted
replaced
22836:e547888c4413 | 22837:2e506e1c8d85 |
---|---|
1 include ../config.mak | 1 include ../config.mak |
2 | 2 |
3 MAJOR_VERSION = 1 | 3 LIBNAME_MPLAYER = libdha.a |
4 MINOR_VERSION = 0 | |
5 VERSION = $(MAJOR_VERSION).$(MINOR_VERSION) | |
6 | |
7 LIBNAME = libdha.so | |
8 | 4 |
9 SRCS_MPLAYER = libdha.c \ | 5 SRCS_MPLAYER = libdha.c \ |
10 mtrr.c \ | 6 mtrr.c \ |
11 pci.c \ | 7 pci.c \ |
12 pci_names.c \ | 8 pci_names.c \ |
13 | 9 |
14 CFLAGS = -fPIC | |
15 | |
16 # If you want libdha to use svgalib_helper for hardware access, | 10 # If you want libdha to use svgalib_helper for hardware access, |
17 # uncomment this statement, and change the -I to the correct directory | 11 # uncomment this statement, and change the -I to the correct directory |
18 # that includes svgalib_helper.o: | 12 # that includes svgalib_helper.o: |
19 #CFLAGS += -DDEV_SVGA=\"/dev/svga\" -DCONFIG_SVGAHELPER -Isvgalib_helper/ | 13 #CFLAGS += -DDEV_SVGA=\"/dev/svga\" -DCONFIG_SVGAHELPER -Isvgalib_helper/ |
20 | 14 |
21 all: $(LIBNAME) | 15 libs: pci_names.c |
22 | 16 |
23 dep depend:: pci_names.c | 17 dep depend:: pci_names.c |
24 | 18 |
25 include ../mpcommon.mak | 19 include ../mpcommon.mak |
26 | |
27 $(LIBNAME): $(OBJS_MPLAYER) | |
28 $(CC) -shared -Wl,-soname -Wl,$@ -o $@ $^ $(EXTRALIBS) | |
29 ln -sf $@ $@.$(VERSION) | |
30 ln -sf $@ $@.$(MAJOR_VERSION) | |
31 | 20 |
32 pci_names.c: oth/pci.db | 21 pci_names.c: oth/pci.db |
33 LC_ALL=C $(AWK) -f pci_db2c.awk $< | 22 LC_ALL=C $(AWK) -f pci_db2c.awk $< |
34 | 23 |
35 test: pci.o | 24 test: pci.o |
36 $(CC) test.c -o $@ $^ | 25 $(CC) test.c -o $@ $^ |
37 | 26 |
38 clean:: | 27 clean:: |
39 rm -f *.so *.so.* pci_*.c pci_*.h pci.db | 28 rm -f pci_*.c pci_*.h pci.db |
40 | |
41 install: | |
42 -mkdir -p $(LIBDIR) | |
43 $(INSTALL) -m 755 $(INSTALLSTRIP) -p $(LIBNAME) $(LIBDIR)/$(LIBNAME) | |
44 ln -sf $(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION) | |
45 -$(LDCONFIG) | |
46 | |
47 uninstall: | |
48 rm -f $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION) $(LIBDIR)/$(LIBNAME).$(VERSION) | |
49 -$(LDCONFIG) |