11
0
Fork 0
This repository has been archived on 2022-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
chan_openbsc/Makefile

31 lines
550 B
Makefile

ASTSRC?=../asterisk
-include $(ASTSRC)/menuselect.makeopts $(ASTSRC)/menuselect.makedeps
LOADABLE_MODS=chan_openbsc
ASTTOPDIR=$(ASTSRC)
INCLUDE=-I$(ASTSRC)/include -I/usr/local/include
ifneq ($(wildcard $(ASTSRC)/makeopts),)
include $(ASTSRC)/makeopts
endif
ifeq ($(OSARCH),SunOS)
ASTLIBDIR=/opt/asterisk/lib
else
ASTLIBDIR=$(libdir)/asterisk
endif
MODULES_DIR=$(ASTLIBDIR)/modules
all: _all
include $(ASTTOPDIR)/Makefile.moddir_rules
%.so: %.o
$(CC) -shared -o $@ $<
%.o: %.c
$(CC) -fPIC $(INCLUDE) -DAST_MODULE=\"$*\" -o $@ -c $<