projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OMAP3: Print correct silicon revision
[oweals/u-boot.git]
/
cpu
/
i386
/
Makefile
diff --git
a/cpu/i386/Makefile
b/cpu/i386/Makefile
index c44412a025b7884bba2561b9f2cee986eb0f4e11..e98bd3d7dab3ede7d28fcb3c8ea659e0398b961a 100644
(file)
--- a/
cpu/i386/Makefile
+++ b/
cpu/i386/Makefile
@@
-1,4
+1,7
@@
#
#
+# (C) Copyright 2006
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+#
# (C) Copyright 2002
# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
#
# (C) Copyright 2002
# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
#
@@
-23,22
+26,25
@@
include $(TOPDIR)/config.mk
include $(TOPDIR)/config.mk
-LIB = lib$(CPU).a
+LIB = $(obj)lib$(CPU).a
+
+START = start.o start16.o resetvec.o
+COBJS = serial.o interrupts.o exceptions.o cpu.o
-S
TART = start.o start16.o reset.o
-COBJS = serial.o interrupts.o cpu.o timer.o sc520.o
-AOBJS = sc520_asm.o
+S
RCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
+START := $(addprefix $(obj),$(START))
-all: .depend $(START) $(LIB)
+all:
$(obj)
.depend $(START) $(LIB)
-$(LIB): $(
COBJS) $(A
OBJS)
- $(AR)
crv $@ $(COBJS) $(A
OBJS)
+$(LIB): $(OBJS)
+ $(AR)
$(ARFLAGS) $@ $(
OBJS)
#########################################################################
#########################################################################
-.depend: Makefile $(START:.o=.S) $(COBJS:.o=.c) $(AOBJS:.o=.S)
- $(CC) -M $(CFLAGS) $(START:.o=.S) $(COBJS:.o=.c) $(AOBJS:.o=.S) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
-sinclude .depend
+sinclude
$(obj)
.depend
#########################################################################
#########################################################################