mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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:
parent
440872bb42
commit
8a4075d454
3 changed files with 3 additions and 10 deletions
|
|
@ -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 $@ $<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue