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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ucos-ii/] [2.91/] [Makefile] - Blame information for rev 753

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

Line No. Rev Author Line
1 471 julius
ifndef CROSS_COMPILE
2
CROSS_COMPILE = or32-elf-
3
endif
4
 
5
export  CROSS_COMPILE
6
 
7
#########################################################################
8
 
9
TOPDIR  := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
10
export  TOPDIR
11
 
12
include $(TOPDIR)/config.mk
13
 
14
# order is important here:
15
SUBDIRS = drivers common ucos ucos-port tasks
16
 
17
LIBS  = common/common.o drivers/drivers.o ucos/ucos.o ucos-port/ucos-port.o \
18
        tasks/tasks.o
19
 
20
#########################################################################
21
 
22
UCOSAPP = ucos-tasks$(TASKS)
23
 
24
all: $(UCOSAPP).or32 $(UCOSAPP).bin $(UCOSAPP).srec $(UCOSAPP).img
25
 
26
$(UCOSAPP).or32: depend subdirs $(LIBS) Makefile
27
        $(CC) -Tram.ld -o $@ $(LIBS) -nostdlib $(LDFLAGS)
28
 
29
%.map: %.or32
30
        @$(NM) $< | \
31
                grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
32
                sort > $@
33
 
34
#########################################################################
35
 
36
depend dep:
37
        @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
38
 
39
subdirs:
40
        @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done
41
 
42
clean:
43
        find . -type f \
44
                \( -name 'core' -o -name '*.bak' -o -name '*~' \
45
                -o -name '*.o'  -o -name '*.tmp' -o -name '*.hex' \
46
                -o -name '*.or32' -o -name '*.bin' -o -name '*.srec' \
47
                -o -name '*.mem' -o -name '*.img' -o -name '*.out' \
48
                -o -name '*.aux' -o -name '*.log' \) -print \
49
                | xargs rm -f
50
        rm -f System.map
51
 
52
distclean: clean
53
        find . -type f \
54
                \( -name .depend -o -name '*.srec' -o -name '*.bin' \
55
                -o -name '*.pdf' \) \
56
                -print | xargs rm -f
57
        rm -f $(OBJS) *.bak tags TAGS
58
        rm -fr *.*~
59
 
60
#########################################################################

powered by: WebSVN 2.1.0

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