diff options
author | H. Nikolaus Schaller <hns@goldelico.com> | 2012-04-02 17:15:53 +0200 |
---|---|---|
committer | H. Nikolaus Schaller <hns@goldelico.com> | 2012-04-02 17:15:53 +0200 |
commit | d45f815d51db77a592cd0e3f07440877a5c4f9ee (patch) | |
tree | 1648f8642392b5d9e00619f7ce80837c68e3c99b /x-loader/board/omap3530beagle | |
parent | 18ea53eaac88276357fb553d9b97d378ef48ba46 (diff) | |
download | bootable_bootloader_goldelico_gta04_x-loader-d45f815d51db77a592cd0e3f07440877a5c4f9ee.zip bootable_bootloader_goldelico_gta04_x-loader-d45f815d51db77a592cd0e3f07440877a5c4f9ee.tar.gz bootable_bootloader_goldelico_gta04_x-loader-d45f815d51db77a592cd0e3f07440877a5c4f9ee.tar.bz2 |
merge/overwrite of soures without commit log
Diffstat (limited to 'x-loader/board/omap3530beagle')
-rw-r--r-- | x-loader/board/omap3530beagle/Makefile | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/x-loader/board/omap3530beagle/Makefile b/x-loader/board/omap3530beagle/Makefile index 2dab831..b7b51ce 100644 --- a/x-loader/board/omap3530beagle/Makefile +++ b/x-loader/board/omap3530beagle/Makefile @@ -23,25 +23,29 @@ include $(TOPDIR)/config.mk -LIB = lib$(BOARD).a +LIB = $(obj)lib$(BOARD).a -OBJS := omap3530beagle.o +COBJS := omap3530beagle.o SOBJS := platform.o -$(LIB): $(OBJS) $(SOBJS) - $(AR) crv $@ $^ +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) +SOBJS := $(addprefix $(obj),$(SOBJS)) + +$(LIB): $(obj).depend $(OBJS) $(SOBJS) + $(AR) crv $@ $(OBJS) $(SOBJS) clean: rm -f $(SOBJS) $(OBJS) distclean: clean - rm -f $(LIB) core *.bak .depend + rm -f $(LIB) core *.bak $(obj).depend ######################################################################### -.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 ######################################################################### |