3 # Copyright (C) 2010-2011 Hector Martin "marcan" <hector@marcansoft.com>
5 # This code is licensed to you under the terms of the GNU GPL, version 2;
6 # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
8 include ..
/common
/ppu.mak
9 LDFLAGS
+= -Wl
,-T
,stage1.
ld
12 OBJS
= start.o thunks.o usbdev.o
17 $(PREFIX
)objcopy
-O binary
$< $@
19 stage1.elf
: $(OBJS
) stage1.
ld
20 $(PREFIX
)gcc
$(LDFLAGS
) -o
$@
$(OBJS
)
23 $(PREFIX
)gcc
$(CFLAGS
) -c
-o
$@
$<
26 $(PREFIX
)gcc
$(CFLAGS
) -c
-o
$@
$<