comparison libdha/Makefile @ 22581:7b9862d425a6

Revert previous broken commit.
author diego
date Thu, 15 Mar 2007 09:04:11 +0000
parents b9a351d95340
children ea58da0ae02e
comparison
equal deleted inserted replaced
22580:b9a351d95340 22581:7b9862d425a6
1 include ../config.mak 1 include ../config.mak
2
3 LIBNAME_MPLAYER = lidha.a
4 LIBNAME_MPLAYER_SHARED = lidha.so
5
6 LIBS = $(LIBNAME_MPLAYER_SHARED)
7 2
8 MAJOR_VERSION = 1 3 MAJOR_VERSION = 1
9 MINOR_VERSION = 0 4 MINOR_VERSION = 0
10 VERSION = $(MAJOR_VERSION).$(MINOR_VERSION) 5 VERSION = $(MAJOR_VERSION).$(MINOR_VERSION)
11 6
7 ifeq ($(TARGET_OS),CYGWIN)
8 SHORTNAME = libdha.dll
9 else
12 SHORTNAME = libdha.so.$(MAJOR_VERSION) 10 SHORTNAME = libdha.so.$(MAJOR_VERSION)
13 VSHORTNAME = libdha.so 11 VSHORTNAME = libdha.so
12 endif
14 ifeq ($(TARGET_WIN32),yes) 13 ifeq ($(TARGET_WIN32),yes)
15 LIBNAME = libdha.a 14 LIBNAME = libdha.a
16 SHORTNAME = libdha.a 15 SHORTNAME = libdha.a
17 else 16 else
18 LIBNAME = libdha.so.$(VERSION) 17 LIBNAME = libdha.so.$(VERSION)
38 # that includes svgalib_helper.o: 37 # that includes svgalib_helper.o:
39 ifneq ($(wildcard svgalib_helper),) 38 ifneq ($(wildcard svgalib_helper),)
40 CFLAGS += -DDEV_SVGA=\"/dev/svga\" -DCONFIG_SVGAHELPER -Isvgalib_helper/ 39 CFLAGS += -DDEV_SVGA=\"/dev/svga\" -DCONFIG_SVGAHELPER -Isvgalib_helper/
41 endif 40 endif
42 41
43 all: pci_names.c $(LIBS) 42 all: pci_names.c $(LIBNAME)
44 43
45 $(LIBNAME_MPLAYER): $(OBJS_MPLAYER) 44 $(LIBNAME): $(OBJS_MPLAYER)
45 ifeq ($(TARGET_WIN32),yes)
46 $(AR) r $@ $^ 46 $(AR) r $@ $^
47 47 else
48 $(LIBNAME_MPLAYER_SHARED): $(OBJS_MPLAYER)
49 $(CC) -shared -Wl,-soname -Wl,$@ -o $@ $^ $(EXTRALIBS) 48 $(CC) -shared -Wl,-soname -Wl,$@ -o $@ $^ $(EXTRALIBS)
50 ln -sf $@ $(SHORTNAME) 49 ln -sf $@ $(SHORTNAME)
51 ln -sf $@ $(VSHORTNAME) 50 ln -sf $@ $(VSHORTNAME)
51 endif
52 52
53 pci_names.c: oth/pci.db 53 pci_names.c: oth/pci.db
54 LC_ALL=C $(AWK) -f pci_db2c.awk $< 54 LC_ALL=C $(AWK) -f pci_db2c.awk $<
55 55
56 test: pci.o 56 test: pci.o