2003-06-25 06:48:08 +00:00
|
|
|
#
|
2005-04-29 04:30:51 +00:00
|
|
|
# Makefile
|
2003-06-25 06:48:08 +00:00
|
|
|
#
|
2005-04-29 04:30:51 +00:00
|
|
|
# Make file for OpenH323 support layer
|
2003-08-10 18:12:48 +00:00
|
|
|
#
|
2003-03-31 07:13:36 +00:00
|
|
|
|
2006-09-19 17:07:22 +00:00
|
|
|
.PHONY: Makefile.ast clean
|
|
|
|
|
|
2006-09-19 21:48:57 +00:00
|
|
|
default::
|
2006-06-22 15:55:13 +00:00
|
|
|
|
2005-04-29 04:30:51 +00:00
|
|
|
# Verify those options with main Makefile
|
2006-09-19 17:07:22 +00:00
|
|
|
STDCCFLAGS = -DNDEBUG
|
|
|
|
|
STDCCFLAGS += -I../../include -include ../../include/asterisk/autoconfig.h
|
|
|
|
|
STDCCFLAGS += -fPIC
|
2005-04-29 04:30:51 +00:00
|
|
|
#OPTCCFLAGS +=
|
2006-09-19 17:07:22 +00:00
|
|
|
CFLAGS = -pipe
|
|
|
|
|
TARGET = libchanh323.a
|
2005-04-29 04:30:51 +00:00
|
|
|
TARGET += Makefile.ast
|
2006-09-19 17:07:22 +00:00
|
|
|
SOURCES = ast_h323.cxx compat_h323.cxx cisco-h225.cxx
|
2005-04-29 04:30:51 +00:00
|
|
|
OBJDIR = .
|
2006-09-19 17:07:22 +00:00
|
|
|
OBJS =
|
2004-11-15 00:41:25 +00:00
|
|
|
|
2005-04-29 04:30:51 +00:00
|
|
|
ifndef OPENH323DIR
|
2006-09-19 21:48:57 +00:00
|
|
|
OPENH323DIR=
|
2004-11-15 00:41:25 +00:00
|
|
|
endif
|
2003-08-16 16:55:19 +00:00
|
|
|
|
2005-04-29 04:30:51 +00:00
|
|
|
include $(OPENH323DIR)/openh323u.mak
|
2003-03-31 07:13:36 +00:00
|
|
|
|
2006-09-19 17:07:22 +00:00
|
|
|
notrace::
|
|
|
|
|
$(MAKE) NOTRACE=1 opt
|
|
|
|
|
|
|
|
|
|
define module_cxx_template
|
|
|
|
|
$(1):: $(2)
|
|
|
|
|
ln -f $(2) $(1)
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
$(foreach mod,$(SOURCES),$(eval $(call module_cxx_template,$(mod),$(mod:.cxx=.cpp))))
|
|
|
|
|
#$(SOURCES):: $(SOURCES:.cxx=.cpp)
|
|
|
|
|
# ln -f $(patsubst %.cxx, %.cpp, $@) $@
|
2003-03-31 07:13:36 +00:00
|
|
|
|
2005-04-29 04:30:51 +00:00
|
|
|
$(SOURCES):: Makefile ../../Makefile
|
2006-09-19 17:07:22 +00:00
|
|
|
touch $@
|
2004-11-15 00:41:25 +00:00
|
|
|
|
2005-04-29 04:30:51 +00:00
|
|
|
libchanh323.a: $(OBJS)
|
|
|
|
|
ar crv $@ $(OBJS)
|
2004-11-15 00:41:25 +00:00
|
|
|
|
2006-09-19 17:07:22 +00:00
|
|
|
cisco-h225.cpp:: cisco-h225.asn
|
|
|
|
|
asnparser -m CISCO_H225 -c $<
|
|
|
|
|
mv -f cisco-h225.cxx cisco-h225.cpp
|
|
|
|
|
|
2006-06-22 15:55:13 +00:00
|
|
|
Makefile.ast:
|
2005-04-29 04:30:51 +00:00
|
|
|
@echo H323CFLAGS = $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) >$@.tmp
|
|
|
|
|
@echo H323LDFLAGS = $(CFLAGS) $(LDFLAGS) >>$@.tmp
|
|
|
|
|
@echo H323LDLIBS = $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS) >>$@.tmp
|
|
|
|
|
@if [ -r $@ ] && cmp -s $@ $@.tmp; then rm -f $@.tmp; else mv -f $@.tmp $@; fi
|
2003-03-31 07:13:36 +00:00
|
|
|
|
2006-05-19 22:55:09 +00:00
|
|
|
clean::
|
2006-09-19 17:07:22 +00:00
|
|
|
rm -f $(SOURCES) $(TARGET) $(OBJS) Makefile.ast *.dep
|