aboutsummaryrefslogtreecommitdiff
path: root/examples/cdrom/cdbrowse/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cdrom/cdbrowse/makefile')
-rw-r--r--examples/cdrom/cdbrowse/makefile4
1 files changed, 1 insertions, 3 deletions
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)