aboutsummaryrefslogtreecommitdiffstats
path: root/x-loader/common/Makefile
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2012-04-02 17:15:53 +0200
committerH. Nikolaus Schaller <hns@goldelico.com>2012-04-02 17:15:53 +0200
commitd45f815d51db77a592cd0e3f07440877a5c4f9ee (patch)
tree1648f8642392b5d9e00619f7ce80837c68e3c99b /x-loader/common/Makefile
parent18ea53eaac88276357fb553d9b97d378ef48ba46 (diff)
downloadbootable_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/common/Makefile')
-rw-r--r--x-loader/common/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/x-loader/common/Makefile b/x-loader/common/Makefile
index de856cf..8f4ee2c 100644
--- a/x-loader/common/Makefile
+++ b/x-loader/common/Makefile
@@ -23,26 +23,27 @@
include $(TOPDIR)/config.mk
-LIB = libcommon.a
+LIB = $(obj)libcommon.a
AOBJS =
COBJS = cmd_load.o
-OBJS = $(AOBJS) $(COBJS)
+SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS))
CPPFLAGS += -I..
all: $(LIB) $(AOBJS)
-$(LIB): .depend $(OBJS)
+$(LIB): $(obj).depend $(OBJS)
$(AR) crv $@ $(OBJS)
#########################################################################
-.depend: Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c)
- $(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
-sinclude .depend
+sinclude $(obj).depend
#########################################################################