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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [hello-uart/] [Makefile] - Blame information for rev 1770

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

Line No. Rev Author Line
1 1223 dries
ifndef CROSS_COMPILE
2
CROSS_COMPILE = or32-uclinux-
3
CC = $(CROSS_COMPILE)gcc
4
LD = $(CROSS_COMPILE)ld
5
NM = $(CROSS_COMPILE)nm
6
endif
7
 
8
export  CROSS_COMPILE
9
 
10
all: hello.or32
11
 
12
reset.o: reset.S Makefile
13
        $(CC) -g -c -o $@ $< $(CFLAGS)
14
 
15
hello.o: hello.c Makefile
16
        $(CC) -g -c -o $@ $< $(CFLAGS)
17
 
18
hello.or32: reset.o hello.o Makefile
19
        $(LD) -Tram.ld -o $@ reset.o hello.o $(LIBS)
20
 
21
 
22
System.map: hello.or32
23
        @$(NM) $< | \
24
                grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
25
                sort > System.map
26
 
27
#########################################################################
28
clean:
29
        find . -type f \
30
                \( -name 'core' -o -name '*.bak' -o -name '*~' \
31
                -o -name '*.o'  -o -name '*.a' -o -name '*.tmp' \
32
                -o -name '*.or32' -o -name '*.bin' -o -name '*.srec' \
33
                -o -name '*.mem' -o -name '*.img' -o -name '*.out' \
34
                -o -name '*.aux' -o -name '*.log' \) -print \
35
                | xargs rm -f
36
        rm -f System.map
37
 
38
distclean: clean
39
        find . -type f \
40
                \( -name .depend -o -name '*.srec' -o -name '*.bin' \
41
                -o -name '*.pdf' \) \
42
                -print | xargs rm -f
43
        rm -f $(OBJS) *.bak tags TAGS
44
        rm -fr *.*~
45
 
46
 

powered by: WebSVN 2.1.0

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