Prepare new maemo release
[maemo-rb.git] / rbutil / mktccboot / Makefile
blob31ad68e643c9abb833a39cb34af877ac175ce02f
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
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)
14 OUTPUT = mktccboot
17 # inputs
18 LIBSOURCES := mktccboot.c $(TOOLSDIR)telechips.c
19 SOURCES := $(LIBSOURCES) main.c
20 EXTRADEPS :=
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
29 @echo CC $<
30 $(SILENT)mkdir -p $(dir $@)
31 $(SILENT)$(CROSS)$(CC) $(CFLAGS) -c -o $@ $<