Dave Chapman | 48430bf | 2009-10-28 21:11:43 +0000 | [diff] [blame] | 1 | # __________ __ ___. |
| 2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 6 | # \/ \/ \/ \/ \/ |
| 7 | # $Id$ |
| 8 | # |
Tomer Shalev | ad78551 | 2009-10-29 21:31:50 +0000 | [diff] [blame] | 9 | |
| 10 | # We use the Telechips code available in the Rockbox tools/ directory |
Dominik Riebeling | b24e562 | 2011-12-14 21:59:37 +0000 | [diff] [blame] | 11 | TOOLSDIR = ../../tools/ |
Dominik Riebeling | c5530d9 | 2012-01-02 16:59:26 +0000 | [diff] [blame] | 12 | CFLAGS += -O -g -W -Wall -Wshadow -pedantic -I$(TOOLSDIR) |
Dave Chapman | 48430bf | 2009-10-28 21:11:43 +0000 | [diff] [blame] | 13 | |
Dominik Riebeling | b24e562 | 2011-12-14 21:59:37 +0000 | [diff] [blame] | 14 | OUTPUT = mktccboot |
Tomer Shalev | ad78551 | 2009-10-29 21:31:50 +0000 | [diff] [blame] | 15 | |
Tomer Shalev | ad78551 | 2009-10-29 21:31:50 +0000 | [diff] [blame] | 16 | |
Dominik Riebeling | 20f3e64 | 2009-11-04 21:56:40 +0000 | [diff] [blame] | 17 | # inputs |
Dominik Riebeling | b24e562 | 2011-12-14 21:59:37 +0000 | [diff] [blame] | 18 | LIBSOURCES := mktccboot.c $(TOOLSDIR)telechips.c |
Dominik Riebeling | 20f3e64 | 2009-11-04 21:56:40 +0000 | [diff] [blame] | 19 | SOURCES := $(LIBSOURCES) main.c |
Dominik Riebeling | 20f3e64 | 2009-11-04 21:56:40 +0000 | [diff] [blame] | 20 | EXTRADEPS := |
| 21 | |
Dominik Riebeling | b24e562 | 2011-12-14 21:59:37 +0000 | [diff] [blame] | 22 | include ../libtools.make |
| 23 | |
Dominik Riebeling | 20f3e64 | 2009-11-04 21:56:40 +0000 | [diff] [blame] | 24 | # rule for sources from tools dir |
Dominik Riebeling | b24e562 | 2011-12-14 21:59:37 +0000 | [diff] [blame] | 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 |
Tomer Shalev | 08c5a66 | 2009-10-30 14:27:16 +0000 | [diff] [blame] | 28 | |