summaryrefslogtreecommitdiff
path: root/board/mpc7448hpc2/Makefile
diff options
context:
space:
mode:
authorroy zang <tie-fei.zang@freescale.com>2006-12-01 11:47:36 +0800
committerZang Tiefei <roy@bus.ap.freescale.net>2006-12-01 11:47:36 +0800
commitee311214e0d216f904feea269599d0934bf71f23 (patch)
tree8f942227d016d8cc52a12f4b66a02e4b1e7ed19b /board/mpc7448hpc2/Makefile
parent6bd87c0aeea441c49d59fd542b84a9be88d08b17 (diff)
downloadu-boot-imx-ee311214e0d216f904feea269599d0934bf71f23.zip
u-boot-imx-ee311214e0d216f904feea269599d0934bf71f23.tar.gz
u-boot-imx-ee311214e0d216f904feea269599d0934bf71f23.tar.bz2
Clean up the code according to codestyle:
(1) remove some C++ comments. (2) remove trailing white space. (3) remove trailing empty line. (4) Indentation by table. (5) remove {} in one line condition. (6) add space before '(' in function call. Remove some weird printf () output. Add necessary comments. Modified Makefile to support building in a separate directory.
Diffstat (limited to 'board/mpc7448hpc2/Makefile')
-rw-r--r--board/mpc7448hpc2/Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/board/mpc7448hpc2/Makefile b/board/mpc7448hpc2/Makefile
index d5ed01f..e3d757d 100644
--- a/board/mpc7448hpc2/Makefile
+++ b/board/mpc7448hpc2/Makefile
@@ -23,26 +23,30 @@
include $(TOPDIR)/config.mk
-LIB = lib$(BOARD).a
+LIB = $(obj)lib$(BOARD).a
-OBJS = $(BOARD).o tsi108_init.o
+COBJS := $(BOARD).o tsi108_init.o
+SOBJS := asm_init.o
-SOBJS = asm_init.o
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS))
-$(LIB): .depend $(OBJS) $(SOBJS)
- $(AR) crv $@ $(OBJS) $(SOBJS)
+$(LIB): $(obj).depend $(OBJS) $(SOBJS)
+ $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
clean:
rm -f $(SOBJS) $(OBJS)
+.PHONY: distclean
distclean: clean
rm -f $(LIB) core *.bak .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
#########################################################################