mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 18:59:44 +00:00
0dc4279b08
Add $(obj) to LIB avoiding objects be built in the source dir Signed-off-by: Jason Jin <Jason.jin@freescale.com>
30 lines
631 B
Makefile
30 lines
631 B
Makefile
include $(TOPDIR)/config.mk
|
|
|
|
LIB := $(obj)libatibiosemu.a
|
|
|
|
X86DIR = ./x86emu
|
|
|
|
OBJS = atibios.o biosemu.o besys.o bios.o \
|
|
$(X86DIR)/decode.o \
|
|
$(X86DIR)/ops2.o \
|
|
$(X86DIR)/ops.o \
|
|
$(X86DIR)/prim_ops.o \
|
|
$(X86DIR)/sys.o \
|
|
$(X86DIR)/debug.o
|
|
|
|
CFLAGS += -I. -I./include -I$(X86DIR) -I$(TOPDIR)/include \
|
|
-D__PPC__ -D__BIG_ENDIAN__
|
|
|
|
all: $(LIB)
|
|
|
|
$(LIB): $(OBJS)
|
|
$(AR) crv $@ $(OBJS)
|
|
|
|
#########################################################################
|
|
|
|
.depend: Makefile $(OBJS:.o=.c)
|
|
$(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@
|
|
|
|
sinclude .depend
|
|
|
|
#########################################################################
|