~ubuntu-branches/ubuntu/natty/mesa/natty-proposed

« back to all changes in this revision

Viewing changes to src/mapi/vgapi/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Robert Hooker, Robert Hooker, Christopher James Halse Rogers
  • Date: 2010-09-14 08:55:40 UTC
  • mfrom: (1.2.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20100914085540-m4fpl0hdjlfd4jgz
Tags: 7.9~git20100909-0ubuntu1
[ Robert Hooker ]
* New upstream git snapshot up to commit 94118fe2d4b1e5 (LP: #631413)
* New features include ATI HD5xxx series support in r600, and a vastly
  improved glsl compiler.
* Remove pre-generated .pc's, use the ones generated at build time
  instead.
* Remove all references to mesa-utils now that its no longer shipped
  with the mesa source.
* Disable the experimental ARB_fragment_shader option by default on
  i915, it exposes incomplete functionality that breaks KDE compositing
  among other things. It can be enabled via driconf still. (LP: #628930).

[ Christopher James Halse Rogers ]
* debian/patches/04_osmesa_version.diff:
  - Refresh for new upstream
* Bugs fixed in this release:
  - Fixes severe rendering corruption in Unity on radeon (LP: #628727,
    LP: #596292, LP: #599741, LP: #630315, LP: #613694, LP: #599741).
  - Also fixes rendering in gnome-shell (LP: #578619).
  - Flickering in OpenGL apps on radeon (LP: #626943, LP: #610541).
  - Provides preliminary support for new intel chips (LP: #601052).
* debian/rules:
  - Update configure flags to match upstream reshuffling.
  - Explicitly remove gallium DRI drivers that we don't want to ship.
* Update debian/gbp.conf for this Maverick-specific packaging
* libegl1-mesa-dri-x11,kms: There are no longer separate kms or x11 drivers
  for EGL, libegl1-mesa-drivers now contains a single driver that provides
  both backends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# src/mapi/vgapi/Makefile
 
2
 
 
3
TOP := ../../..
 
4
include $(TOP)/configs/current
 
5
 
 
6
VG_LIB_MAJOR = 1
 
7
VG_LIB_MINOR = 0
 
8
VG_LIB_PATCH = 0
 
9
 
 
10
MAPI := $(TOP)/src/mapi/mapi
 
11
 
 
12
include $(MAPI)/sources.mak
 
13
VGAPI_SOURCES := $(addprefix $(MAPI)/, $(MAPI_SOURCES))
 
14
VGAPI_OBJECTS := $(MAPI_SOURCES:.c=.o)
 
15
 
 
16
VGAPI_CPPFLAGS := -DMAPI_ABI_HEADER=\"vgapi/vgapi_tmp.h\"
 
17
 
 
18
GENERATED_SOURCES := vgapi_tmp.h
 
19
 
 
20
INCLUDE_DIRS := \
 
21
        -I$(TOP)/include \
 
22
        -I$(TOP)/src/mapi
 
23
 
 
24
.PHONY: default
 
25
default: depend $(TOP)/$(LIB_DIR)/$(VG_LIB_NAME)
 
26
 
 
27
$(TOP)/$(LIB_DIR)/$(VG_LIB_NAME): $(VGAPI_OBJECTS)
 
28
        $(MKLIB) -o $(VG_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
 
29
                -major $(VG_LIB_MAJOR) \
 
30
                -minor $(VG_LIB_MINOR) \
 
31
                -patch $(VG_LIB_PATCH) \
 
32
                -id $(INSTALL_LIB_DIR)/lib$(VG_LIB).$(VG_LIB_MAJOR).dylib \
 
33
                $(MKLIB_OPTIONS) -install $(TOP)/$(LIB_DIR) \
 
34
                $(VGAPI_OBJECTS) $(VG_LIB_DEPS)
 
35
 
 
36
# not used, but kept for completeness
 
37
libvgapi.a: $(VGAPI_OBJECTS)
 
38
        @$(MKLIB) -o vgapi -static $(VGAPI_OBJECTS)
 
39
 
 
40
$(VGAPI_SOURCES): | $(GENERATED_SOURCES)
 
41
 
 
42
$(VGAPI_OBJECTS): %.o: $(MAPI)/%.c
 
43
        $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(VGAPI_CPPFLAGS) $< -o $@
 
44
 
 
45
vgapi_tmp.h: vgapi.csv $(MAPI)/mapi_abi.py
 
46
        $(PYTHON2) $(PYTHON_FLAGS) $(MAPI)/mapi_abi.py \
 
47
                -i vgapi/vgapi_defines.h $< > $@
 
48
 
 
49
.PHONY: clean
 
50
clean:
 
51
        -rm -f vg.pc
 
52
        -rm -f $(TOP)/$(LIB_DIR)/$(VG_LIB_NAME)
 
53
        -rm -f libvgapi.a
 
54
        -rm -f $(VGAPI_OBJECTS)
 
55
        -rm -f depend depend.bak
 
56
        -rm -f $(GENERATED_SOURCES)
 
57
 
 
58
pcedit = \
 
59
        -e 's,@INSTALL_DIR@,$(INSTALL_DIR),' \
 
60
        -e 's,@INSTALL_LIB_DIR@,$(INSTALL_LIB_DIR),' \
 
61
        -e 's,@INSTALL_INC_DIR@,$(INSTALL_INC_DIR),' \
 
62
        -e 's,@VERSION@,$(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY),' \
 
63
        -e 's,@VG_PC_REQ_PRIV@,$(VG_PC_REQ_PRIV),' \
 
64
        -e 's,@VG_PC_LIB_PRIV@,$(VG_PC_LIB_PRIV),' \
 
65
        -e 's,@VG_PC_CFLAGS@,$(VG_PC_CFLAGS),' \
 
66
        -e 's,@VG_LIB@,$(VG_LIB),'
 
67
 
 
68
vg.pc: vg.pc.in
 
69
        @sed $(pcedit) $< > $@
 
70
 
 
71
install-pc: vg.pc
 
72
        $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig
 
73
        $(INSTALL) -m 644 $< $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig
 
74
 
 
75
install-headers:
 
76
        $(INSTALL) -d $(DESTDIR)$(INSTALL_INC_DIR)/VG
 
77
        $(INSTALL) -m 644 $(TOP)/include/VG/*.h $(DESTDIR)$(INSTALL_INC_DIR)/VG
 
78
 
 
79
install: default install-headers install-pc
 
80
        $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)
 
81
        $(MINSTALL) $(TOP)/$(LIB_DIR)/$(VG_LIB_GLOB) \
 
82
                $(DESTDIR)$(INSTALL_LIB_DIR)
 
83
 
 
84
depend: $(VGAPI_SOURCES)
 
85
        @echo "running $(MKDEP)"
 
86
        @touch depend
 
87
        @$(MKDEP) $(MKDEP_OPTIONS) -f- $(DEFINES) $(INCLUDE_DIRS) \
 
88
                $(VGAPI_CPPFLAGS) $(VGAPI_SOURCES) 2>/dev/null | \
 
89
                sed -e 's,^$(MAPI)/,,' > depend