~ubuntu-branches/ubuntu/quantal/mupen64plus/quantal

« back to all changes in this revision

Viewing changes to .pc/system-libpng.patch/rice_video/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Sven Eckelmann, Sven Eckelmann, Piotr Ożarowski
  • Date: 2010-05-06 11:34:46 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100506113446-jfcd6uk7waudel82
Tags: 1.5+dfsg1-10
[ Sven Eckelmann ]
* debian/patches:
  - Add rsp_ucode2_reset.patch, Reset status of specific ucode2 hacks after
    starting again
  - Add rsp_hle_bigendian.patch, Fix wrong high level emulation of rsp on big
    endian systems
  - Add rice-crash-vendorstring.patch, Don't crash on long OpenGL vendor
    string (Closes: #580480, LP: #575968)

[ Piotr Ożarowski ]
* DMUA flag set to yes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
2
# *   Mupen64plus - Makefile                                                *
 
3
# *   Mupen64Plus homepage: http://code.google.com/p/mupen64plus/           *
 
4
# *   Copyright (C) 2007-2008 DarkJeztr Tillin9 Richard42                   *
 
5
# *                                                                         *
 
6
# *   This program is free software; you can redistribute it and/or modify  *
 
7
# *   it under the terms of the GNU General Public License as published by  *
 
8
# *   the Free Software Foundation; either version 2 of the License, or     *
 
9
# *   (at your option) any later version.                                   *
 
10
# *                                                                         *
 
11
# *   This program is distributed in the hope that it will be useful,       *
 
12
# *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
13
# *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
14
# *   GNU General Public License for more details.                          *
 
15
# *                                                                         *
 
16
# *   You should have received a copy of the GNU General Public License     *
 
17
# *   along with this program; if not, write to the                         *
 
18
# *   Free Software Foundation, Inc.,                                       *
 
19
# *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
 
20
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
21
# Makefile for RiceVideoLinux, in Mupen64Plus
 
22
 
 
23
# include pre-make file with a bunch of definitions
 
24
USES_GTK2 = true
 
25
ifeq ($(WIN32),1)
 
26
  include ../pre.mk.win32
 
27
else
 
28
  include ../pre.mk
 
29
endif
 
30
 
 
31
# local CFLAGS, LIBS, and LDFLAGS
 
32
CFLAGS += $(SDL_FLAGS) -fpic -DPIC -Wall
 
33
LDFLAGS += $(SDL_LIBS) $(LIBGL_LIBS) $(PLUGIN_LDFLAGS)
 
34
 
 
35
# set options
 
36
 
 
37
ifeq ($(DBG), 1)
 
38
  CFLAGS += -D_DEBUG
 
39
endif
 
40
 
 
41
# list of object files to generate
 
42
OBJECTS = OGLGraphicsContext.o \
 
43
        Debugger.o \
 
44
        Video.o \
 
45
        Config.o \
 
46
        GraphicsContext.o \
 
47
        TextureFilters.o \
 
48
        DeviceBuilder.o \
 
49
        Render.o \
 
50
        RSP_Parser.o \
 
51
        TextureManager.o \
 
52
        RenderBase.o \
 
53
        FrameBuffer.o \
 
54
        Texture.o \
 
55
        TextureFilters_2xsai.o \
 
56
        TextureFilters_hq2x.o \
 
57
        TextureFilters_hq4x.o \
 
58
        liblinux/bmp.o \
 
59
        liblinux/BMGImage.o \
 
60
        liblinux/pngrw.o \
 
61
        OGLRender.o \
 
62
        OGLTexture.o \
 
63
        OGLFragmentShaders.o \
 
64
        OGLCombinerNV.o \
 
65
        OGLCombinerTNT2.o \
 
66
        OGLExtCombiner.o \
 
67
        OGLCombiner.o \
 
68
        OGLExtRender.o \
 
69
        blender.o \
 
70
        math.o \
 
71
        Combiner.o \
 
72
        RSP_S2DEX.o \
 
73
        RenderExt.o \
 
74
        ConvertImage.o \
 
75
        ConvertImage16.o \
 
76
        DecodedMux.o \
 
77
        RenderTexture.o \
 
78
        liblinux/BMGUtils.o \
 
79
        liblinux/pngread.o \
 
80
        liblinux/png.o \
 
81
        liblinux/pngget.o \
 
82
        liblinux/pngrtran.o \
 
83
        liblinux/pngtrans.o \
 
84
        liblinux/pngwrite.o \
 
85
        liblinux/pngset.o \
 
86
        liblinux/pngmem.o \
 
87
        OGLDecodedMux.o \
 
88
        CNvTNTCombiner.o \
 
89
        GeneralCombiner.o \
 
90
        DirectXDecodedMux.o \
 
91
        liblinux/pngerror.o \
 
92
        liblinux/inflate.o \
 
93
        liblinux/pngrio.o \
 
94
        liblinux/pngrutil.o \
 
95
        liblinux/crc32.o \
 
96
        liblinux/pngwutil.o \
 
97
        liblinux/pngwio.o \
 
98
        liblinux/pngwtran.o \
 
99
        liblinux/deflate.o \
 
100
        CombinerTable.o \
 
101
        liblinux/infblock.o \
 
102
        liblinux/zutil.o \
 
103
        liblinux/adler32.o \
 
104
        liblinux/trees.o \
 
105
        liblinux/infcodes.o \
 
106
        liblinux/infutil.o \
 
107
        liblinux/inftrees.o \
 
108
        liblinux/inffast.o \
 
109
        OGLRenderExt.o
 
110
 
 
111
GTKOBJECTS = \
 
112
        gui_gtk2/messagebox_gtk2.o
 
113
 
 
114
LDFLAGS += $(GTK_LIBS)
 
115
CFLAGS += -DUSE_GTK $(GTK_FLAGS)
 
116
OBJECTS += $(GTKOBJECTS)
 
117
 
 
118
# build targets
 
119
targets:
 
120
        @echo "RiceVideoLinux N64 Video plugin makefile. "
 
121
        @echo "  Targets:"
 
122
        @echo "    all        == Build RiceVideoLinux plugin"
 
123
        @echo "    clean      == remove object files"
 
124
        @echo "    rebuild    == clean and re-build all"
 
125
        @echo "  Options:"
 
126
        @echo "    BITS=32    == build 32-bit binaries on 64-bit machine"
 
127
        @echo "    PROFILE=1  == build gprof instrumentation into binaries for profiling"
 
128
        @echo "    DBG=1      == turn on debugging functions"
 
129
        @echo "    DBGSYM=1   == add debugging symbols to binaries"
 
130
 
 
131
all: version.h ricevideo.so
 
132
 
 
133
ricevideo.so: $(OBJECTS)
 
134
        $(LD) $(OBJECTS) $(LDFLAGS) $(GTK_LIBS) -o $@
 
135
        $(STRIP) $@
 
136
 
 
137
clean:
 
138
        $(RM) -rf ricevideo.so $(OBJECTS)
 
139
 
 
140
rebuild: clean all
 
141
 
 
142
# build rules
 
143
version.h: FORCE
 
144
        @sed 's|@MUPEN_VERSION@|\"$(MUPEN_VERSION)\"| ; s|@PLUGIN_VERSION@|\"$(PLUGIN_VERSION)\"|' \
 
145
        ../main/version.template > version.h
 
146
        @$(MV) version.h ../main/version.h
 
147
 
 
148
.cpp.o:
 
149
        $(CXX) -o $*.o $(CFLAGS) -c $<
 
150
 
 
151
.c.o:
 
152
        $(CC) -o $*.o $(CFLAGS) -c $<
 
153
 
 
154
FORCE:
 
155