OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ucos-ii/] [2.91/] [config.mk] - Diff between revs 471 and 474

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 471 Rev 474
#########################################################################
#########################################################################
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 -O2 -fomit-frame-pointer
#########################################################################
#########################################################################
#
#
# Include the make variables (CC, etc...)
# Include the make variables (CC, etc...)
#
#
AS      = $(CROSS_COMPILE)as
AS      = $(CROSS_COMPILE)as
LD      = $(CROSS_COMPILE)ld
LD      = $(CROSS_COMPILE)ld
CC      = $(CROSS_COMPILE)gcc
CC      = $(CROSS_COMPILE)gcc
AR      = $(CROSS_COMPILE)ar
AR      = $(CROSS_COMPILE)ar
NM      = $(CROSS_COMPILE)nm
NM      = $(CROSS_COMPILE)nm
STRIP   = $(CROSS_COMPILE)strip
STRIP   = $(CROSS_COMPILE)strip
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 -I$(TOPDIR)/ucos -I$(TOPDIR)/common -Wall -Wstrict-prototypes -Werror-implicit-function-declaration -fomit-frame-pointer -fno-strength-reduce -O2 -g -pipe -fno-builtin -nostdlib
CFLAGS += -I$(TOPDIR)/include -I$(TOPDIR)/ucos -I$(TOPDIR)/common -Wall -Wstrict-prototypes -Werror-implicit-function-declaration -fomit-frame-pointer -fno-strength-reduce -O2 -g -pipe -fno-builtin -nostdlib
ASFLAGS += $(CFLAGS)
ASFLAGS += $(CFLAGS)
 
 
LDFLAGS += -lgcc
LDFLAGS += -lgcc -e 256
 
 
#########################################################################
#########################################################################
export  CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE \
export  CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE \
        AS LD CC AR NM STRIP OBJCOPY OBJDUMP \
        AS LD CC AR NM STRIP OBJCOPY OBJDUMP \
        MAKE CFLAGS ASFLAGS
        MAKE CFLAGS ASFLAGS
#########################################################################
#########################################################################
%.o:    %.S
%.o:    %.S
        $(CC) $(CFLAGS) -c -o $@ $<
        $(CC) $(CFLAGS) -c -o $@ $<
%.o:    %.c
%.o:    %.c
        $(CC) $(CFLAGS) -c -o $@ $<
        $(CC) $(CFLAGS) -c -o $@ $<
%.bin: %.or32
%.bin: %.or32
        or32-elf-objcopy -O binary $< $@
        or32-elf-objcopy -O binary $< $@
%.img: %.bin
%.img: %.bin
        utils/bin2flimg 1 $< > $@
        utils/bin2flimg 1 $< > $@
%.srec: %.bin
%.srec: %.bin
        utils/bin2srec $< > $@
        utils/bin2srec $< > $@
%.hex: %.bin
%.hex: %.bin
        utils/bin2hex $< > $@
        utils/bin2hex $< > $@
#########################################################################
#########################################################################
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.