Mercurial > mplayer.hg
annotate libdha/Makefile @ 22781:c05c25e5f071
Remove unnecessary explicit dependency.
author | diego |
---|---|
date | Sat, 24 Mar 2007 14:22:45 +0000 |
parents | ed0921236a36 |
children | 142a2a3b7218 |
rev | line source |
---|---|
3973 | 1 include ../config.mak |
2 | |
12692
797e602bf1dd
make the awk script working for localized machines too, patch by Onur Kucuk
alex
parents:
12069
diff
changeset
|
3 MAJOR_VERSION = 1 |
797e602bf1dd
make the awk script working for localized machines too, patch by Onur Kucuk
alex
parents:
12069
diff
changeset
|
4 MINOR_VERSION = 0 |
22574 | 5 VERSION = $(MAJOR_VERSION).$(MINOR_VERSION) |
3973 | 6 |
22584
a1b0a9880d58
Use versioned names explicitly instead of employed backwards-named variables.
diego
parents:
22583
diff
changeset
|
7 LIBNAME = libdha.so |
3973 | 8 |
22573 | 9 SRCS_MPLAYER = libdha.c \ |
22574 | 10 mtrr.c \ |
11 pci.c \ | |
12 pci_names.c \ | |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
13 |
22585 | 14 CFLAGS = -fPIC |
20304 | 15 |
8503
9dbb9c710480
svgalib kernelhelper support (based on patch by Matan Ziv-Av <matan@svgalib.org>) and some reordering/cleanup (part #1 ;)
alex
parents:
8461
diff
changeset
|
16 # If you want libdha to use svgalib_helper for hardware access, |
9dbb9c710480
svgalib kernelhelper support (based on patch by Matan Ziv-Av <matan@svgalib.org>) and some reordering/cleanup (part #1 ;)
alex
parents:
8461
diff
changeset
|
17 # uncomment this statement, and change the -I to the correct directory |
9dbb9c710480
svgalib kernelhelper support (based on patch by Matan Ziv-Av <matan@svgalib.org>) and some reordering/cleanup (part #1 ;)
alex
parents:
8461
diff
changeset
|
18 # that includes svgalib_helper.o: |
9881 | 19 ifneq ($(wildcard svgalib_helper),) |
20 CFLAGS += -DDEV_SVGA=\"/dev/svga\" -DCONFIG_SVGAHELPER -Isvgalib_helper/ | |
21 endif | |
8503
9dbb9c710480
svgalib kernelhelper support (based on patch by Matan Ziv-Av <matan@svgalib.org>) and some reordering/cleanup (part #1 ;)
alex
parents:
8461
diff
changeset
|
22 |
22781 | 23 all: $(LIBNAME) |
3973 | 24 |
22585 | 25 include ../mpcommon.mak |
26 | |
22581 | 27 $(LIBNAME): $(OBJS_MPLAYER) |
22579
c1d436fe5189
Rename LIBS variable to more standard name EXTRALIBS.
diego
parents:
22578
diff
changeset
|
28 $(CC) -shared -Wl,-soname -Wl,$@ -o $@ $^ $(EXTRALIBS) |
22584
a1b0a9880d58
Use versioned names explicitly instead of employed backwards-named variables.
diego
parents:
22583
diff
changeset
|
29 ln -sf $@ $@.$(VERSION) |
a1b0a9880d58
Use versioned names explicitly instead of employed backwards-named variables.
diego
parents:
22583
diff
changeset
|
30 ln -sf $@ $@.$(MAJOR_VERSION) |
3973 | 31 |
21821 | 32 pci_names.c: oth/pci.db |
33 LC_ALL=C $(AWK) -f pci_db2c.awk $< | |
4106 | 34 |
22578 | 35 test: pci.o |
22566 | 36 $(CC) test.c -o $@ $^ |
3973 | 37 |
22585 | 38 clean:: |
39 rm -f *.so *.so.* pci_*.c pci_*.h pci.db | |
3973 | 40 |
22585 | 41 distclean:: |
42 rm -f test | |
3973 | 43 |
22585 | 44 dep depend:: pci_names.c |
3973 | 45 |
46 install: | |
18083 | 47 -mkdir -p $(LIBDIR) |
22570 | 48 $(INSTALL) -m 755 $(INSTALLSTRIP) -p $(LIBNAME) $(LIBDIR)/$(LIBNAME) |
22584
a1b0a9880d58
Use versioned names explicitly instead of employed backwards-named variables.
diego
parents:
22583
diff
changeset
|
49 ln -sf $(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION) |
21955
c24e237516f6
Move ldconfig platform differences into configure where they belong.
diego
parents:
21850
diff
changeset
|
50 -$(LDCONFIG) |
3973 | 51 |
8461 | 52 uninstall: |
22584
a1b0a9880d58
Use versioned names explicitly instead of employed backwards-named variables.
diego
parents:
22583
diff
changeset
|
53 rm -f $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION) $(LIBDIR)/$(LIBNAME).$(VERSION) |
21955
c24e237516f6
Move ldconfig platform differences into configure where they belong.
diego
parents:
21850
diff
changeset
|
54 -$(LDCONFIG) |