Gigabeat S: Make MIN_BRIGHTNESS_SETTING to be 1, not 0; the backlight already has...
[kugel-rb.git] / apps / codecs / lib / Makefile
blob4a33a58f275817a9d9e4e2f879749bfc83c9323e
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 # ../.. for the codec.h in the apps dir
11 # .. for stuff in the codecs dir
12 # . for stuff in the codeclib dir
13 INCLUDES=-I$(APPSDIR) -I.. -I. $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
14 -I$(FIRMDIR)/common -I$(BUILDDIR)
16 ifdef APPEXTRA
17 INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
18 endif
20 CFLAGS = $(INCLUDES) $(GCCOPTS) \
21 $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} -DCODEC
23 # Sectioned compilation for target
24 ifndef SIMVER
25 CFLAGS += -ffunction-sections -fdata-sections
26 endif
28 # This sets up 'SRC' based on the files mentioned in SOURCES
29 include $(TOOLSDIR)/makesrc.inc
31 SOURCES = $(SRC)
32 OBJS2 := $(SRC:%.c=$(OBJDIR)/%.o)
33 OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2))
34 DEPFILE = $(OBJDIR)/dep-codeclib
35 DIRS = .
37 OUTPUT = $(BUILDDIR)/libcodec.a
39 all: $(OUTPUT)
41 $(OUTPUT): $(OBJS)
42 $(call PRINTS,AR+RANLIB $(@F))$(AR) ruv $@ $+ >/dev/null 2>&1
43 $(SILENT)$(RANLIB) $@
45 include $(TOOLSDIR)/make.inc
47 clean:
48 $(call PRINTS,cleaning codecs/lib)rm -f $(OBJS) $(OUTPUT) $(DEPFILE)
50 -include $(DEPFILE)