2005-10-31 23:30:09 +00:00
|
|
|
#
|
|
|
|
# Makefile
|
|
|
|
#
|
|
|
|
# Make file for chan_misdn support
|
|
|
|
#
|
|
|
|
|
|
|
|
# Verify those options with main Makefile
|
2006-02-02 21:15:34 +00:00
|
|
|
CFLAGS = -pipe -c -Wall
|
2006-02-02 22:05:47 +00:00
|
|
|
ifeq ($(PROC),x86_64)
|
|
|
|
CFLAGS += -fPIC
|
|
|
|
endif
|
2005-10-31 23:30:09 +00:00
|
|
|
SOURCES = isdn_lib.c isdn_msg_parser.c
|
|
|
|
OBJDIR = .
|
2005-12-09 11:01:18 +00:00
|
|
|
OBJS = isdn_lib.o isdn_msg_parser.o fac.o
|
2005-10-31 23:30:09 +00:00
|
|
|
|
|
|
|
|
2005-12-09 11:01:18 +00:00
|
|
|
all: chan_misdn_lib.a
|
2005-10-31 23:30:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
%.o: %.c
|
2005-12-09 11:01:18 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $<
|
2006-02-02 22:05:47 +00:00
|
|
|
|
2005-10-31 23:30:09 +00:00
|
|
|
|
|
|
|
chan_misdn_lib.a: $(OBJS)
|
|
|
|
ar crv $@ $(OBJS)
|
|
|
|
|
2005-12-09 11:01:18 +00:00
|
|
|
misdn:
|
|
|
|
@mkdir -p lib
|
|
|
|
cd lib ; cvs -d:pserver:anonymous:readonly@cvs.isdn4linux.de:/i4ldev co -r mqueue mISDN mISDNuser ;
|
|
|
|
cd lib/mISDN ; make install
|
|
|
|
cd lib/mISDNuser ; make install
|
2006-02-02 22:05:47 +00:00
|
|
|
|
2005-10-31 23:30:09 +00:00
|
|
|
FORCE:
|
|
|
|
|
|
|
|
clean:
|
2005-12-09 11:01:18 +00:00
|
|
|
rm -rf *.a *.o *.so
|
|
|
|
rm -rf lib
|