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