mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-27 06:04:40 +08:00
d02ffbf8d7
make -C drivers/bios_emulator/ make[2]: Entering directory `drivers/bios_emulator' In file included from atibios.c:49: biosemui.h:47:21: error: biosemu.h: No such file or directory ... x86emu/decode.c:40:28: error: x86emu/x86emui.h: No such file or directory ... Due to lack of proper CPPFLAGS being passed to .depend generation rule Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
40 lines
824 B
Makefile
40 lines
824 B
Makefile
include $(TOPDIR)/config.mk
|
|
|
|
LIB := $(obj)libatibiosemu.a
|
|
|
|
X86DIR = x86emu
|
|
|
|
$(shell mkdir -p $(obj)$(X86DIR))
|
|
|
|
COBJS-$(CONFIG_BIOSEMU) = 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
|
|
|
|
COBJS := $(COBJS-y)
|
|
SRCS := $(COBJS:.o=.c)
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
|
|
|
EXTRA_CFLAGS += -I. -I./include -I$(TOPDIR)/include \
|
|
-D__PPC__ -D__BIG_ENDIAN__
|
|
|
|
CFLAGS += $(EXTRA_CFLAGS)
|
|
HOSTCFLAGS += $(EXTRA_CFLAGS)
|
|
CPPFLAGS += $(EXTRA_CFLAGS)
|
|
|
|
all: $(LIB)
|
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
|
|
|
#########################################################################
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
sinclude $(obj).depend
|
|
|
|
#########################################################################
|