2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
17 INCLUDES
=-Iinclude
-I.
-Icommon
-Idrivers
-Iexport
19 # Pick a target to build for
20 TARGET
=-DARCHOS_RECORDER
=1
22 TARGET
=-DARCHOS_RECORDER
=1
25 TARGET
=-DARCHOS_PLAYER
=1
28 TARGET
=-DARCHOS_PLAYER_OLD
=1
33 # store output files in this directory:
38 CFLAGS
= -W
-Wall
-O
-m1
-nostdlib
-Wstrict-prototypes
$(INCLUDES
) $(TARGET
) -DLCD_PROPFONTS
40 CFLAGS
= -W
-Wall
-O
-m1
-nostdlib
-Wstrict-prototypes
$(INCLUDES
) $(TARGET
)
46 CFLAGS
+= -fomit-frame-pointer
-fschedule-insns
49 SRC
:= $(wildcard drivers
/*.c common
/*.c malloc
/*.c
*.c
)
51 OBJS
:= $(SRC
:%.c
=$(OBJDIR
)/%.o
) $(OBJDIR
)/crt0.o
$(OBJDIR
)/bitswap.o
53 DEPDIRS
:=$(DEPS
) $(DEPS
)/drivers
$(DEPS
)/common
$(DEPS
)/malloc
57 OBJS
+= $(OBJDIR
)/sysfont.o
61 OUTPUT
= $(OBJDIR
)/librockbox.a
67 $(CC
) $(CFLAGS
) -c
$< -o
$@
70 $(CC
) $(CFLAGS
) -c
$< -o
$@
72 $(OBJDIR
)/sysfont.o
: fonts
/clR6x8.bdf
73 $(TOOLSDIR
)/convbdf
-c
-o
$(OBJDIR
)/sysfont.c
$<
74 $(CC
) $(CFLAGS
) -c
$(OBJDIR
)/sysfont.c
-o
$@
77 -rm -f
$(OBJS
) $(OUTPUT
) sysfont.c
80 $(OBJDIR
)/thread.o
: thread.c
export/thread.h
81 $(CC
) -c
-O
-fomit-frame-pointer
$(CFLAGS
) $< -o
$@
83 -include $(SRC
:%.c
=$(OBJDIR
)/$(DEPS
)/%.d
)