diff options
author | roy zang <tie-fei.zang@freescale.com> | 2006-12-01 11:47:36 +0800 |
---|---|---|
committer | Zang Tiefei <roy@bus.ap.freescale.net> | 2006-12-01 11:47:36 +0800 |
commit | ee311214e0d216f904feea269599d0934bf71f23 (patch) | |
tree | 8f942227d016d8cc52a12f4b66a02e4b1e7ed19b /board/mpc7448hpc2/Makefile | |
parent | 6bd87c0aeea441c49d59fd542b84a9be88d08b17 (diff) | |
download | u-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/Makefile | 20 |
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 ######################################################################### |