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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ucos-ii/] [2.91/] [config.mk] - Blame information for rev 780

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 471 julius
#########################################################################
2
 
3
CONFIG_SHELL    := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
4
                    else if [ -x /bin/bash ]; then echo /bin/bash; \
5
                    else echo sh; fi ; fi)
6
 
7
HOSTCC          = cc
8
HOSTCFLAGS      = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
9
 
10
#########################################################################
11
 
12
#
13
# Include the make variables (CC, etc...)
14
#
15
AS      = $(CROSS_COMPILE)as
16
LD      = $(CROSS_COMPILE)ld
17
CC      = $(CROSS_COMPILE)gcc
18
AR      = $(CROSS_COMPILE)ar
19
NM      = $(CROSS_COMPILE)nm
20
STRIP   = $(CROSS_COMPILE)strip
21
OBJCOPY = $(CROSS_COMPILE)objcopy
22
OBJDUMP = $(CROSS_COMPILE)objdump
23
RANLIB  = $(CROSS_COMPILE)ranlib
24
 
25
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
26
 
27
ASFLAGS += $(CFLAGS)
28
 
29 474 julius
LDFLAGS += -lgcc -e 256
30 471 julius
 
31
#########################################################################
32
 
33
export  CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE \
34
        AS LD CC AR NM STRIP OBJCOPY OBJDUMP \
35
        MAKE CFLAGS ASFLAGS
36
 
37
#########################################################################
38
 
39
%.o:    %.S
40
        $(CC) $(CFLAGS) -c -o $@ $<
41
%.o:    %.c
42
        $(CC) $(CFLAGS) -c -o $@ $<
43
 
44
%.bin: %.or32
45
        or32-elf-objcopy -O binary $< $@
46
 
47
%.img: %.bin
48
        utils/bin2flimg 1 $< > $@
49
 
50
%.srec: %.bin
51
        utils/bin2srec $< > $@
52
 
53
%.hex: %.bin
54
        utils/bin2hex $< > $@
55
 
56
#########################################################################

powered by: WebSVN 2.1.0

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