~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/glut/glx/Makefile.mgw

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2011-08-04 16:25:08 UTC
  • mfrom: (1.2.37 upstream)
  • Revision ID: james.westby@ubuntu.com-20110804162508-kujg82moxerjg1kk
Tags: 7.11-0ubuntu1
* Fake merge from Debian experimental, updating previous changelog entries.
  New upstream release fixes infrequent X crash (LP: #800778).
  Remaining Ubuntu changes:
 - debian/control
    + Drop lesstif-dev from Build-Depends; it's in Universe.
    + Comment out GLw libs since it depends on lesstif-dev.
    + Drop i686 swx11 libgl package.
    + Add libdrm-dev to mesa-common-dev Depends.
    + Drop libwayland-dev from Build-Depends; it's in Universe.
    + Update Breaks for Ubuntu versions
    + Enable llvm on armel as well as i386 and amd64
  - debian/rules
    + Use --disable-glw for swx11 targets too.
    + Don't enable motif for swx11 targets.
    + Use lzma compression for binary debs to save CD space.
    + Drop unloved mach64 driver.
    + Use --enable-shared-dricore to claw back CD space.
    + Enable llvmpipe software rasteriser.
    + Enable llvm on armel as well as i386 and amd64
  - debian/patches
    + 100_no_abi_tag.patch
    + 101_ubuntu_hidden_glname.patch
    + 103_savage-expose_fbmodes_with_nonzero_alpha.patch
  - rules, libgl1-mesa-{glx,dev,swx11,swx11-dev}.install.in,
    libgl1-mesa-{glx,swx11}.{postinst,prerm}.in, libgl1-mesa-dev.links.in:
    Install libGL.so* in /usr/lib/mesa to allow things to work with
    alternatives.
  - debian/not-installed:
    + Drop i686 files; we don't build 686-optimised packages in the first
      place.
  - debian/gbp.conf
    + Point at Ubuntu branch to make git-buildpackage less narky.
  - 113_fix_tls.diff: Fix crashes in unrelated code due to TLS usage.
  - debian/patches/111_export_searchdirs_in_dripc.diff:
    + Add drisearchdirs variable to dri.pc so the Xserver can pick up the
      alternate DRI driver dirs.
  - debian/patches/115_llvm_dynamic_linking.diff
    + Dynamically link DRI drivers to libllvm.  Saves ~6MiB per DRI driver.
  - debian/patches/116_use_shared_galliumcore.diff:
  - debian/libgl1-mesa-dri.install.in:
    + Link gallium DRI drivers against shared gallium routines to save CD
      space.
* debian/rules:
* debian/libgl1-mesa-dri-experimental.install.{i386,amd64}.in
  - Explicitly install i915g only when it has been built, matching what is
    done with r300g.
* debian/rules:
* debian/control:
* debian/libegl1-mesa{,-dev}.install.in:
* debian/libegl1-mesa.symbols:
  - Enable the Wayland EGL backend.
* debian/rules:
* debian/libegl1-mesa.{postinst,prerm,install}.in:
* debian/libegl1-mesa-dev.{install,links}.in:
* debian/libgles{1,2}-mesa.install.in:
* debian/libgles{1,2}-mesa-dev.links.in:
* debian/libopenvg1-mesa{,-dev}.install.in:
* debian/libopenvg1-mesa-dev.links.in:
  - Use alternatives for libEGL to match the handling of libGL.
    libEGL (and associated GL|ES and OpenVG libraries) now live in
    /usr/lib/$MULTIARCH/mesa-egl.  (LP: #812639)
* debian/patches/118_fix_24bpp_software_rendering.diff:
  - Cherry pick upstream patch from master fixing graphical corruption when
    using a 24bpp framebuffer and software rendering. (LP: #810339)
* debian/rules:
* debian/clean:
  - Generate xmlpool pot file and clean up other po files for
    pkgbinarymangler's benefit (LP: #410264).
* debian/patches/119_r600g_gnome_shell_rendering_fix.diff:
  - Cherry pick upstream commit fixing rendering corruption in gnome-shell
    (and therefore likely Unity as well).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Mesa 3-D graphics library
2
 
# Version:  5.1
3
 
4
 
# Copyright (C) 1999-2003  Brian Paul   All Rights Reserved.
5
 
6
 
# Permission is hereby granted, free of charge, to any person obtaining a
7
 
# copy of this software and associated documentation files (the "Software"),
8
 
# to deal in the Software without restriction, including without limitation
9
 
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
 
# and/or sell copies of the Software, and to permit persons to whom the
11
 
# Software is furnished to do so, subject to the following conditions:
12
 
13
 
# The above copyright notice and this permission notice shall be included
14
 
# in all copies or substantial portions of the Software.
15
 
16
 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17
 
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
 
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19
 
# BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20
 
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21
 
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
 
 
23
 
# MinGW core makefile v1.4 for Mesa
24
 
#
25
 
#  Copyright (C) 2002 - Daniel Borca
26
 
#  Email : dborca@users.sourceforge.net
27
 
#  Web   : http://www.geocities.com/dborca
28
 
 
29
 
# MinGW core-glut makefile updated for Mesa 7.0
30
 
#
31
 
#  Updated : by Heromyth, on 2007-7-21
32
 
#  Email   : zxpmyth@yahoo.com.cn
33
 
#  Bugs    : 1) All the default settings work fine. But the setting X86=1 can't work. 
34
 
#            The others havn't been tested yet.
35
 
#            2) The generated DLLs are *not* compatible with the ones built
36
 
#            with the other compilers like VC8, especially for GLUT. 
37
 
#            3) Although more tests are needed, it can be used individually!
38
 
 
39
 
 
40
 
#
41
 
#  Available options:
42
 
#
43
 
#    Environment variables:
44
 
#       CFLAGS
45
 
#
46
 
#       GLIDE           path to Glide3 SDK; used with FX.
47
 
#                       default = $(TOP)/glide3
48
 
#       FX=1            build for 3dfx Glide3. Note that this disables
49
 
#                       compilation of most WMesa code and requires fxMesa.
50
 
#                       As a consequence, you'll need the Win32 Glide3
51
 
#                       library to build any application.
52
 
#                       default = no
53
 
#       ICD=1           build the installable client driver interface
54
 
#                       (windows opengl driver interface)
55
 
#                       default = no
56
 
#       X86=1           optimize for x86 (if possible, use MMX, SSE, 3DNow).
57
 
#                       default = no
58
 
#
59
 
#    Targets:
60
 
#       all:            build GL
61
 
#       clean:          remove object files
62
 
#
63
 
 
64
 
 
65
 
 
66
 
.PHONY: all clean
67
 
.INTERMEDIATE: x86/gen_matypes.exe
68
 
.SUFFIXES: .rc .res
69
 
 
70
 
# Set this to the prefix of your build tools, i.e. mingw32-
71
 
TOOLS_PREFIX = mingw32-
72
 
 
73
 
TOP = ../../..
74
 
 
75
 
LIBDIR = $(TOP)/lib
76
 
 
77
 
LIB_NAME = glut32
78
 
 
79
 
DLL_EXT = .dll
80
 
IMP_EXT = .a
81
 
LIB_PRE = lib
82
 
STRIP = -s
83
 
 
84
 
AR = ar
85
 
ARFLAGS = crus
86
 
DLLTOOL = dlltool
87
 
 
88
 
GLUT_DLL = $(LIB_NAME)$(DLL_EXT)
89
 
GLUT_IMP = $(LIB_PRE)$(LIB_NAME)$(IMP_EXT)
90
 
GLUT_DEF = $(LIB_NAME).def
91
 
 
92
 
LDLIBS = -L$(LIBDIR) -lwinmm -lgdi32 -luser32 -lopengl32 -lglu32 
93
 
LDFLAGS = $(STRIP) -shared -fPIC -Wl,--kill-at
94
 
 
95
 
CFLAGS += -DBUILD_GLUT32 -DGLUT_BUILDING_LIB -DMESA -D_DLL
96
 
CFLAGS += -DNDEBUG -DLIBRARYBUILD -I$(TOP)/include 
97
 
 
98
 
CC = $(TOOLS_PREFIX)gcc
99
 
CXX = $(TOOLS_PREFIX)g++
100
 
CXXFLAGS = $(CFLAGS)
101
 
 
102
 
AR = ar
103
 
ARFLAGS = crus
104
 
 
105
 
UNLINK = del $(subst /,\,$(1))
106
 
ifneq ($(wildcard $(addsuffix /rm.exe,$(subst ;, ,$(PATH)))),)
107
 
UNLINK = $(RM) $(1)
108
 
endif
109
 
ifneq ($(wildcard $(addsuffix /rm,$(subst :, ,$(PATH)))),)
110
 
UNLINK = $(RM) $(1)
111
 
endif
112
 
 
113
 
HDRS = glutint.h glutstroke.h glutbitmap.h glutwin32.h stroke.h win32_glx.h win32_x11.h
114
 
 
115
 
SRCS = \
116
 
        glut_bitmap.c \
117
 
        glut_bwidth.c \
118
 
        glut_cindex.c \
119
 
        glut_cmap.c \
120
 
        glut_cursor.c \
121
 
        glut_dials.c \
122
 
        glut_dstr.c \
123
 
        glut_event.c \
124
 
        glut_ext.c \
125
 
        glut_fcb.c \
126
 
        glut_fullscrn.c \
127
 
        glut_gamemode.c \
128
 
        glut_get.c \
129
 
        glut_init.c \
130
 
        glut_input.c \
131
 
        glut_joy.c \
132
 
        glut_key.c \
133
 
        glut_keyctrl.c \
134
 
        glut_keyup.c \
135
 
        glut_mesa.c \
136
 
        glut_modifier.c \
137
 
        glut_overlay.c \
138
 
        glut_shapes.c \
139
 
        glut_space.c \
140
 
        glut_stroke.c \
141
 
        glut_swap.c \
142
 
        glut_swidth.c \
143
 
        glut_tablet.c \
144
 
        glut_teapot.c \
145
 
        glut_util.c \
146
 
        glut_vidresize.c \
147
 
        glut_warp.c \
148
 
        glut_win.c \
149
 
        glut_winmisc.c \
150
 
        win32_glx.c \
151
 
        win32_menu.c \
152
 
        win32_util.c \
153
 
        win32_winproc.c \
154
 
        win32_x11.c
155
 
        
156
 
 
157
 
SRCSSEMIGENS = \
158
 
        glut_8x13.c \
159
 
        glut_9x15.c \
160
 
        glut_hel10.c \
161
 
        glut_hel12.c \
162
 
        glut_hel18.c \
163
 
        glut_mroman.c \
164
 
        glut_roman.c \
165
 
        glut_tr10.c \
166
 
        glut_tr24.c
167
 
 
168
 
 
169
 
 
170
 
SOURCES = $(SRCS) $(SRCSSEMIGENS)
171
 
 
172
 
OBJECTS = $(addsuffix .o,$(basename $(SOURCES)))
173
 
 
174
 
.c.o:
175
 
        $(CC) -o $@ $(CFLAGS) -c $<
176
 
.cc.o:
177
 
        $(CXX) -o $@ $(CXXFLAGS) -c $<
178
 
 
179
 
 
180
 
all: $(LIBDIR) $(LIBDIR)/$(GLUT_DLL) $(LIBDIR)/$(GLUT_IMP)
181
 
 
182
 
$(LIBDIR):
183
 
        mkdir -p $(LIBDIR)
184
 
 
185
 
$(LIBDIR)/$(GLUT_DLL) $(LIBDIR)/$(GLUT_IMP): $(OBJECTS)
186
 
        $(CXX) $(LDFLAGS) -o $(LIBDIR)/$(GLUT_DLL) $^ $(LDLIBS)
187
 
        $(DLLTOOL) --as=as --dllname $(LIB_NAME) --output-def $(LIBDIR)/$(GLUT_DEF) $^
188
 
        $(DLLTOOL) --as=as -k --dllname $(LIB_NAME) --output-lib $(LIBDIR)/$(GLUT_IMP) --def $(LIBDIR)/$(GLUT_DEF) 
189
 
 
190
 
clean:
191
 
        -$(call UNLINK,*.o)
 
 
b'\\ No newline at end of file'