diff options
Diffstat (limited to 'apps/codecs/libpcm/libpcm.make')
-rw-r--r-- | apps/codecs/libpcm/libpcm.make | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/codecs/libpcm/libpcm.make b/apps/codecs/libpcm/libpcm.make new file mode 100644 index 0000000000..ce7b6b5083 --- /dev/null +++ b/apps/codecs/libpcm/libpcm.make | |||
@@ -0,0 +1,25 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | # $Id$ | ||
8 | # | ||
9 | |||
10 | # libpcm | ||
11 | PCMSLIB := $(CODECDIR)/libpcm.a | ||
12 | PCMSLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libpcm/SOURCES) | ||
13 | PCMSLIB_OBJ := $(call c2obj, $(PCMSLIB_SRC)) | ||
14 | OTHER_SRC += $(PCMSLIB_SRC) | ||
15 | |||
16 | $(PCMSLIB): $(PCMSLIB_OBJ) | ||
17 | $(SILENT)$(shell rm -f $@) | ||
18 | $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null | ||
19 | |||
20 | PCMSFLAGS = $(filter-out -O%,$(CODECFLAGS)) | ||
21 | PCMSFLAGS += -O1 | ||
22 | |||
23 | $(CODECDIR)/libpcm/%.o: $(ROOTDIR)/apps/codecs/libpcm/%.c | ||
24 | $(SILENT)mkdir -p $(dir $@) | ||
25 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(PCMSFLAGS) -c $< -o $@ | ||