From 3285a49dd871d54c1ec13076173ad617443baae1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 25 Jun 2011 13:20:37 -0400 Subject: rewrite build system to avoid recursion The ubi-utils/src/ subdir is tossed as it just complicates things for no real gain. The dictionary.h header is relocated to the ubi-utils/include/ since other headers in there need it. The top level clean is replaced with a `find -delete` on objects, so it might prune more than necessary, but many projects now do this sort of thing and no one complained there. A "mkdep" helper generates the actual rule, and the variables are used with "foreach" to expand these automatically. The tests subdir is updated only to reflect the ubi-utils source move. Otherwise, it is left untouched as making that non-recursive isn't really worth the effort. While we're gutting things, also through in kbuild style output while building to make things more legible. Signed-off-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- lib/Makefile | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 lib/Makefile (limited to 'lib/Makefile') diff --git a/lib/Makefile b/lib/Makefile deleted file mode 100644 index 9b01d32..0000000 --- a/lib/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# -# Makefile for libmtd -# - -SUBDIRS = - -# CFLAGS += -Werror -CPPFLAGS += -I../include -LIBS = libmtd -TARGETS = libmtd.a - -include ../common.mk - -$(BUILDDIR)/libmtd.a: $(addprefix $(BUILDDIR)/,\ - libmtd.o libmtd_legacy.o libcrc32.o libfec.o) - -clean:: - rm -f $(addsuffix .a, $(LIBS)) - -install:: - -uninstall: -- cgit v1.2.3