Make libtools compile rule more generic.

Create the object - source dependency internally and use a more generic rule
for compiling. Removes the need for explicit rules for source files located in
a different folder.

This adds the limitation for SOURCES and LIBSOURCES to only hold C files.

Change-Id: I56f6a4b1e7df36347cd2f54051e072251f456092
This commit is contained in:
Dominik Riebeling 2013-05-11 11:28:08 +02:00
parent 440872bb42
commit 8a4075d454
3 changed files with 3 additions and 10 deletions

View file

@ -27,7 +27,3 @@ include ../libtools.make
$(OBJDIR)mkimxboot.o: dualboot.h dualboot.c mkimxboot.c mkimxboot.h
$(OBJDIR)main.o: dualboot.h dualboot.c main.c mkimxboot.h
$(OBJDIR)%.o: $(IMXTOOLS_DIR)%.c
@echo CC $<
$(SILENT)mkdir -p $(dir $@)
$(SILENT)$(CROSS)$(CC) $(CFLAGS) -c -o $@ $<