aboutsummaryrefslogtreecommitdiffstats
path: root/channels/misdn/Makefile
blob: 1374e75e36636154da3a5e3591d19b98b986c07e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# 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
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