From 63419d9cc07c56234d0f61a80f32105b192aec8e Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Thu, 18 Feb 2021 13:31:17 +0800 Subject: Lots of makefile corrections, improved build and toolchain instructions, added elf2cpe converter, fixed typo in plasma_tbl.h of n00bdemo example --- examples/cdrom/cdbrowse/makefile | 4 +--- examples/cdrom/cdxa/makefile | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'examples/cdrom') diff --git a/examples/cdrom/cdbrowse/makefile b/examples/cdrom/cdbrowse/makefile index 61e54ab..ee925d2 100644 --- a/examples/cdrom/cdbrowse/makefile +++ b/examples/cdrom/cdbrowse/makefile @@ -8,8 +8,6 @@ AFILES = $(notdir $(wildcard *.s)) OFILES = $(addprefix build/,$(CFILES:.c=.o) $(CPPFILES:.cpp=.o) $(AFILES:.s=.o)) -PREFIX = mipsel-unknown-elf- - LIBS = -lpsxcd -lpsxgpu -lpsxgte -lpsxspu -lpsxsio -lpsxetc -lpsxapi -lc CFLAGS = -g -O2 -fno-builtin -fdata-sections -ffunction-sections @@ -22,7 +20,7 @@ CPPFLAGS = $(CFLAGS) \ AFLAGS = -g -msoft-float LDFLAGS = -g -Ttext=0x80010000 -gc-sections \ - -T $(GCC_BASE)/mipsel-unknown-elf/lib/ldscripts/elf32elmip.x + -T $(GCC_BASE)/$(PREFIX)/lib/ldscripts/elf32elmip.x all: $(OFILES) $(LD) $(LDFLAGS) $(LIBDIRS) $(OFILES) $(LIBS) -o $(TARGET) diff --git a/examples/cdrom/cdxa/makefile b/examples/cdrom/cdxa/makefile index 8d6d215..b95efa7 100644 --- a/examples/cdrom/cdxa/makefile +++ b/examples/cdrom/cdxa/makefile @@ -8,8 +8,6 @@ AFILES = $(notdir $(wildcard *.s)) OFILES = $(addprefix build/,$(CFILES:.c=.o) $(CPPFILES:.cpp=.o) $(AFILES:.s=.o)) -PREFIX = mipsel-unknown-elf- - LIBS = -lpsxcd -lpsxgpu -lpsxgte -lpsxspu -lpsxsio -lpsxetc -lpsxapi -lc CFLAGS = -g -O2 -fno-builtin -fdata-sections -ffunction-sections @@ -22,7 +20,7 @@ CPPFLAGS = $(CFLAGS) \ AFLAGS = -g -msoft-float LDFLAGS = -g -Ttext=0x80010000 -gc-sections \ - -T $(GCC_BASE)/mipsel-unknown-elf/lib/ldscripts/elf32elmip.x + -T $(GCC_BASE)/$(PREFIX)/lib/ldscripts/elf32elmip.x all: $(OFILES) $(LD) $(LDFLAGS) $(LIBDIRS) $(OFILES) $(LIBS) -o $(TARGET) -- cgit v1.2.3