# $Header: /cvsroot/scummvm/scummvm/Attic/Makefile.noconf,v 1.4.2.2 2004/02/29 07:19:30 kirben Exp $
newlibdir = d:/ps2dev/newlib
ps2libdir = d:/ps2dev/ps2lib
cdvdlibdir = d:/ps2dev/libcdvd

srcdir      ?= .


CXX     := ee-gcc
AR 	:= ee-ar cru
RANLIB  := ee-ranlib
RM      := rm  -f
MKDIR   := mkdir -p
ECHO    := echo -n
CAT     := echo
# recursive version of RM
RM_REC  := $(RM) -r
ZIP     := zip -q
CP      := cp

#######################################################################
# Default compilation parameters. Normally don't edit these           #
#######################################################################

#CXXFLAGS:= -g -O
#DEFINES :=
#LDFLAGS :=
#INCLUDES:= -I. -Icommon
#LIBS	:=
#OBJS	:=

CXXFLAGS:= -mips3 -nostdlib  -fno-exceptions -s
DEFINES := -DPS2_EE -D__PS2__ -D_EE   -DNONSTANDARD_PORT -DCACHED_CHUNK 
LDFLAGS := -nostartfiles -s -T$(ps2libdir)/ee/startup/linkfile $(ps2libdir)/ee/startup/crt0.o 
INCLUDES:= -I. -Icommon -I$(newlibdir)/include  -I$(cdvdlibdir)/ee -I$(ps2libdir)/ee/include -I$(ps2libdir)/common/include -I./mad -I./zlib -I./libmpeg2
LIBS	:= -L$(cdvdlibdir)/lib -lcdvdfs -L$(newlibdir)/lib -lc -lm  -L$(ps2libdir)/ee/lib -lpad -lmc -lkernel -lgcc 
OBJS	:= 


# Turn on useful warnings
CXXFLAGS+= -Wall -pedantic -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion
CXXFLAGS+= -Wshadow -Wstrict-prototypes -Wuninitialized -Wimplicit -Wundef
CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder
CXXFLAGS+= -Wwrite-strings -fcheck-new -Wctor-dtor-privacy -Wnon-virtual-dtor

# Seems GCC 2.95 doesn't support the following, so we do not yet turn them
# on by default (but I'd strongly recommend to all GCC 2.95 users to update
# to a better compiler like GCC 3.x).
# CXXFLAGS+= -ansi -W -Wno-unused-parameter -Woverloaded-virtual -Wdisabled-optimization -Wfloat-equal

# The following causes problems on some systems where the system header
# contain duplicate declarations already. That's really a bug in the 
# system headers, but since it causes lots of warnings on those systems,
# we don't enable it by default
#CXXFLAGS+= -Wredundant-decls

# Load the build rules & settings for the chosen backend
-include build.rules

#######################################################################
# Compile options - you can modify these to tweak ScummVM compilation #
#######################################################################

# Uncomment to enable file cache
DEFINES += -DUSE_FILE_CACHE
USE_FILE_CACHE = 4

# Uncomment this to activate the MPEG2 lib for Broken Sword II cut scenes
DEFINES += -DUSE_MPEG2
LIBS    += -L./libmpeg2 -lmpeg2

# Uncomment this to activate the ZLIB lib for compressed save game files
DEFINES += -DUSE_ZLIB
LIBS    += -L./zlib -lz -lc

# Uncomment this to activate the MAD lib for compressed sound files
DEFINES += -DUSE_MAD
#we don't use mad as library but actually as a module
#USE_MAD = 1
LIBS    += -L./mad -lmad

# Uncomment this to activate the Ogg Vorbis lib for compressed sound files
# DEFINES += -DUSE_VORBIS
# LIBS    += -lvorbisfile -lvorbis

# Uncomment this to activate the ALSA lib for midi
# DEFINES += -DUSE_ALSA
# LIBS    += -lasound

# Uncomment this to cause warnings to be treated as errors
# CXXFLAGS+= -Werror

# Uncomment this to use GCC 3.x specific dependency tracking (recommended)
# HAVE_GCC3 = 1

#######################################################################
# Control which modules are built - uncomment any to disable module   #
#######################################################################
DISABLE SCALERS = 1


# DISABLE_SCUMM = 1
#DISABLE_SIMON = 1
#DISABLE_SKY = 1
#DISABLE_SWORD1 = 1
#DISABLE_SWORD2 = 1
#DISABLE_QUEEN = 1
#DISABLE_KYRA = 1
DISABLE_SAGA = 1


#######################################################################
# Misc stuff - you should normally never have to edit this            #
#######################################################################

EXECUTABLE := scummvm$(EXEEXT)

include Makefile.common

dist:
	$(RM) $(ZIPFILE)
	$(ZIP) $(ZIPFILE) $(DISTFILES)

# Until we add a nice configure tool, default to the SDL build rules
build.rules:
	$(CP) backends/ps2/build.rules build.rules


