projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm: a320evb: define mach-type in board config file
[oweals/u-boot.git]
/
board
/
inka4x0
/
Makefile
diff --git
a/board/inka4x0/Makefile
b/board/inka4x0/Makefile
index bf832927ceb49c0111950827d7ae34df21ca226c..336a6fefb9de1c226d5044bb3a7baa24cf70b9fd 100644
(file)
--- a/
board/inka4x0/Makefile
+++ b/
board/inka4x0/Makefile
@@
-1,5
+1,5
@@
#
#
-# (C) Copyright 2003-200
4
+# (C) Copyright 2003-200
9
# 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,24
+23,22
@@
include $(TOPDIR)/config.mk
include $(TOPDIR)/config.mk
-LIB =
lib$(BOARD).a
+LIB =
$(obj)lib$(BOARD).o
-
OBJS := $(BOARD).o flash
.o
+
COBJS := $(BOARD).o inkadiag
.o
-$(LIB): $(OBJS) $(SOBJS)
- $(AR) crv $@ $(OBJS)
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS))
-clean:
- rm -f $(SOBJS) $(OBJS)
-
-distclean: clean
- rm -f $(LIB) core *.bak .depend
+$(LIB): $(obj).depend $(OBJS)
+ $(call cmd_link_o_target, $(OBJS))
#########################################################################
#########################################################################
-.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
- $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
-
-include
.depend
+
sinclude $(obj)
.depend
#########################################################################
#########################################################################