freeswitch/src/mod/codecs/mod_opus/Makefile

30 lines
588 B
Makefile
Raw Normal View History

2011-02-04 21:33:28 +00:00
BASE=../../../..
OPUS=opus-1.0.1
2011-02-04 21:33:28 +00:00
OPUS_DIR=$(switch_srcdir)/libs/$(OPUS)
OPUS_BUILDDIR=$(switch_builddir)/libs/$(OPUS)
LOCAL_CFLAGS=-I$(OPUS_DIR)/include -g -O2
2012-11-01 23:09:25 +00:00
LOCAL_LDFLAGS=-lm -lz
2011-02-04 21:33:28 +00:00
OPUS_LA=$(OPUS_BUILDDIR)/.libs/libopus.la
2011-02-04 21:33:28 +00:00
2012-11-01 23:09:25 +00:00
LOCAL_LIBADD=$(OPUS_LA)
2011-02-04 21:33:28 +00:00
include $(BASE)/build/modmake.rules
$(OPUS_DIR):
$(GETLIB) $(OPUS).tar.gz
2012-09-13 16:27:50 +00:00
$(OPUS_DIR)/Makefile: $(OPUS_DIR)
2011-02-04 21:33:28 +00:00
cd $(OPUS_BUILDDIR) && $(DEFAULT_VARS) $(OPUS_DIR)/configure --disable-shared --with-pic --srcdir=$(OPUS_DIR)
$(TOUCH_TARGET)
2012-09-13 16:27:50 +00:00
$(OPUS_LA): $(OPUS_DIR)/Makefile
2011-02-04 21:33:28 +00:00
cd $(OPUS_BUILDDIR) && $(MAKE)
2012-09-13 16:27:50 +00:00
$(MODNAME).lo: $(OPUS_LA)