Line 3... |
Line 3... |
CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
|
CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
|
else if [ -x /bin/bash ]; then echo /bin/bash; \
|
else if [ -x /bin/bash ]; then echo /bin/bash; \
|
else echo sh; fi ; fi)
|
else echo sh; fi ; fi)
|
|
|
HOSTCC = cc
|
HOSTCC = cc
|
#HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
|
HOSTCFLAGS = -Wall -Wstrict-prototypes -fno-omit-frame-pointer
|
HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fno-omit-frame-pointer -g
|
|
|
|
#
|
|
# Specify the path to the tool chain
|
|
#
|
|
TOOL_PREFIX = /tools/or32-uclinux
|
|
|
|
#########################################################################
|
#########################################################################
|
|
|
#
|
#
|
# Include the make variables (CC, etc...)
|
# Include the make variables (CC, etc...)
|
Line 27... |
Line 22... |
OBJCOPY = $(CROSS_COMPILE)objcopy
|
OBJCOPY = $(CROSS_COMPILE)objcopy
|
OBJDUMP = $(CROSS_COMPILE)objdump
|
OBJDUMP = $(CROSS_COMPILE)objdump
|
RANLIB = $(CROSS_COMPILE)ranlib
|
RANLIB = $(CROSS_COMPILE)ranlib
|
|
|
CFLAGS += -I$(TOPDIR)/include -DOR1K -Wall -Wstrict-prototypes
|
CFLAGS += -I$(TOPDIR)/include -DOR1K -Wall -Wstrict-prototypes
|
CFLAGS += -Werror-implicit-function-declaration -fno-omit-frame-pointer
|
CFLAGS += -Werror-implicit-function-declaration
|
|
#CFLAGS += -fno-omit-frame-pointer
|
CFLAGS += -fno-strength-reduce -O2 -g -pipe -fno-builtin
|
CFLAGS += -fno-strength-reduce -O2 -g -pipe -fno-builtin
|
#CFLAGS += -msoft-mul -msoft-div -nostdlib
|
CFLAGS += -mhard-mul -mhard-div -msoft-float -nostdlib
|
CFLAGS += -nostdlib
|
CFLAGS += -nostdlib
|
#CFLAGS += -DDEBUG
|
#CFLAGS += -DDEBUG
|
|
|
|
|
LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
|
LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
|