2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 INCLUDES
+= -I
$(FIRMDIR
) -I
$(FIRMDIR
)/export -I
$(FIRMDIR
)/drivers
-I
$(FIRMDIR
)/include
12 INCLUDES
+= -I
$(FIRMDIR
)/libc
/include
15 FIRMLIB_SRC
+= $(call preprocess
, $(FIRMDIR
)/SOURCES
)
16 FIRMLIB_OBJ
:= $(call c2obj
, $(FIRMLIB_SRC
))
17 ifeq (,$(findstring -DARCHOS_PLAYER
,$(TARGET
)))
18 FIRMLIB_OBJ
+= $(BUILDDIR
)/sysfont.o
20 FIRMLIB_OBJ
+= $(BUILDDIR
)/version.o
21 OTHER_SRC
+= $(FIRMLIB_SRC
)
23 FIRMLIB
= $(BUILDDIR
)/firmware
/libfirmware.a
25 SYSFONT
= $(ROOTDIR
)/fonts
/08-Schumacher-Clean.bdf
27 CLEANOBJS
+= $(BUILDDIR
)/sysfont.
* $(BUILDDIR
)/version.
*
29 # Limits for the built-in sysfont: ASCII for bootloaders, ISO8859-1 for normal builds
30 ifneq (,$(findstring -DBOOTLOADER
,$(EXTRA_DEFINES
)))
36 $(FIRMLIB
): $(FIRMLIB_OBJ
)
37 $(SILENT
)$(shell rm -f
$@
)
38 $(call PRINTS
,AR
$(@F
))$(AR
) rcs
$@
$^
>/dev
/null
40 $(BUILDDIR
)/sysfont.h
: $(SYSFONT
) $(TOOLS
)
41 $(call PRINTS
,CONVBDF
$(subst $(ROOTDIR
)/,,$<))$(TOOLSDIR
)/convbdf
-l
$(MAXCHAR
) -h
-o
$@
$<
43 $(BUILDDIR
)/sysfont.o
: $(SYSFONT
) $(BUILDDIR
)/sysfont.h
44 $(call PRINTS
,CONVBDF
$(subst $(ROOTDIR
)/,,$<))$(TOOLSDIR
)/convbdf
-l
$(MAXCHAR
) -c
-o
$(BUILDDIR
)/sysfont.c
$<
45 $(call PRINTS
,CC
$(subst $(ROOTDIR
)/,,$(BUILDDIR
)/sysfont.c
))$(CC
) $(CFLAGS
) -c
$(BUILDDIR
)/sysfont.c
-o
$@
47 $(BUILDDIR
)/version.c
: $(BUILDDIR
)/version.h
48 $(TOOLSDIR
)/genversion.sh c
$(BUILDDIR
) $(TOOLSDIR
)/version.sh
$(ROOTDIR
)
50 $(BUILDDIR
)/version.h
:
51 $(TOOLSDIR
)/genversion.sh h
$(BUILDDIR
) $(TOOLSDIR
)/version.sh
$(ROOTDIR
)