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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [orpmon/] [config.mk] - Blame information for rev 872

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

Line No. Rev Author Line
1 809 simons
#########################################################################
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 872 simons
#
11
# Specify the path to the tool chain
12
#
13
TOOL_PREFIX = /projects/or32-uclinux
14
 
15 809 simons
#########################################################################
16
 
17
#
18
# Include the make variables (CC, etc...)
19
#
20
AS      = $(CROSS_COMPILE)as
21
LD      = $(CROSS_COMPILE)ld
22
CC      = $(CROSS_COMPILE)gcc
23
AR      = $(CROSS_COMPILE)ar
24
NM      = $(CROSS_COMPILE)nm
25
STRIP   = $(CROSS_COMPILE)strip
26
OBJCOPY = $(CROSS_COMPILE)objcopy
27
OBJDUMP = $(CROSS_COMPILE)objdump
28
RANLIB  = $(CROSS_COMPILE)ranlib
29
 
30 833 simons
CFLAGS += -I$(TOPDIR)/include -DOR1K -Wall -Wstrict-prototypes -Werror-implicit-function-declaration -fomit-frame-pointer -fno-strength-reduce -O2 -g -pipe -fno-builtin -nostdlib
31 809 simons
 
32 872 simons
LDFLAGS += -L$(TOOL_PREFIX)/lib/gcc-lib/or32-uclinux/3.1/ -lgcc
33
 
34 809 simons
#########################################################################
35
 
36
export  CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE \
37
        AS LD CC AR NM STRIP OBJCOPY OBJDUMP \
38 833 simons
        MAKE CFLAGS ASFLAGS
39 809 simons
 
40
#########################################################################
41
 
42
%.o:    %.S
43 833 simons
        $(CC) $(CFLAGS) -c -o $@ $(CURDIR)/$<
44 809 simons
%.o:    %.c
45
        $(CC) $(CFLAGS) -c -o $@ $<
46
 
47
%.bin: %.or32
48
        or32-rtems-objcopy -O binary $< $@
49
 
50
%.img: %.bin
51
        utils/bin2flimg 1 $< > $@
52
 
53
%.srec: %.bin
54
        utils/bin2srec $< > $@
55
 
56
#########################################################################

powered by: WebSVN 2.1.0

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