summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-01-16 09:22:25 +0100
committerWolfgang Denk <wd@denx.de>2009-01-16 09:22:25 +0100
commit71771e501ca33b25433406ddf1a001996f9410ec (patch)
tree7514c3e754ab9ab6b269dca427f92bc1ae089e4b /cpu
parente62dea46aaf45cc3da0f1fa20d1dab00218f5ed5 (diff)
parentfc83c9273cec6e6e542f4a0ea3b653b7d0513ffa (diff)
downloadu-boot-imx-71771e501ca33b25433406ddf1a001996f9410ec.zip
u-boot-imx-71771e501ca33b25433406ddf1a001996f9410ec.tar.gz
u-boot-imx-71771e501ca33b25433406ddf1a001996f9410ec.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-sh
Diffstat (limited to 'cpu')
-rw-r--r--cpu/sh2/Makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/cpu/sh2/Makefile b/cpu/sh2/Makefile
index e33ba0f..346d328 100644
--- a/cpu/sh2/Makefile
+++ b/cpu/sh2/Makefile
@@ -28,18 +28,23 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(CPU).a
-START = start.o
-OBJS = cpu.o interrupts.o watchdog.o
+SOBJS = start.o
+COBJS = cpu.o interrupts.o watchdog.o
-all: .depend $(START) $(LIB)
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS))
-$(LIB): $(OBJS)
- $(AR) $(ARFLAGS) $@ $(OBJS)
+$(LIB): $(OBJS) $(SOBJS)
+ $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
-#########################################################################
+clean:
+ rm -f $(SOBJS) $(OBJS)
+
+distclean: clean
+ rm -f $(LIB) core *.bak $(obj).depend
-.depend: Makefile $(START:.o=.S) $(OBJS:.o=.c)
- $(CC) -M $(CFLAGS) $(START:.o=.S) $(OBJS:.o=.c) > $@
+#########################################################################
# defines $(obj).depend target
include $(SRCTREE)/rules.mk