1
#/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2
# * Mupen64plus - Makefile *
3
# * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
4
# * Copyright (C) 2007-2008 DarkJeztr Tillin9 Richard42 *
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. *
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. *
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
23
# include pre-make file with a bunch of definitions
26
include ../pre.mk.win32
31
# local CFLAGS, LIBS, and LDFLAGS
32
CFLAGS += $(SDL_FLAGS) -fpic -DPIC -Wall
33
LDFLAGS += $(SDL_LIBS) $(LIBGL_LIBS) $(PLUGIN_LDFLAGS)
41
# list of object files to generate
42
OBJECTS = OGLGraphicsContext.o \
55
TextureFilters_2xsai.o \
56
TextureFilters_hq2x.o \
57
TextureFilters_hq4x.o \
63
OGLFragmentShaders.o \
101
liblinux/infblock.o \
105
liblinux/infcodes.o \
107
liblinux/inftrees.o \
112
gui_gtk2/messagebox_gtk2.o
114
LDFLAGS += $(GTK_LIBS)
115
CFLAGS += -DUSE_GTK $(GTK_FLAGS)
116
OBJECTS += $(GTKOBJECTS)
120
@echo "RiceVideoLinux N64 Video plugin makefile. "
122
@echo " all == Build RiceVideoLinux plugin"
123
@echo " clean == remove object files"
124
@echo " rebuild == clean and re-build all"
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"
131
all: version.h ricevideo.so
133
ricevideo.so: $(OBJECTS)
134
$(LD) $(OBJECTS) $(GTK_LIBS) $(LDFLAGS) -o $@
138
$(RM) -rf ricevideo.so $(OBJECTS)
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
149
$(CXX) -o $*.o $(CFLAGS) -c $<
152
$(CC) -o $*.o $(CFLAGS) -c $<