projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sh: Move cpu/$CPU to arch/sh/cpu/$CPU
[oweals/u-boot.git]
/
cpu
/
arm920t
/
at91rm9200
/
Makefile
diff --git
a/cpu/arm920t/at91rm9200/Makefile
b/cpu/arm920t/at91rm9200/Makefile
index aec9cb640935548a30e24da6f828fa0810d5fc03..114d8adeb2fa9f3025516ef3dd2f6df3069740a2 100644
(file)
--- a/
cpu/arm920t/at91rm9200/Makefile
+++ b/
cpu/arm920t/at91rm9200/Makefile
@@
-1,5
+1,5
@@
#
#
-# (C) Copyright 2000-200
5
+# (C) Copyright 2000-200
6
# 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,22
+23,34
@@
include $(TOPDIR)/config.mk
include $(TOPDIR)/config.mk
-LIB = lib$(SOC).a
+LIB =
$(obj)
lib$(SOC).a
-OBJS = bcm5221.o dm9161.o ether.o i2c.o interrupts.o \
- lxt972.o serial.o usb_ohci.o
-SOBJS = lowlevel_init.o
+SOBJS += lowlevel_init.o
-all: .depend $(LIB)
+COBJS += bcm5221.o
+COBJS += dm9161.o
+COBJS += ether.o
+COBJS += i2c.o
+COBJS-$(CONFIG_KS8721_PHY) += ks8721.o
+COBJS += lxt972.o
+COBJS += reset.o
+COBJS += spi.o
+COBJS += timer.o
+COBJS += usb.o
-$(LIB): $(OBJS) $(SOBJS)
- $(AR) crv $@ $(OBJS) $(SOBJS)
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) $(COBJS-y:.o=.c)
+OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS-y))
+
+all: $(obj).depend $(LIB)
+
+$(LIB): $(OBJS)
+ $(AR) $(ARFLAGS) $@ $(OBJS)
#########################################################################
#########################################################################
-.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
#########################################################################
#########################################################################