diff options
author | Wolfgang Denk <wd@denx.de> | 2007-04-24 14:37:49 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-05-03 16:16:10 +0200 |
commit | 2c6fb199dc5756fc72f49d1f4de105e089049d65 (patch) | |
tree | 1a3501631ae1dddf4aec6173c7d6f043f67df474 /board/stxssa/Makefile | |
parent | 35171dc04e028ecacc23ad916a66295472555dbf (diff) | |
download | u-boot-imx-2c6fb199dc5756fc72f49d1f4de105e089049d65.zip u-boot-imx-2c6fb199dc5756fc72f49d1f4de105e089049d65.tar.gz u-boot-imx-2c6fb199dc5756fc72f49d1f4de105e089049d65.tar.bz2 |
Cleanup STX GP3SSA code; fix build and compile problems.
Diffstat (limited to 'board/stxssa/Makefile')
-rw-r--r-- | board/stxssa/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/board/stxssa/Makefile b/board/stxssa/Makefile index 5d8ea34..344ecdf 100644 --- a/board/stxssa/Makefile +++ b/board/stxssa/Makefile @@ -23,14 +23,17 @@ include $(TOPDIR)/config.mk -LIB = lib$(BOARD).a +LIB = $(obj)lib$(BOARD).a -OBJS := $(BOARD).o +COBJS := $(BOARD).o SOBJS := init.o -#SOBJS := -$(LIB): $(OBJS) $(SOBJS) - $(AR) crv $@ $(OBJS) +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) +SOBJS := $(addprefix $(obj),$(SOBJS)) + +$(LIB): $(obj).depend $(OBJS) $(SOBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) clean: rm -f $(OBJS) $(SOBJS) @@ -40,9 +43,9 @@ distclean: clean ######################################################################### -.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 ######################################################################### |