mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Integrate the warble tool in the regular build system.
Only sdl app builds work properly for now. Change-Id: I7807d42f69b8577b401e48cdc63de71e54f49217
This commit is contained in:
parent
13a7c9ac70
commit
466a7c6a40
8 changed files with 110 additions and 4 deletions
37
lib/rbcodec/test/warble.make
Normal file
37
lib/rbcodec/test/warble.make
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
# \/ \/ \/ \/ \/
|
||||
# $Id$
|
||||
#
|
||||
|
||||
|
||||
include $(ROOTDIR)/tools/functions.make
|
||||
include $(ROOTDIR)/apps/codecs/codecs.make
|
||||
|
||||
FLAGS=-g -D__PCTOOL__ $(TARGET) -Wall
|
||||
|
||||
SRC= $(call preprocess, $(ROOTDIR)/lib/rbcodec/test/SOURCES)
|
||||
|
||||
INCLUDES += -I$(ROOTDIR)/apps -I$(ROOTDIR)/apps/codecs -I$(ROOTDIR)/apps/codecs/lib \
|
||||
-I$(ROOTDIR)/apps/gui -I$(ROOTDIR)/apps/metadata
|
||||
INCLUDES += -I$(ROOTDIR)/firmware/export -I$(ROOTDIR)/firmware/include \
|
||||
-I$(ROOTDIR)/firmware/target/hosted \
|
||||
-I$(ROOTDIR)/firmware/target/hosted/sdl
|
||||
|
||||
GCCOPTS+=-D__PCTOOL__ -g -std=gnu99 `$(SDLCONFIG) --cflags` -DCODECDIR="\"$(CODECDIR)\""
|
||||
|
||||
LIBS=`$(SDLCONFIG) --libs` -lc
|
||||
ifneq ($(findstring MINGW,$(shell uname)),MINGW)
|
||||
LIBS += -ldl
|
||||
endif
|
||||
|
||||
.SECONDEXPANSION: # $$(OBJ) is not populated until after this
|
||||
|
||||
$(BUILDDIR)/$(BINARY): $(CODECS)
|
||||
|
||||
$(BUILDDIR)/$(BINARY): $$(OBJ)
|
||||
@echo LD $(BINARY)
|
||||
$(SILENT)$(HOSTCC) $(SIMFLAGS) $(LIBS) -o $@ $+
|
||||
Loading…
Add table
Add a link
Reference in a new issue