projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drivers/net/fec_mxc.c: write mac address in init
[oweals/u-boot.git]
/
drivers
/
bios_emulator
/
Makefile
diff --git
a/drivers/bios_emulator/Makefile
b/drivers/bios_emulator/Makefile
index ba7d43673f718ed7a440a7c345f797abca7e0675..feba4da758975086a52a1fe2ca317e00f726b80c 100644
(file)
--- a/
drivers/bios_emulator/Makefile
+++ b/
drivers/bios_emulator/Makefile
@@
-1,10
+1,12
@@
include $(TOPDIR)/config.mk
include $(TOPDIR)/config.mk
-LIB := libatibiosemu.a
+LIB :=
$(obj)
libatibiosemu.a
-X86DIR =
./
x86emu
+X86DIR = x86emu
-OBJS = atibios.o biosemu.o besys.o bios.o \
+$(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)/decode.o \
$(X86DIR)/ops2.o \
$(X86DIR)/ops.o \
@@
-12,19
+14,26
@@
OBJS = atibios.o biosemu.o besys.o bios.o \
$(X86DIR)/sys.o \
$(X86DIR)/debug.o
$(X86DIR)/sys.o \
$(X86DIR)/debug.o
-CFLAGS += -I. -I./include -I$(X86DIR) -I$(TOPDIR)/include \
+COBJS := $(COBJS-y)
+SRCS := $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+
+EXTRA_CFLAGS += -I. -I./include -I$(TOPDIR)/include \
-D__PPC__ -D__BIG_ENDIAN__
-D__PPC__ -D__BIG_ENDIAN__
+CFLAGS += $(EXTRA_CFLAGS)
+HOSTCFLAGS += $(EXTRA_CFLAGS)
+CPPFLAGS += $(EXTRA_CFLAGS)
+
all: $(LIB)
all: $(LIB)
-$(LIB): $(OBJS)
- $(AR)
crv
$@ $(OBJS)
+$(LIB): $(
obj).depend $(
OBJS)
+ $(AR)
$(ARFLAGS)
$@ $(OBJS)
#########################################################################
#########################################################################
-.depend: Makefile $(OBJS:.o=.c)
- $(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@
+include $(SRCTREE)/rules.mk
-sinclude .depend
+sinclude
$(obj)
.depend
#########################################################################
#########################################################################