8a4075d454
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
28 lines
871 B
Makefile
28 lines
871 B
Makefile
# __________ __ ___.
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
# \/ \/ \/ \/ \/
|
|
# $Id$
|
|
#
|
|
|
|
# We use the Telechips code available in the Rockbox tools/ directory
|
|
TOOLSDIR = ../../tools/
|
|
CFLAGS += -O -g -W -Wall -Wshadow -pedantic -I$(TOOLSDIR)
|
|
|
|
OUTPUT = mktccboot
|
|
|
|
|
|
# inputs
|
|
LIBSOURCES := mktccboot.c $(TOOLSDIR)telechips.c
|
|
SOURCES := $(LIBSOURCES) main.c
|
|
EXTRADEPS :=
|
|
|
|
include ../libtools.make
|
|
|
|
# rule for sources from tools dir
|
|
# Rules go _after_ including mkboot.make to have OBJDIR set up correctly.
|
|
# Paths are assumed to end with a /
|
|
telechips.o: $(OBJDIR)telechips.o
|
|
|