2005-02-17 09:08:18 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
|
|
|
INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
|
|
|
|
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers
|
|
|
|
|
|
|
|
ifdef APPEXTRA
|
|
|
|
INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
|
|
|
|
endif
|
|
|
|
|
|
|
|
TREMOROPTS =
|
|
|
|
CFLAGS = $(GCCOPTS) $(TREMOROPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE}
|
|
|
|
|
|
|
|
SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - )
|
|
|
|
SOURCES = $(SRC)
|
2005-03-01 13:35:15 +00:00
|
|
|
OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
|
2005-02-17 09:24:59 +00:00
|
|
|
DEPFILE = $(OBJDIR)/dep-Tremor
|
2005-02-17 09:08:18 +00:00
|
|
|
DIRS =
|
|
|
|
|
2005-02-17 09:24:59 +00:00
|
|
|
OUTPUT = $(OBJDIR)/libTremor.a
|
2005-02-17 09:08:18 +00:00
|
|
|
|
|
|
|
all: $(OUTPUT)
|
|
|
|
|
|
|
|
$(OUTPUT): $(OBJS)
|
|
|
|
@echo "AR $@"
|
|
|
|
@$(AR) ruv $@ $+ >/dev/null 2>&1
|
|
|
|
|
|
|
|
$(OBJDIR)/Tremor/%.o: $(APPSDIR)/codecs/Tremor/%.c
|
2005-02-26 06:31:45 +00:00
|
|
|
@echo "CC $<"
|
2005-02-17 09:08:18 +00:00
|
|
|
@$(CC) -c -O2 $(CFLAGS) -I$(APPSDIR)/codecs/Tremor/ $< -o $@
|
|
|
|
|
|
|
|
include $(TOOLSDIR)/make.inc
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo "cleaning Tremor"
|
|
|
|
@rm -f $(OBJS) $(OUTPUT) $(DEPFILE)
|
|
|
|
|
|
|
|
-include $(DEPFILE)
|