Skip to content

Commit 9bf1ac6

Browse files
committed
update to standard SF2000 makefile options
1 parent 20ded20 commit 9bf1ac6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile

+6-3
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,8 @@ else ifeq ($(platform), sf2000)
328328
MIPS:=/opt/mips32-mti-elf/2019.09-03-2/bin/mips-mti-elf-
329329
CC = $(MIPS)gcc
330330
AR = $(MIPS)ar
331-
CFLAGS = -EL -march=mips32 -mtune=mips32 -msoft-float -ffast-math -fomit-frame-pointer
332-
CFLAGS += -G0 -mno-abicalls -fno-pic
333-
CFLAGS += -ffunction-sections -fdata-sections
331+
CFLAGS = -EL -march=mips32 -mtune=mips32 -msoft-float -G0 -mno-abicalls -fno-pic
332+
CFLAGS += -ffast-math -fomit-frame-pointer -ffunction-sections -fdata-sections
334333
CFLAGS += -DSF2000 -DDISABLE_ERROR_LOGGING
335334
STATIC_LINKING = 1
336335

@@ -536,8 +535,12 @@ endif
536535
ifeq ($(DEBUG), 1)
537536
CFLAGS += -O0 -g
538537
else
538+
ifeq ($(platform), sf2000)
539+
CFLAGS += -O3 -DNDEBUG
540+
else
539541
CFLAGS += -O2 -DNDEBUG
540542
endif
543+
endif
541544

542545
# compiler, linker and utilities
543546
RM = rm -f

0 commit comments

Comments
 (0)