mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
46 lines
819 B
Makefile
46 lines
819 B
Makefile
#
|
|
# Makefile
|
|
#
|
|
# Make file for chan_misdn support
|
|
#
|
|
|
|
# Verify those options with main Makefile
|
|
CFLAGS = -pipe -c -Wall -ggdb
|
|
ifeq ($(shell uname -m),x86_64)
|
|
CFLAGS += -fPIC
|
|
endif
|
|
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/mISDNdsp.h),)
|
|
CFLAGS+=-DMISDN_1_2
|
|
endif
|
|
SOURCES = isdn_lib.c isdn_msg_parser.c
|
|
OBJDIR = .
|
|
OBJS = isdn_lib.o isdn_msg_parser.o fac.o
|
|
|
|
|
|
all: chan_misdn_lib.a
|
|
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -o $@ $<
|
|
|
|
|
|
chan_misdn_lib.a: $(OBJS)
|
|
ar crv $@ $(OBJS)
|
|
|
|
misdn:
|
|
@mkdir -p lib
|
|
cd lib ; cvs -d:pserver:anonymous:readonly@cvs.isdn4linux.de:/i4ldev co mISDN mISDNuser ;
|
|
cd lib/mISDN ; make install
|
|
cd lib/mISDNuser ; make install
|
|
|
|
portinfo: portinfo.o
|
|
$(CC) -L/usr/lib -o $@ $^ -lisdnnet -lmISDN -lpthread
|
|
|
|
|
|
FORCE:
|
|
|
|
clean:
|
|
rm -rf *.a *.o *.so
|
|
rm -rf lib
|
|
rm -rf portinfo
|