source: trunk/platform/a620/sub/100f/Makefile @ 1

Revision 1, 587 bytes checked in by vitalyb, 6 years ago (diff)

Initial import.

RevLine 
[1]1topdir=../../../../
2
3include $(topdir)makefile.inc
4
5all: libplatformsub.a
6
7OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o
8
9libplatformsub.a: $(OBJS)
10
11clean:
12        rm -f *.o *.a
13
14stubs_auto.S: boot.c
15# UNIX shell magick )
16        cat $< | \
17            grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \
18            sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \
19            sort | uniq | \
20            awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \
21                {printf("STUB(%s)\n",$$1)}' > stubs_auto.S
22
23stubs_entry.S:
24        $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S
Note: See TracBrowser for help on using the repository browser.