2005-02-16 00:25:25 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
|
|
|
INCLUDES = -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/common \
|
|
|
|
-I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib
|
|
|
|
CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \
|
|
|
|
-DMEM=${MEMORYSIZE}
|
|
|
|
|
|
|
|
ifdef APPEXTRA
|
|
|
|
INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
|
|
|
|
endif
|
|
|
|
|
2005-03-17 20:50:03 +00:00
|
|
|
.PHONY: libmad liba52 libFLAC libTremor libwavpack dumb
|
2005-03-09 14:39:52 +00:00
|
|
|
|
|
|
|
OUTPUT = $(SOFTWARECODECS)
|
2005-02-19 12:00:43 +00:00
|
|
|
|
|
|
|
all: $(OUTPUT)
|
2005-02-16 00:25:25 +00:00
|
|
|
|
|
|
|
include $(TOOLSDIR)/make.inc
|
|
|
|
|
2005-03-01 13:35:15 +00:00
|
|
|
|
|
|
|
libmad:
|
2005-02-16 00:25:25 +00:00
|
|
|
@echo "MAKE in libmad"
|
|
|
|
@mkdir -p $(OBJDIR)/libmad
|
2005-03-01 13:35:15 +00:00
|
|
|
@$(MAKE) -C libmad TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR)/libmad VERSION=$(VERSION) EXTRA_DEFINES="$(EXTRA_DEFINES)" MEM=${MEMORYSIZE} OUTPUT=$(OBJDIR)/libmad.a
|
2005-02-16 00:25:25 +00:00
|
|
|
|
2005-03-01 13:35:15 +00:00
|
|
|
liba52:
|
2005-02-16 12:52:27 +00:00
|
|
|
@echo "MAKE in liba52"
|
|
|
|
@mkdir -p $(OBJDIR)/liba52
|
2005-03-01 13:35:15 +00:00
|
|
|
@$(MAKE) -C liba52 TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR)/liba52 VERSION=$(VERSION) EXTRA_DEFINES="$(EXTRA_DEFINES)" MEM=${MEMORYSIZE} OUTPUT=$(OBJDIR)/liba52.a
|
2005-02-16 12:52:27 +00:00
|
|
|
|
2005-03-01 13:35:15 +00:00
|
|
|
libFLAC:
|
2005-02-16 20:15:30 +00:00
|
|
|
@echo "MAKE in libFLAC"
|
|
|
|
@mkdir -p $(OBJDIR)/libFLAC
|
2005-03-01 13:35:15 +00:00
|
|
|
@$(MAKE) -C libFLAC TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR)/libFLAC VERSION=$(VERSION) EXTRA_DEFINES="$(EXTRA_DEFINES)" MEM=${MEMORYSIZE} OUTPUT=$(OBJDIR)/libFLAC.a
|
2005-02-16 20:15:30 +00:00
|
|
|
|
2005-03-01 13:35:15 +00:00
|
|
|
libTremor:
|
2005-02-19 12:00:43 +00:00
|
|
|
@echo "MAKE in Tremor"
|
|
|
|
@mkdir -p $(OBJDIR)/Tremor
|
2005-03-01 13:35:15 +00:00
|
|
|
@$(MAKE) -C Tremor TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR)/Tremor VERSION=$(VERSION) EXTRA_DEFINES="$(EXTRA_DEFINES)" MEM=${MEMORYSIZE} OUTPUT=$(OBJDIR)/libTremor.a
|
2005-02-19 12:00:43 +00:00
|
|
|
|
2005-03-01 13:35:15 +00:00
|
|
|
libwavpack:
|
2005-02-25 17:29:42 +00:00
|
|
|
@echo "MAKE in libwavpack"
|
|
|
|
@mkdir -p $(OBJDIR)/libwavpack
|
2005-03-01 13:35:15 +00:00
|
|
|
@$(MAKE) -C libwavpack TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR)/libwavpack VERSION=$(VERSION) EXTRA_DEFINES="$(EXTRA_DEFINES)" MEM=${MEMORYSIZE} OUTPUT=$(OBJDIR)/libwavpack.a
|
|
|
|
|
2005-03-17 20:50:03 +00:00
|
|
|
dumb:
|
|
|
|
@echo "MAKE in dumb"
|
|
|
|
@mkdir -p $(OBJDIR)/dumb
|
|
|
|
@$(MAKE) -C dumb TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR)/dumb VERSION=$(VERSION) EXTRA_DEFINES="$(EXTRA_DEFINES)" MEM=${MEMORYSIZE} LIBDIR=$(OBJDIR) OFLAGS="$(CFLAGS)"
|
|
|
|
|
2005-02-16 00:25:25 +00:00
|
|
|
clean:
|
|
|
|
@echo "cleaning codecs"
|
2005-03-20 23:15:36 +00:00
|
|
|
@rm -fr $(OBJDIR)/libmad $(OBJDIR)/libmad.a $(OBJDIR)/liba52 $(OBJDIR)/libFLAC $(OBJDIR)/Tremor $(OBJDIR)/libwavpack $(OBJDIR)/dumb $(OBJDIR)/libdumb.a $(OBJDIR)/libdumbd.a
|
2005-02-16 00:25:25 +00:00
|
|
|
@$(MAKE) -C libmad clean
|
2005-02-16 12:52:27 +00:00
|
|
|
@$(MAKE) -C liba52 clean
|
2005-02-16 20:15:30 +00:00
|
|
|
@$(MAKE) -C libFLAC clean
|
2005-02-19 12:00:43 +00:00
|
|
|
@$(MAKE) -C Tremor clean
|
2005-02-25 17:52:02 +00:00
|
|
|
@$(MAKE) -C libwavpack clean
|