annotate libdha/Makefile @ 22802:6279120e9465

Fall back on plain awk during the awk test. It should be safe to assume that some sort of awk is installed on the system.
author diego
date Sun, 25 Mar 2007 17:38:50 +0000
parents 39cdbfe7d24e
children 2e506e1c8d85
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 include ../config.mak
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
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
fc29f62bcb0e whitespace cosmetics
diego
parents: 22573
diff changeset
5 VERSION = $(MAJOR_VERSION).$(MINOR_VERSION)
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
6
22584
a1b0a9880d58 Use versioned names explicitly instead of employed backwards-named variables.
diego
parents: 22583
diff changeset
7 LIBNAME = libdha.so
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
8
22573
749da6290adc Use standard variable names for SRCS and OBJS.
diego
parents: 22572
diff changeset
9 SRCS_MPLAYER = libdha.c \
22574
fc29f62bcb0e whitespace cosmetics
diego
parents: 22573
diff changeset
10 mtrr.c \
fc29f62bcb0e whitespace cosmetics
diego
parents: 22573
diff changeset
11 pci.c \
fc29f62bcb0e whitespace cosmetics
diego
parents: 22573
diff changeset
12 pci_names.c \
17943
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17488
diff changeset
13
22585
98a00e3b8a65 Reuse common parts of all Makefiles.
diego
parents: 22584
diff changeset
14 CFLAGS = -fPIC
20304
c9c6db3c2645 Remove stray line.
diego
parents: 19420
diff changeset
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:
22782
142a2a3b7218 Get rid of useless conditional, using svgalib_helper now requires modifying
diego
parents: 22781
diff changeset
19 #CFLAGS += -DDEV_SVGA=\"/dev/svga\" -DCONFIG_SVGAHELPER -Isvgalib_helper/
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
20
22781
c05c25e5f071 Remove unnecessary explicit dependency.
diego
parents: 22780
diff changeset
21 all: $(LIBNAME)
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
22
22791
39cdbfe7d24e Fix make depend: Declare extra dependencies before the rule.
diego
parents: 22784
diff changeset
23 dep depend:: pci_names.c
39cdbfe7d24e Fix make depend: Declare extra dependencies before the rule.
diego
parents: 22784
diff changeset
24
22585
98a00e3b8a65 Reuse common parts of all Makefiles.
diego
parents: 22584
diff changeset
25 include ../mpcommon.mak
98a00e3b8a65 Reuse common parts of all Makefiles.
diego
parents: 22584
diff changeset
26
22581
7b9862d425a6 Revert previous broken commit.
diego
parents: 22580
diff changeset
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
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
31
21821
2a0a1f974172 Fix dependencies for pci_names.c.
diego
parents: 21230
diff changeset
32 pci_names.c: oth/pci.db
2a0a1f974172 Fix dependencies for pci_names.c.
diego
parents: 21230
diff changeset
33 LC_ALL=C $(AWK) -f pci_db2c.awk $<
4106
64c1e79575df Gawk generator
nick
parents: 4030
diff changeset
34
22578
a7af240446d3 Fix test program linkage.
diego
parents: 22576
diff changeset
35 test: pci.o
22566
206456738325 Simplify rules using make shorthands.
diego
parents: 22342
diff changeset
36 $(CC) test.c -o $@ $^
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
37
22585
98a00e3b8a65 Reuse common parts of all Makefiles.
diego
parents: 22584
diff changeset
38 clean::
98a00e3b8a65 Reuse common parts of all Makefiles.
diego
parents: 22584
diff changeset
39 rm -f *.so *.so.* pci_*.c pci_*.h pci.db
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
40
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
41 install:
18083
b069afd2a0de Simplify mkdir calls.
diego
parents: 17964
diff changeset
42 -mkdir -p $(LIBDIR)
22570
3ddc79315de0 Use the install program detected by configure.
diego
parents: 22569
diff changeset
43 $(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
44 ln -sf $(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION)
21955
c24e237516f6 Move ldconfig platform differences into configure where they belong.
diego
parents: 21850
diff changeset
45 -$(LDCONFIG)
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
46
8461
ace211f1ed2b uninstall switch
alex
parents: 7824
diff changeset
47 uninstall:
22584
a1b0a9880d58 Use versioned names explicitly instead of employed backwards-named variables.
diego
parents: 22583
diff changeset
48 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
49 -$(LDCONFIG)