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

Subversion Repositories or1k

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

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
#########################################################################
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 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
26 809 simons
 
27
#########################################################################
28
 
29
export  CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE \
30
        AS LD CC AR NM STRIP OBJCOPY OBJDUMP \
31 833 simons
        MAKE CFLAGS ASFLAGS
32 809 simons
 
33
#########################################################################
34
 
35
%.o:    %.S
36 833 simons
        $(CC) $(CFLAGS) -c -o $@ $(CURDIR)/$<
37 809 simons
%.o:    %.c
38
        $(CC) $(CFLAGS) -c -o $@ $<
39
 
40
%.bin: %.or32
41
        or32-rtems-objcopy -O binary $< $@
42
 
43
%.img: %.bin
44
        utils/bin2flimg 1 $< > $@
45
 
46
%.srec: %.bin
47
        utils/bin2srec $< > $@
48
 
49
#########################################################################

powered by: WebSVN 2.1.0

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