fix compilation of hello.elf example payload.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5746 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2010-08-28 23:23:47 +00:00 committed by Stefan Reinauer
parent b3f8090f4e
commit f7b98f5766
1 changed files with 6 additions and 7 deletions

View File

@ -28,10 +28,9 @@
##
# Sample libpayload Makefile.
LIBPAYLOAD_DIR := ..
CC := $(LIBPAYLOAD_DIR)/bin/lpgcc
AS := $(LIBPAYLOAD_DIR)/bin/lpas
LIBPAYLOAD_DIR := ../install/libpayload
XCC := CC=$(CC) $(LIBPAYLOAD_DIR)/bin/lpgcc
XAS := AS=$(AS) $(LIBPAYLOAD_DIR)/bin/lpas
CFLAGS := -Wall -Werror -Os
TARGET := hello
OBJS := $(TARGET).o
@ -39,13 +38,13 @@ OBJS := $(TARGET).o
all: $(TARGET).elf
$(TARGET).elf: $(OBJS)
$(CC) -o $@ $(OBJS)
$(XCC) -o $@ $(OBJS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
$(XCC) $(CFLAGS) -c -o $@ $<
%.S.o: %.S
$(AS) --32 -o $@ $<
$(XAS) --32 -o $@ $<
clean:
rm -f $(TARGET).elf *.o