OpenCores
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] - Blame information for rev 314

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

Line No. Rev Author Line
1 2 marcus.erl
#########################################################################
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 246 julius
HOSTCFLAGS      = -Wall -Wstrict-prototypes -fno-omit-frame-pointer
9 2 marcus.erl
 
10
 
11
#########################################################################
12
 
13
#
14
# Include the make variables (CC, etc...)
15
#
16
AS      = $(CROSS_COMPILE)as
17
LD      = $(CROSS_COMPILE)ld
18
CC      = $(CROSS_COMPILE)gcc
19
AR      = $(CROSS_COMPILE)ar
20
NM      = $(CROSS_COMPILE)nm
21
STRIP   = $(CROSS_COMPILE)strip
22
OBJCOPY = $(CROSS_COMPILE)objcopy
23
OBJDUMP = $(CROSS_COMPILE)objdump
24
RANLIB  = $(CROSS_COMPILE)ranlib
25
 
26
CFLAGS += -I$(TOPDIR)/include -DOR1K -Wall -Wstrict-prototypes
27 246 julius
CFLAGS += -Werror-implicit-function-declaration
28
#CFLAGS += -fno-omit-frame-pointer
29 2 marcus.erl
CFLAGS += -fno-strength-reduce -O2 -g -pipe -fno-builtin
30 246 julius
CFLAGS += -mhard-mul -mhard-div -msoft-float -nostdlib
31 2 marcus.erl
CFLAGS += -nostdlib
32 140 julius
#CFLAGS += -DDEBUG
33 2 marcus.erl
 
34 140 julius
 
35 2 marcus.erl
LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
36
LDFLAGS+= $(LIBGCC)
37
 
38
#########################################################################
39
 
40
export  CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE \
41
        AS LD CC AR NM STRIP OBJCOPY OBJDUMP \
42
        MAKE CFLAGS ASFLAGS
43
 
44
#########################################################################
45
 
46
%.o:    %.S
47
        $(CC) $(CFLAGS) -c -o $@ $(CURDIR)/$<
48
%.o:    %.c
49
        $(CC) $(CFLAGS) -c -o $@ $<
50
 
51
%.bin: %.or32
52
        or32-rtems-objcopy -O binary $< $@
53
 
54
%.img: %.bin
55
        utils/bin2flimg 1 $< > $@
56
 
57
%.srec: %.bin
58
        utils/bin2srec $< > $@
59
 
60
#########################################################################

powered by: WebSVN 2.1.0

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