Makefile.in 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #
  2. # Makefile
  3. #
  4. # Make file for OpenH323 support layer
  5. #
  6. .PHONY: Makefile.ast clean
  7. default:: @OPENH323_BUILD@
  8. # Verify those options with main Makefile
  9. STDCCFLAGS = -DNDEBUG
  10. STDCCFLAGS += -I../../include -include ../../include/asterisk/autoconfig.h
  11. STDCCFLAGS += -fPIC
  12. #OPTCCFLAGS +=
  13. CFLAGS = -pipe
  14. TARGET = libchanh323.a
  15. TARGET += Makefile.ast
  16. SOURCES = ast_h323.cxx compat_h323.cxx cisco-h225.cxx caps_h323.cxx
  17. OBJDIR = .
  18. OBJS =
  19. ifndef OPENH323DIR
  20. OPENH323DIR=@OPENH323DIR@
  21. endif
  22. ifneq ($(wildcard $(OPENH323DIR)/openh323u.mak),)
  23. include $(OPENH323DIR)/openh323u.mak
  24. endif
  25. notrace::
  26. $(MAKE) NOTRACE=1 opt
  27. $(SOURCES):: Makefile ../../Makefile
  28. touch $@
  29. libchanh323.a: $(OBJS)
  30. ar crv $@ $(OBJS)
  31. #
  32. # We have this file in svn, so this is commented out to ensure it doesn't try
  33. # to run implicitly. However, it's still here for reference.
  34. #
  35. #cisco-h225.cxx:: cisco-h225.asn
  36. # asnparser -m CISCO_H225 -c $<
  37. Makefile.ast:
  38. @echo H323CFLAGS = $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) >$@.tmp
  39. @echo H323LDFLAGS = $(CFLAGS) $(LDFLAGS) >>$@.tmp
  40. @echo H323LDLIBS = $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS) >>$@.tmp
  41. @if [ -r $@ ] && cmp -s $@ $@.tmp; then rm -f $@.tmp; else mv -f $@.tmp $@; fi
  42. clean::