URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [bootloaders/] [orpmon/] [config.mk] - Rev 353
Go to most recent revision | Compare with Previous | Blame | View Log
#########################################################################CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \else if [ -x /bin/bash ]; then echo /bin/bash; \else echo sh; fi ; fi)HOSTCC = ccHOSTCFLAGS = -Wall -Wstrict-prototypes -fno-omit-frame-pointer########################################################################### Include the make variables (CC, etc...)#AS = $(CROSS_COMPILE)asLD = $(CROSS_COMPILE)ldCC = $(CROSS_COMPILE)gccAR = $(CROSS_COMPILE)arNM = $(CROSS_COMPILE)nmSTRIP = $(CROSS_COMPILE)stripOBJCOPY = $(CROSS_COMPILE)objcopyOBJDUMP = $(CROSS_COMPILE)objdumpRANLIB = $(CROSS_COMPILE)ranlibCFLAGS += -I$(TOPDIR)/include -DOR1K -Wall -Wstrict-prototypesCFLAGS += -Werror-implicit-function-declaration#CFLAGS += -fno-omit-frame-pointerCFLAGS += -fno-strength-reduce -O2 -g -pipe -fno-builtin#CFLAGS += -mhard-mul -mhard-div -msoft-floatCFLAGS += -msoft-mul -msoft-div -msoft-floatCFLAGS += -nostdlib#CFLAGS += -DDEBUGLIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)LDFLAGS+= $(LIBGCC)#########################################################################export CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE \AS LD CC AR NM STRIP OBJCOPY OBJDUMP \MAKE CFLAGS ASFLAGS#########################################################################%.o: %.S$(CC) $(CFLAGS) -c -o $@ $(CURDIR)/$<%.o: %.c$(CC) $(CFLAGS) -c -o $@ $<%.bin: %.or32or32-rtems-objcopy -O binary $< $@%.img: %.binutils/bin2flimg 1 $< > $@%.srec: %.binutils/bin2srec $< > $@#########################################################################
Go to most recent revision | Compare with Previous | Blame | View Log
