Mercurial > mplayer.hg
annotate libdha/Makefile @ 22591:e27b971ccae5
update spliting rule to what i just added to ffmpeg
comments welcome
author | michael |
---|---|
date | Thu, 15 Mar 2007 12:45:04 +0000 |
parents | 98a00e3b8a65 |
children | 7dd092f681a5 |
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 |
12069 | 8 ifeq ($(TARGET_WIN32),yes) |
11238 | 9 LIBNAME = libdha.a |
10 endif | |
3973 | 11 |
22573 | 12 SRCS_MPLAYER = libdha.c \ |
22574 | 13 mtrr.c \ |
14 pci.c \ | |
15 pci_names.c \ | |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
16 |
22585 | 17 CFLAGS = -fPIC |
20304 | 18 |
6057
31e465fda59c
various openbsd and general warning fixes - patch by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
4476
diff
changeset
|
19 ifeq ($(TARGET_OS),OpenBSD) |
6628
10131c2b3987
Small fix for non-X86 OpenBSD by Bj«Órn Sandell <biorn at dce.chalmers.se>
atmos4
parents:
6253
diff
changeset
|
20 ifeq ($(TARGET_ARCH_X86),yes) |
22579
c1d436fe5189
Rename LIBS variable to more standard name EXTRALIBS.
diego
parents:
22578
diff
changeset
|
21 EXTRALIBS += -li386 |
6057
31e465fda59c
various openbsd and general warning fixes - patch by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
4476
diff
changeset
|
22 endif |
6628
10131c2b3987
Small fix for non-X86 OpenBSD by Bj«Órn Sandell <biorn at dce.chalmers.se>
atmos4
parents:
6253
diff
changeset
|
23 endif |
3973 | 24 |
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
|
25 # 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
|
26 # 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
|
27 # that includes svgalib_helper.o: |
9881 | 28 ifneq ($(wildcard svgalib_helper),) |
29 CFLAGS += -DDEV_SVGA=\"/dev/svga\" -DCONFIG_SVGAHELPER -Isvgalib_helper/ | |
30 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
|
31 |
22581 | 32 all: pci_names.c $(LIBNAME) |
3973 | 33 |
22585 | 34 include ../mpcommon.mak |
35 | |
22581 | 36 $(LIBNAME): $(OBJS_MPLAYER) |
37 ifeq ($(TARGET_WIN32),yes) | |
22566 | 38 $(AR) r $@ $^ |
22581 | 39 else |
22579
c1d436fe5189
Rename LIBS variable to more standard name EXTRALIBS.
diego
parents:
22578
diff
changeset
|
40 $(CC) -shared -Wl,-soname -Wl,$@ -o $@ $^ $(EXTRALIBS) |
22584
a1b0a9880d58
Use versioned names explicitly instead of employed backwards-named variables.
diego
parents:
22583
diff
changeset
|
41 ln -sf $@ $@.$(VERSION) |
a1b0a9880d58
Use versioned names explicitly instead of employed backwards-named variables.
diego
parents:
22583
diff
changeset
|
42 ln -sf $@ $@.$(MAJOR_VERSION) |
22581 | 43 endif |
3973 | 44 |
21821 | 45 pci_names.c: oth/pci.db |
46 LC_ALL=C $(AWK) -f pci_db2c.awk $< | |
4106 | 47 |
22578 | 48 test: pci.o |
22566 | 49 $(CC) test.c -o $@ $^ |
3973 | 50 |
22585 | 51 clean:: |
52 rm -f *.so *.so.* pci_*.c pci_*.h pci.db | |
3973 | 53 |
22585 | 54 distclean:: |
55 rm -f test | |
3973 | 56 |
22585 | 57 dep depend:: pci_names.c |
3973 | 58 |
59 install: | |
18083 | 60 -mkdir -p $(LIBDIR) |
22570 | 61 $(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
|
62 ln -sf $(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION) |
21955
c24e237516f6
Move ldconfig platform differences into configure where they belong.
diego
parents:
21850
diff
changeset
|
63 -$(LDCONFIG) |
3973 | 64 |
8461 | 65 uninstall: |
22584
a1b0a9880d58
Use versioned names explicitly instead of employed backwards-named variables.
diego
parents:
22583
diff
changeset
|
66 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
|
67 -$(LDCONFIG) |