projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pantheon: define CONFIG_SYS_CACHELINE_SIZE
[oweals/u-boot.git]
/
post
/
rules.mk
diff --git
a/post/rules.mk
b/post/rules.mk
index 1ad6959003c945d91855bcc862b8ee22a1a0f920..17f8ef76234369f0d7e148bffecf432df09cd3ba 100644
(file)
--- a/
post/rules.mk
+++ b/
post/rules.mk
@@
-1,5
+1,5
@@
#
#
-# (C) Copyright 2002
+# (C) Copyright 2002
-2006
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
@@
-23,20
+23,24
@@
include $(TOPDIR)/config.mk
include $(TOPDIR)/config.mk
-OBJS = $(AOBJS) $(COBJS)
+COBJS := $(COBJS-y)
+AOBJS := $(AOBJS-y)
+SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS))
+LIB := $(obj)$(LIB)
CPPFLAGS += -I$(TOPDIR)
all: $(LIB)
CPPFLAGS += -I$(TOPDIR)
all: $(LIB)
-$(LIB): .depend $(OBJS)
- $(
AR) crv $@ $(OBJS
)
+$(LIB):
$(obj)
.depend $(OBJS)
+ $(
call cmd_link_o_target, $(OBJS)
)
#########################################################################
#########################################################################
-.depend: Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c)
- $(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > .depend
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
-sinclude .depend
+sinclude
$(obj)
.depend
#########################################################################
#########################################################################