projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
at91: Defined main clock frequency on esd at91 boards
[oweals/u-boot.git]
/
board
/
pcs440ep
/
Makefile
diff --git
a/board/pcs440ep/Makefile
b/board/pcs440ep/Makefile
index 4a2a3888f5b47a0a711f526c19c5148b0fceab90..40446884c8a32d8c86d8223fef94a82a1fb2468f 100644
(file)
--- a/
board/pcs440ep/Makefile
+++ b/
board/pcs440ep/Makefile
@@
-23,25
+23,29
@@
include $(TOPDIR)/config.mk
include $(TOPDIR)/config.mk
-LIB = lib$(BOARD).a
+LIB =
$(obj)
lib$(BOARD).a
-
OBJS
= $(BOARD).o flash.o
+
COBJS
= $(BOARD).o flash.o
SOBJS = init.o
SOBJS = init.o
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS))
+
$(LIB): $(OBJS) $(SOBJS)
$(LIB): $(OBJS) $(SOBJS)
- $(AR)
crv
$@ $(OBJS)
+ $(AR)
$(ARFLAGS)
$@ $(OBJS)
clean:
rm -f $(SOBJS) $(OBJS)
distclean: clean
clean:
rm -f $(SOBJS) $(OBJS)
distclean: clean
- rm -f $(LIB) core *.bak .depend
+ rm -f $(LIB) core *.bak
$(obj)
.depend
#########################################################################
#########################################################################
-.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
- $(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
-sinclude .depend
+sinclude
$(obj)
.depend
#########################################################################
#########################################################################