2009-10-28 21:11:43 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
2009-10-29 21:31:50 +00:00
|
|
|
|
|
|
|
# We use the Telechips code available in the Rockbox tools/ directory
|
2011-12-14 21:59:37 +00:00
|
|
|
TOOLSDIR = ../../tools/
|
2012-01-02 16:59:26 +00:00
|
|
|
CFLAGS += -O -g -W -Wall -Wshadow -pedantic -I$(TOOLSDIR)
|
2009-10-28 21:11:43 +00:00
|
|
|
|
2011-12-14 21:59:37 +00:00
|
|
|
OUTPUT = mktccboot
|
2009-10-29 21:31:50 +00:00
|
|
|
|
|
|
|
|
2009-11-04 21:56:40 +00:00
|
|
|
# inputs
|
2011-12-14 21:59:37 +00:00
|
|
|
LIBSOURCES := mktccboot.c $(TOOLSDIR)telechips.c
|
2009-11-04 21:56:40 +00:00
|
|
|
SOURCES := $(LIBSOURCES) main.c
|
|
|
|
EXTRADEPS :=
|
|
|
|
|
2011-12-14 21:59:37 +00:00
|
|
|
include ../libtools.make
|
2009-10-28 21:11:43 +00:00
|
|
|
|
2011-12-14 21:59:37 +00:00
|
|
|
# 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
|
|
|
|
$(OBJDIR)%.o: $(TOOLSDIR)%.c
|
2009-10-29 21:31:50 +00:00
|
|
|
@echo CC $<
|
2011-09-26 20:51:23 +00:00
|
|
|
$(SILENT)mkdir -p $(dir $@)
|
2011-12-14 21:59:37 +00:00
|
|
|
$(SILENT)$(CROSS)$(CC) $(CFLAGS) -c -o $@ $<
|
2011-09-26 20:51:23 +00:00
|
|
|
|
2009-10-30 14:27:16 +00:00
|
|
|
|