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