annotate libdha/Makefile @ 8450:8cfc9309f0cc

notice vo driver about skipped/dropped frames patch by Alvaro Lopes <alvieboy@alvie.com>
author arpi
date Sat, 14 Dec 2002 17:12:40 +0000
parents ef5f2f54c231
children ace211f1ed2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
1 # makefile
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
2
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
3 include ../config.mak
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
4
7811
aa0536d98278 change versioning of libdha, patch from Guillem Jover <guillem.jover@menta.net>
eyck
parents: 7073
diff changeset
5 MAJOR_VERSION = 0
aa0536d98278 change versioning of libdha, patch from Guillem Jover <guillem.jover@menta.net>
eyck
parents: 7073
diff changeset
6 MINOR_VERSION = 1
aa0536d98278 change versioning of libdha, patch from Guillem Jover <guillem.jover@menta.net>
eyck
parents: 7073
diff changeset
7 VERSION = $(MAJOR_VERSION).$(MINOR_VERSION)
aa0536d98278 change versioning of libdha, patch from Guillem Jover <guillem.jover@menta.net>
eyck
parents: 7073
diff changeset
8
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
9
4167
36fb2dcd3ccc Fix for cygwin.
atmos4
parents: 4110
diff changeset
10 ifeq ($(TARGET_OS),CYGWIN)
36fb2dcd3ccc Fix for cygwin.
atmos4
parents: 4110
diff changeset
11 SHORTNAME = libdha.dll
36fb2dcd3ccc Fix for cygwin.
atmos4
parents: 4110
diff changeset
12 else
7811
aa0536d98278 change versioning of libdha, patch from Guillem Jover <guillem.jover@menta.net>
eyck
parents: 7073
diff changeset
13 SHORTNAME = libdha.so.$(MAJOR_VERSION)
aa0536d98278 change versioning of libdha, patch from Guillem Jover <guillem.jover@menta.net>
eyck
parents: 7073
diff changeset
14 SONAME_FLAGS = -Wl,-soname,$(SHORTNAME)
7824
ef5f2f54c231 really fix latest fix. But now this versioning stopped making sense to me.
eyck
parents: 7812
diff changeset
15 #SHORTNAME = libdha.so
ef5f2f54c231 really fix latest fix. But now this versioning stopped making sense to me.
eyck
parents: 7812
diff changeset
16 VSHORTNAME = libdha.so
4167
36fb2dcd3ccc Fix for cygwin.
atmos4
parents: 4110
diff changeset
17 endif
7005
40c596e65526 adds a soname and a shared library version number to libdha.
arpi
parents: 6628
diff changeset
18 LIBNAME = libdha.so.$(VERSION)
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
19
4476
0d9a096cfd46 MTRR configuring
nick
parents: 4215
diff changeset
20 SRCS=libdha.c mtrr.c pci.c pci_names.c
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
21 OBJS=$(SRCS:.c=.o)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
22
7073
b69ddd4d3bb9 removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents: 7005
diff changeset
23 CFLAGS = $(OPTFLAGS) -fPIC -I. -I..
6057
31e465fda59c various openbsd and general warning fixes - patch by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents: 4476
diff changeset
24 LIBS =
31e465fda59c various openbsd and general warning fixes - patch by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents: 4476
diff changeset
25 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
26 ifeq ($(TARGET_ARCH_X86),yes)
6057
31e465fda59c various openbsd and general warning fixes - patch by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents: 4476
diff changeset
27 LIBS += -li386
31e465fda59c various openbsd and general warning fixes - patch by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents: 4476
diff changeset
28 endif
6628
10131c2b3987 Small fix for non-X86 OpenBSD by Bj«Órn Sandell <biorn at dce.chalmers.se>
atmos4
parents: 6253
diff changeset
29 endif
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
30
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
31 .SUFFIXES: .c .o
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
32
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
33 # .PHONY: all clean
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
34
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
35 .c.o:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
36 $(CC) -c $(CFLAGS) -o $@ $<
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
37
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
38 $(LIBNAME): $(OBJS)
7812
29a006405a5f fix previous patch.
eyck
parents: 7811
diff changeset
39 #$(CC) -shared $(SONAME_FLAGS) -o $(LIBNAME) $(OBJS) $(LIBS)
29a006405a5f fix previous patch.
eyck
parents: 7811
diff changeset
40 $(CC) -shared -Wl,-soname -Wl,$(LIBNAME) -o $(LIBNAME) $(OBJS) $(LIBS)
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
41 ln -sf $(LIBNAME) $(SHORTNAME)
7824
ef5f2f54c231 really fix latest fix. But now this versioning stopped making sense to me.
eyck
parents: 7812
diff changeset
42 ln -sf $(LIBNAME) $(VSHORTNAME)
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
43
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
44 all: $(LIBNAME) $(SHORTNAME)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
45
4106
64c1e79575df Gawk generator
nick
parents: 4030
diff changeset
46 pci_names.c:
6253
136c061fab12 pci.db is now uncompressed in cvs, sync with mplayerxp
arpi
parents: 6057
diff changeset
47 $(AWK) -f pci_db2c.awk oth/pci.db
4106
64c1e79575df Gawk generator
nick
parents: 4030
diff changeset
48
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
49 test:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
50 $(CC) test.c -o test $(SHORTNAME)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
51
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
52 clean:
7811
aa0536d98278 change versioning of libdha, patch from Guillem Jover <guillem.jover@menta.net>
eyck
parents: 7073
diff changeset
53 rm -f *.o *.so *.so.* *~
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
54
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
55 distclean:
7811
aa0536d98278 change versioning of libdha, patch from Guillem Jover <guillem.jover@menta.net>
eyck
parents: 7073
diff changeset
56 rm -f Makefile.bak *.o *.so *.so.* test *~ .depend
4106
64c1e79575df Gawk generator
nick
parents: 4030
diff changeset
57 rm -f pci_dev_ids.c pci_ids.h pci_names.c pci_names.h pci_vendors.h pci.db
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
58
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
59 dep: depend
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
60
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
61 depend:
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
62 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
63
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
64 install:
4215
14b8bc735bf5 Use 'install' instead of 'cp'
nick
parents: 4172
diff changeset
65 mkdir -p $(prefix)/lib
14b8bc735bf5 Use 'install' instead of 'cp'
nick
parents: 4172
diff changeset
66 install -m 755 -s -p $(LIBNAME) $(prefix)/lib/$(LIBNAME)
4030
922241968c63 Embedding vidix
nick
parents: 3973
diff changeset
67 rm -f $(prefix)/lib/libdha.so
6057
31e465fda59c various openbsd and general warning fixes - patch by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents: 4476
diff changeset
68 ln -sf $(LIBNAME) $(prefix)/lib/$(SHORTNAME)
31e465fda59c various openbsd and general warning fixes - patch by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents: 4476
diff changeset
69 ifeq ($(TARGET_OS),OpenBSD)
31e465fda59c various openbsd and general warning fixes - patch by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents: 4476
diff changeset
70 ldconfig -R
31e465fda59c various openbsd and general warning fixes - patch by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents: 4476
diff changeset
71 else
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
72 ldconfig
6057
31e465fda59c various openbsd and general warning fixes - patch by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents: 4476
diff changeset
73 endif
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
74
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
75 #
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
76 # include dependency files if they exist
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
77 #
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
78 ifneq ($(wildcard .depend),)
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
79 include .depend
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
80 endif