diff --git a/backends/dc/Makefile b/backends/dc/Makefile index d8a8f556f1f..0b71d0fb7f2 100644 --- a/backends/dc/Makefile +++ b/backends/dc/Makefile @@ -7,10 +7,10 @@ VPATH = ../.. CXX = sh-elf-g++ -ml -m4-single-only CXXFLAGS= -O4 -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 ronin/crt0.o -INCLUDES:= -I./ -I../.. -I../../common +LDFLAGS := -Wl,-Ttext,0x8c010000 -nostartfiles $(ronindir)/lib/crt0.o +INCLUDES:= -I./ -I../.. -I../../common -I$(ronindir)/include/ CPPFLAGS= $(DEFINES) $(INCLUDES) -LIBS = ronin/libronin.a ronin/libz.a -lm +LIBS = -L$(ronindir)/lib -lronin -lz -lm EXEEXT = .elf MKDIR = mkdir -p ECHO = /usr/ucb/echo -n @@ -27,10 +27,7 @@ include ../../Makefile.common INCS += portdefs.h dc.h LIBS := scumm/libscumm.a common/libcommon.a $(LIBS) -$(OBJS): Makefile ronin - -ronin: - ln -s $(ronindir) $@ +$(OBJS): Makefile %/module.mk : @mkdir -p $*