summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-12-28 18:38:53 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-12-28 18:38:53 +0100
commit1cc463c767498ba2e0928916632084c1f0bb13df (patch)
tree9e24278ba925d0f3cee8f35e244e8b984695c9c7 /modules
parentefcf895bfcee006488d305b5344e49f87c6fd460 (diff)
amr: use MOD-CFLAGS instead of global CFLAGS
Diffstat (limited to 'modules')
-rw-r--r--modules/amr/module.mk18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/amr/module.mk b/modules/amr/module.mk
index 4f8ecdf..328f048 100644
--- a/modules/amr/module.mk
+++ b/modules/amr/module.mk
@@ -9,19 +9,19 @@ $(MOD)_SRCS += amr.c sdp.c
ifneq ($(shell [ -d $(SYSROOT)/include/opencore-amrnb ] && echo 1 ),)
-CFLAGS += -DAMR_NB=1 -I$(SYSROOT)/include/opencore-amrnb
+$(MOD)_CFLAGS += -DAMR_NB=1 -I$(SYSROOT)/include/opencore-amrnb
$(MOD)_LFLAGS += -lopencore-amrnb
else
ifneq ($(shell [ -d $(SYSROOT_ALT)/include/opencore-amrnb ] && echo 1 ),)
-CFLAGS += -DAMR_NB=1 -I$(SYSROOT_ALT)/include/opencore-amrnb
+$(MOD)_CFLAGS += -DAMR_NB=1 -I$(SYSROOT_ALT)/include/opencore-amrnb
$(MOD)_LFLAGS += -lopencore-amrnb
else
ifneq ($(shell [ -d $(SYSROOT)/local/include/amrnb ] && echo 1),)
-CFLAGS += -DAMR_NB=1 -I$(SYSROOT)/local/include/amrnb
+$(MOD)_CFLAGS += -DAMR_NB=1 -I$(SYSROOT)/local/include/amrnb
$(MOD)_LFLAGS += -lamrnb
else
ifneq ($(shell [ -d $(SYSROOT)/include/amrnb ] && echo 1),)
-CFLAGS += -DAMR_NB=1 -I$(SYSROOT)/include/amrnb
+$(MOD)_CFLAGS += -DAMR_NB=1 -I$(SYSROOT)/include/amrnb
$(MOD)_LFLAGS += -lamrnb
endif
endif
@@ -31,19 +31,19 @@ endif
ifneq ($(shell [ -f $(SYSROOT_ALT)/include/opencore-amrwb/enc_if.h ] && \
echo 1 ),)
-CFLAGS += -DAMR_WB=1 -I$(SYSROOT_ALT)/include/opencore-amrwb
+$(MOD)_CFLAGS += -DAMR_WB=1 -I$(SYSROOT_ALT)/include/opencore-amrwb
$(MOD)_LFLAGS += -lopencore-amrwb
else
ifneq ($(shell [ -f $(SYSROOT)/local/include/amrwb/enc_if.h ] && echo 1),)
-CFLAGS += -DAMR_WB=1 -I$(SYSROOT)/local/include/amrwb
+$(MOD)_CFLAGS += -DAMR_WB=1 -I$(SYSROOT)/local/include/amrwb
$(MOD)_LFLAGS += -lamrwb
else
ifneq ($(shell [ -f $(SYSROOT)/include/amrwb/enc_if.h ] && echo 1),)
-CFLAGS += -DAMR_WB=1 -I$(SYSROOT)/include/amrwb
+$(MOD)_CFLAGS += -DAMR_WB=1 -I$(SYSROOT)/include/amrwb
$(MOD)_LFLAGS += -lamrwb
else
ifneq ($(shell [ -f $(SYSROOT)/include/vo-amrwbenc/enc_if.h ] && echo 1),)
-CFLAGS += -DAMR_WB=1 -I$(SYSROOT)/include/vo-amrwbenc
+$(MOD)_CFLAGS += -DAMR_WB=1 -I$(SYSROOT)/include/vo-amrwbenc
$(MOD)_LFLAGS += -lvo-amrwbenc
endif
endif
@@ -53,7 +53,7 @@ endif
# extra for decoder
ifneq ($(shell [ -f $(SYSROOT)/include/opencore-amrwb/dec_if.h ] && echo 1 ),)
-CFLAGS += -I$(SYSROOT)/include/opencore-amrwb
+$(MOD)_CFLAGS += -I$(SYSROOT)/include/opencore-amrwb
$(MOD)_LFLAGS += -lopencore-amrwb
endif