aboutsummaryrefslogtreecommitdiff
path: root/backends/dc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'backends/dc/Makefile')
-rw-r--r--backends/dc/Makefile29
1 files changed, 12 insertions, 17 deletions
diff --git a/backends/dc/Makefile b/backends/dc/Makefile
index 18ba20d6fc..a53f440b42 100644
--- a/backends/dc/Makefile
+++ b/backends/dc/Makefile
@@ -2,38 +2,33 @@
ronindir = /usr/local/ronin
-VPATH = ..
+VPATH = ../..
-CC = sh-elf-g++ -ml -m4-single-only
+CXX = sh-elf-g++ -ml -m4-single-only
CFLAGS = -O1 -Wno-multichar
DEFINES = -D__DC__ -DNONSTANDARD_PORT -DNONSTANDARD_SAVE
LDFLAGS := -Wl,-Ttext,0x8c010000 -nostartfiles ronin/crt0.o
-INCLUDES:= -I./ -I../ -I../sound
+INCLUDES:= -I./ -I../.. -I../../common
CPPFLAGS= $(DEFINES) $(INCLUDES)
LIBS = ronin/libronin.a ronin/libz.a -lm
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 display.o audio.o input.o selector.o icon.o \
label.o vmsave.o
-include ../Makefile.common
+include ../../Makefile.common
INCS += portdefs.h dc.h
-$(OBJS): Makefile sound/.create simon/.create v3/.create v4/.create ronin
-
-sound/.create:
- mkdir sound && touch $@
-
-simon/.create:
- mkdir simon && touch $@
-
-v3/.create:
- mkdir v3 && touch $@
-
-v4/.create:
- mkdir v4 && touch $@
+$(OBJS): Makefile ronin
ronin:
ln -s $(ronindir) $@
+