2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 # We use the Telechips code available in the Rockbox tools/ directory
11 TOOLSDIR
= ..
/..
/tools
/
12 CFLAGS
+= -O
-g
-W
-Wall
-Wshadow
-pedantic
-I
$(TOOLSDIR
)
18 LIBSOURCES
:= mktccboot.c
$(TOOLSDIR
)telechips.c
19 SOURCES
:= $(LIBSOURCES
) main.c
22 include ..
/libtools.make
24 # rule for sources from tools dir
25 # Rules go _after_ including mkboot.make to have OBJDIR set up correctly.
26 # Paths are assumed to end with a /
27 telechips.o
: $(OBJDIR
)telechips.o
28 $(OBJDIR
)%.o
: $(TOOLSDIR
)%.c
30 $(SILENT
)mkdir
-p
$(dir $@
)
31 $(SILENT
)$(CROSS
)$(CC
) $(CFLAGS
) -c
-o
$@
$<