2005-10-31 23:30:09 +00:00
|
|
|
#
|
|
|
|
# Makefile
|
|
|
|
#
|
|
|
|
# Make file for chan_misdn support
|
|
|
|
#
|
|
|
|
|
|
|
|
# Verify those options with main Makefile
|
2006-04-04 19:09:26 +00:00
|
|
|
CFLAGS = -pipe -c -Wall -ggdb
|
2006-02-06 20:18:17 +00:00
|
|
|
ifeq ($(shell uname -m),x86_64)
|
2006-02-02 22:05:47 +00:00
|
|
|
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)
|
|
|
|
|
|
|
|
clean:
|
2005-12-09 11:01:18 +00:00
|
|
|
rm -rf *.a *.o *.so
|