Merge branch 'next' of ../next
[platform/kernel/u-boot.git] / tools / easylogo / Makefile
index 292344a..d8e28b0 100644 (file)
@@ -1,2 +1,11 @@
-all:   easylogo.c
-       gcc easylogo.c -o easylogo
+include $(TOPDIR)/config.mk
+
+all: $(obj)easylogo
+
+$(obj)easylogo: $(SRCTREE)/tools/easylogo/easylogo.c
+       $(HOSTCC) $(HOSTCFLAGS_NOPED) $(HOSTLDFLAGS) -o $@ $^
+
+clean:
+       rm -f $(obj)easylogo
+
+.PHONY: all clean