URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [branches/] [oc/] [orpmon/] [config.mk] - Blame information for rev 1765
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 |
|
|
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 |
|
|
|
27 |
|
|
#########################################################################
|
28 |
|
|
|
29 |
|
|
export CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE \
|
30 |
|
|
AS LD CC AR NM STRIP OBJCOPY OBJDUMP \
|
31 |
|
|
MAKE CFLAGS AFLAGS
|
32 |
|
|
|
33 |
|
|
#########################################################################
|
34 |
|
|
|
35 |
|
|
%.s: %.S
|
36 |
|
|
$(CPP) $(AFLAGS) -o $@ $(CURDIR)/$<
|
37 |
|
|
%.o: %.S
|
38 |
|
|
$(CC) $(AFLAGS) -c -o $@ $(CURDIR)/$<
|
39 |
|
|
%.o: %.c
|
40 |
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
41 |
|
|
|
42 |
|
|
%.bin: %.or32
|
43 |
|
|
or32-rtems-objcopy -O binary $< $@
|
44 |
|
|
|
45 |
|
|
%.img: %.bin
|
46 |
|
|
utils/bin2flimg 1 $< > $@
|
47 |
|
|
|
48 |
|
|
%.srec: %.bin
|
49 |
|
|
utils/bin2srec $< > $@
|
50 |
|
|
|
51 |
|
|
#########################################################################
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.