scummvm/backends/dc/Makefile
2003-11-03 22:24:58 +00:00

39 lines
1.0 KiB
Makefile

# $Header$
ronindir = /usr/local/ronin
VPATH = ../..
CXX = sh-elf-g++ -ml -m4-single-only
CXXFLAGS= -O1 -Wno-multichar -funroll-loops -fschedule-insns2 -fomit-frame-pointer -fdelete-null-pointer-checks -fno-exceptions
DEFINES = -D__DC__ -DNONSTANDARD_PORT
LDFLAGS := -Wl,-Ttext,0x8c010000 -nostartfiles $(ronindir)/lib/crt0.o
INCLUDES:= -I./ -I../.. -I../../common -I$(ronindir)/include/
CPPFLAGS= $(DEFINES) $(INCLUDES)
LIBS = -L$(ronindir)/lib -lronin -lz -lm
EXEEXT = .elf
EXECUTABLE:= scummvm$(EXEEXT)
MKDIR = mkdir -p
ECHO = /usr/ucb/echo -n
CAT = cat
RM = rm -f
AR = sh-elf-ar cru
RANLIB = sh-elf-ranlib
OBJS := dcmain.o time.o display.o audio.o input.o selector.o icon.o \
label.o vmsave.o backends/fs/posix/posix-fs.o
include ../../Makefile.common
INCS += portdefs.h dc.h
LIBS := scumm/libscumm.a common/libcommon.a $(LIBS)
$(OBJS): Makefile
%/module.mk :
@mkdir -p $*
@test -h common.rules || ln -s ../../common.rules ./
@test ! -f ../../$@ || \
ln -s `echo $* | sed -e 's/[^/][^/]*/../g'`/../../$@ $@