diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-31 23:30:09 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-31 23:30:09 +0000 |
commit | 07003f66fc6c0708b949bafbfb716b717f41529b (patch) | |
tree | 4c0d6699c625e44a16e6727a76c5383ba3ed20af /channels/misdn/Makefile | |
parent | 104f491fc74f56f207e17f7fd086e34abc23ac4c (diff) |
finish chan_misdn commit
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6915 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/misdn/Makefile')
-rwxr-xr-x | channels/misdn/Makefile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/channels/misdn/Makefile b/channels/misdn/Makefile new file mode 100755 index 000000000..0e0917a2d --- /dev/null +++ b/channels/misdn/Makefile @@ -0,0 +1,45 @@ +# +# Makefile +# +# Make file for chan_misdn support +# + +# Verify those options with main Makefile +ifndef LINUX +LINUX=/lib/modules/$(shell uname -r)/build +endif + +CFLAGS += -pipe -c +SOURCES = isdn_lib.c isdn_msg_parser.c +OBJDIR = . +OBJS = isdn_lib.o isdn_msg_parser.o + +ifndef MISDNUSER +MISDNUSER=/usr/src/install-misdn/mISDNuser +endif + +MISDNCFLAGS += -I$(MISDNUSER)/include -I$(MISDNUSER)/i4lnet -I$(MISDNUSER)/lib +MISDNCFLAGS += -DMISDNUSER_JOLLY -I$(LINUX)/include + + +all: chan_misdn_lib.a Makefile.ast + + +%.o: %.c + $(CC) $(MISDNCFLAGS) $(CFLAGS) -o $@ $< + + +chan_misdn_lib.a: $(OBJS) + ar crv $@ $(OBJS) + +Makefile.ast: FORCE + @echo CFLAGS+=$(MISDNCFLAGS) -Imisdn/ -DCHAN_MISDN_VERSION=\\\"0.1.1\\\" >$@.tmp + @echo MISDNUSER = $(MISDNUSER) >>$@.tmp + @if [ -r $@ ] && cmp -s $@ $@.tmp; then rm -f $@.tmp; else mv -f $@.tmp $@; fi + + +FORCE: + + +clean: + rm *.a *.o Makefile.ast |