diff options
-rw-r--r-- | Makefile.wiz | 172 |
1 files changed, 172 insertions, 0 deletions
diff --git a/Makefile.wiz b/Makefile.wiz new file mode 100644 index 0000000000..b4546d585c --- /dev/null +++ b/Makefile.wiz @@ -0,0 +1,172 @@ +srcdir ?= . + +DEFINES := -DHAVE_CONFIG_H +LDFLAGS := +INCLUDES := -I. -I$(srcdir) -I$(srcdir)/engines +LIBS := +OBJS := +DEPDIR := .deps + +CXX := arm-open2x-linux-g++ +CXXFLAGS := -mcpu=arm926ej-s -mtune=arm926ej-s -I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include -g -mcpu=arm926ej-s -mtune=arm926ej-s -mcpu=arm926ej-s -mtune=arm926ej-s -ansi -W -Wno-unused-parameter -Wconversion -pedantic +LD := arm-open2x-linux-g++ +LIBS += -L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib -lvorbisidec -L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib -lmad -L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib -lz -L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib -Wl,-rpath,/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib -lSDL -lpthread +RANLIB := arm-open2x-linux-ranlib +STRIP := arm-open2x-linux-strip +AR := arm-open2x-linux-ar cru +AS := arm-open2x-linux-as +ASFLAGS := -mfloat-abi=soft +WINDRES := arm-open2x-linux-windres +WINDRESFLAGS := +WIN32PATH=C:/scummvm +AOS4PATH=Games:ScummVM +STATICLIBPATH=/sw + +BACKEND := gp2xwiz +MODULES += backends/platform/gp2xwiz +MODULE_DIRS += +EXEEXT := .wiz +NASM := +NASMFLAGS := + +prefix = /usr/local +exec_prefix = ${prefix} +bindir = ${exec_prefix}/bin +datarootdir = ${prefix}/share +datadir = ${datarootdir}/scummvm +docdir = ${datarootdir}/doc/scummvm +libdir = ${exec_prefix}/lib +mandir = ${datarootdir}/man + + +HAVE_GCC = 1 +USE_ARM_SOUND_ASM = 1 +USE_ARM_SMUSH_ASM = 1 +USE_ARM_GFX_ASM = 1 +USE_ARM_COSTUME_ASM = 1 +USE_ARM_SCALER_ASM = 1 +# VERBOSE_BUILD = 1 +# USE_MT32EMU = 1 +# USE_RGB_COLOR = 1 +USE_SCALERS = 1 +# USE_HQ_SCALERS = 1 +USE_INDEO3 = 1 +# USE_VORBIS = 1 +USE_TREMOR = 1 +# USE_FLAC = 1 +USE_MAD = 1 +USE_ZLIB = 1 +# USE_MPEG2 = 1 +# USE_NASM = 1 +HAVE_GCC3 = 1 +CXX_UPDATE_DEP_FLAG = -MMD -MF "$(*D)/$(DEPDIR)/$(*F).d" -MQ "$@" -MP +ENABLE_SCUMM = STATIC_PLUGIN +ENABLE_SCUMM_7_8 = 1 +ENABLE_HE = 1 +ENABLE_AGI = STATIC_PLUGIN +ENABLE_AGOS = STATIC_PLUGIN +ENABLE_AGOS2 = 1 +ENABLE_CINE = STATIC_PLUGIN +ENABLE_CRUISE = STATIC_PLUGIN +ENABLE_DRACI = STATIC_PLUGIN +ENABLE_DRASCULA = STATIC_PLUGIN +ENABLE_GOB = STATIC_PLUGIN +ENABLE_GROOVIE = STATIC_PLUGIN +ENABLE_GROOVIE2 = 1 +ENABLE_KYRA = STATIC_PLUGIN +ENABLE_LOL = 1 +ENABLE_LURE = STATIC_PLUGIN +#ENABLE_M4 = STATIC_PLUGIN +ENABLE_MADE = STATIC_PLUGIN +ENABLE_MOHAWK = STATIC_PLUGIN +ENABLE_PARALLACTION = STATIC_PLUGIN +ENABLE_QUEEN = STATIC_PLUGIN +ENABLE_SAGA = STATIC_PLUGIN +ENABLE_IHNM = 1 +ENABLE_SAGA2 = 1 +ENABLE_SCI = STATIC_PLUGIN +ENABLE_SCI32 = 1 +ENABLE_SKY = STATIC_PLUGIN +ENABLE_SWORD1 = STATIC_PLUGIN +ENABLE_SWORD2 = STATIC_PLUGIN +ENABLE_TEENAGENT = STATIC_PLUGIN +ENABLE_TINSEL = STATIC_PLUGIN +ENABLE_TOUCHE = STATIC_PLUGIN +ENABLE_TUCKER = STATIC_PLUGIN + +INCLUDES += -I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include -I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include -I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include -I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT +OBJS += +DEFINES += -DNDEBUG -DUNIX -DUNIX -DGP2XWIZ -DNDEBUG -DENABLE_VKEYBD -DDATA_PATH=\"${datarootdir}/scummvm\" -DPLUGIN_DIRECTORY=\"${exec_prefix}/lib/scummvm\" +LDFLAGS += -L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib -lm + + + +port_mk = ports.mk + +SAVED_CONFIGFLAGS := --backend=gp2xwiz --disable-mt32emu --host=gp2xwiz --disable-flac --disable-nasm --disable-hq-scalers --with-sdl-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin --with-mpeg2-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-tremor --with-tremor-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-zlib --with-zlib-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-mad --with-mad-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 --enable-all-engines --enable-vkeybd +SAVED_LDFLAGS := -L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib +SAVED_CXX := arm-open2x-linux-g++ +SAVED_CXXFLAGS := -mcpu=arm926ej-s -mtune=arm926ej-s +SAVED_CPPFLAGS := -I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include +SAVED_ASFLAGS := +SAVED_WINDRESFLAGS := + +ifeq "$(HAVE_GCC)" "1" + CXXFLAGS:= -Wall $(CXXFLAGS) + # Turn off some annoying and not-so-useful warnings + CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder + # Enable even more warnings... + CXXFLAGS+= -Wpointer-arith -Wcast-qual -Wcast-align + CXXFLAGS+= -Wshadow -Wimplicit -Wnon-virtual-dtor -Wwrite-strings + + # Currently we disable this gcc flag, since it will also warn in cases, + # where using GCC_PRINTF (means: __attribute__((format(printf, x, y)))) + # is not possible, thus it would fail compiliation with -Werror without + # being helpful. + #CXXFLAGS+= -Wmissing-format-attribute + + # Disable RTTI and exceptions, and enable checking of pointers returned by "new" + CXXFLAGS+= -fno-rtti -fno-exceptions -fcheck-new +endif + +ifeq "$(HAVE_CLANG)" "1" + CXXFLAGS+= -Wno-conversion -Wno-shorten-64-to-32 -Wno-sign-compare -Wno-four-char-constants +endif + +####################################################################### +# Default commands - put the necessary replacements in config.mk # +####################################################################### + +CAT ?= cat +CP ?= cp +ECHO ?= printf +INSTALL ?= install +MKDIR ?= mkdir -p +RM ?= rm -f +RM_REC ?= $(RM) -r +ZIP ?= zip -q + +####################################################################### +# Misc stuff - you should never have to edit this # +####################################################################### + +EXECUTABLE := scummvm$(EXEEXT) + +include $(srcdir)/Makefile.common + +# check if configure has been run or has been changed since last run +config.h config.mk: $(srcdir)/configure +ifeq "$(findstring config.mk,$(MAKEFILE_LIST))" "config.mk" + @echo "Running $(srcdir)/configure with the last specified parameters" + @sleep 2 + LDFLAGS="$(SAVED_LDFLAGS)" CXX="$(SAVED_CXX)" \ + CXXFLAGS="$(SAVED_CXXFLAGS)" CPPFLAGS="$(SAVED_CPPFLAGS)" \ + ASFLAGS="$(SAVED_ASFLAGS)" WINDRESFLAGS="$(SAVED_WINDRESFLAGS)" \ + $(srcdir)/configure $(SAVED_CONFIGFLAGS) +else + $(error You need to run $(srcdir)/configure before you can run make. Check $(srcdir)/configure --help for a list of parameters) +endif + +ifneq ($(origin port_mk), undefined) +include $(srcdir)/$(port_mk) +endif |