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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [bootloaders/] [orpmon/] [config.mk] - Blame information for rev 223

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

powered by: WebSVN 2.1.0

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