source: trunk/loader/a800/resetcode/Makefile @ 1723

Revision 1723, 718 bytes checked in by reyalp, 2 years ago (diff)

a800 100a port from mland, patch by waterwings in http://chdk.setepontos.com/index.php?topic=650.msg81174#msg81174

  • Property svn:eol-style set to LF
Line 
1topdir=../../../
2
3include $(topdir)makefile.inc
4
5# warning: library order matters!
6LDLIBS=
7LDOPTS=-nostdlib -Wl,--allow-shlib-undefined -Wl,--no-define-common,-EL,-T,$(topdir)tools/link-boot.ld
8LDOPTS+=-Wl,-N,-Ttext,$(RESTARTSTART)
9
10all: main.bin
11
12OBJS=entry.o main.o
13
14main.bin: main.elf
15        @echo $< \-\> $@
16        $(OBJDUMP) -z -d main.elf > main.dump
17        $(OBJCOPY) -O binary main.elf main.bin
18
19main.elf: $(OBJS)
20        @echo \-\> $@
21        $(CC) $(CFLAGS) -o $@ $^   $(LDLIBS) $(LDFLAGS) $(LDOPTS)
22        ( $(NM) $@ | grep ' U ' > $@.syms ) && exit 1 || exit 0
23
24clean:
25        rm -f $(OBJS) main.bin main.elf main.dump main.elf.syms
26
27distclean: distclean-recursive
28        rm -f $(OBJS) main.bin main.elf main.dump main.elf.syms
29
30include $(topdir)bottom.inc
Note: See TracBrowser for help on using the repository browser.