Makefile
上传用户:sy_wanhua
上传日期:2013-07-25
资源大小:3048k
文件大小:4k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

C/C++

  1. # $Id: Makefile,v 1.53 2001/06/26 21:02:13 icahoon Exp $
  2. BUILD = ../build
  3. include $(BUILD)/Makefile.pre
  4. ifeq ($(OSTYPE),SunOS)
  5. ifeq ($(VOCAL_TOOLCHAIN_TYPE),gnu)
  6. IMAP_OS_ARG = gso
  7. endif
  8. ifeq ($(VOCAL_TOOLCHAIN_TYPE),sunpro)
  9. IMAP_OS_ARG = fso
  10. endif
  11. endif
  12. ifeq ($(OSTYPE),FreeBSD)
  13. IMAP_OS_ARG = bsf
  14. endif
  15. ifeq ($(OSTYPE),Linux)
  16. IMAP_OS_ARG = lnp
  17. endif
  18. MAKE_NOJ = $(patsubst %-j4,%, $(patsubst %-j2,%, $(MAKE)))
  19. INSTALL = install
  20. CODE_DEPENDS = libxml
  21. ifeq ($(OSTYPE),FreeBSD)
  22. CODE_DEPENDS += libcext_bsd libcext_lgpl
  23. endif
  24. ifeq ($(OSTYPE),SunOS)
  25. CODE_DEPENDS += libcext_bsd
  26. endif
  27. ifeq ($(USE_YARROW),1)
  28. CODE_DEPENDS += yarrow
  29. endif
  30. ifeq ($(VOCAL_HAS_ENUM),1)
  31. CODE_DEPENDS += $(wildcard enum)
  32. endif
  33. CODE_DEPENDS += $(wildcard quicknet andreasen hitachi)
  34. code: $(CODE_DEPENDS)
  35. quicknet:
  36. cd quicknet ; $(MAKE)
  37. andreasen:
  38. cd andreasen ; $(MAKE)
  39. hitachi:
  40. ifeq ($(OS_ARCH),sh)
  41. cd hitachi ; $(MAKE)
  42. endif
  43. .PHONY: libxml Equivalence libcext imap osp xerces-c-src1_4_0 andreasen quicknet hitachi
  44. imap: imap.$(OS_ARCH)
  45. $(LNDIR) ../imap imap.$(OS_ARCH)
  46. cd imap.$(OS_ARCH) && env MAKEFLAGS= MAKELEVEL= $(MAKE) $(IMAP_OS_ARG)
  47. imap.$(OS_ARCH):
  48. -mkdir imap.$(OS_ARCH) 
  49. yarrow: yarrow.$(OS_ARCH)
  50. $(LNDIR) ../yarrow yarrow.$(OS_ARCH)
  51. cd yarrow.$(OS_ARCH) ; $(MAKE_NOJ) 
  52. yarrow.$(OS_ARCH):
  53. -mkdir yarrow.$(OS_ARCH)
  54. enum: enum.$(OS_ARCH)
  55. cd enum.$(OS_ARCH) ; $(MAKE)
  56. enum.$(OS_ARCH):
  57. cp -r enum enum.$(OS_ARCH)
  58. -mkdir -p enum.$(OS_ARCH)/bin enum.$(OS_ARCH)/lib
  59. cd enum.$(OS_ARCH) ; cp Makefile.$(OS_ARCH) makefile ; $(MAKE)
  60. xerces-c-src1_4_0: xerces-c-src1_4_0.$(OS_ARCH)
  61. XERCESCROOT="`pwd`/xerces-c-src1_4_0.$(OS_ARCH)";cd xerces-c-src1_4_0.$(OS_ARCH)/src; export XERCESCROOT;$(MAKE_NOJ)
  62. ifeq ($(OSTYPE),SunOS)
  63. XERCES_CONFIGURE=-psolaris -ccc -xCC -minmem -nfileonly -tnative
  64. else
  65.   ifeq ($(OSTYPE),Linux)
  66.     XERCES_CONFIGURE=-plinux -cgcc -xg++ -minmem -nfileonly -tnative
  67.   endif
  68. endif
  69. xerces-c-src1_4_0.$(OS_ARCH):
  70. cp -r xerces-c-src1_4_0 xerces-c-src1_4_0.$(OS_ARCH)
  71. XERCESCROOT="`pwd`/xerces-c-src1_4_0.$(OS_ARCH)" ; cd xerces-c-src1_4_0.$(OS_ARCH)/src; export XERCESCROOT; chmod u+x runConfigure; chmod u+x configure; ./runConfigure $(XERCES_CONFIGURE)
  72. libxml: libxml2.$(OS_ARCH)
  73. cd libxml2.$(OS_ARCH) ; env CC=$(CC) $(MAKE)
  74. libxml2.$(OS_ARCH):
  75. $(LNDIR) ../libxml-2.x libxml2.$(OS_ARCH)
  76. cd libxml2.$(OS_ARCH) ; env CC=$(CC) ./configure
  77. libcext: libcext_bsd libcext_lgpl
  78. libcext_bsd: libcext_bsd.$(OS_ARCH)
  79. $(LNDIR) ../libcext_bsd libcext_bsd.$(OS_ARCH)
  80. cd libcext_bsd.$(OS_ARCH) ; $(MAKE_NOJ)
  81. libcext_bsd.$(OS_ARCH):
  82. -mkdir libcext_bsd.$(OS_ARCH)
  83. libcext_lgpl: libcext_lgpl.$(OS_ARCH)
  84. $(LNDIR) ../libcext_lgpl libcext_lgpl.$(OS_ARCH)
  85. cd libcext_lgpl.$(OS_ARCH) ; $(MAKE_NOJ)
  86. libcext_lgpl.$(OS_ARCH):
  87. -mkdir libcext_lgpl.$(OS_ARCH)
  88. libsndfile: libsndfile.$(OS_ARCH)
  89. cd libsndfile.$(OS_ARCH) ; $(MAKE_NOJ)
  90. ifeq ($(OSTYPE),SunOS)
  91. libsndfile.$(OS_ARCH):
  92. cp -r libsndfile-0.0.22 libsndfile.$(OS_ARCH)
  93. ln -s /usr/include/assert.h libsndfile.$(OS_ARCH)/src/GSM610/assert.h
  94. cd libsndfile.$(OS_ARCH) ; ./configure
  95. else
  96. libsndfile.$(OS_ARCH):
  97. cp -r libsndfile-0.0.22 libsndfile.$(OS_ARCH)
  98. cd libsndfile.$(OS_ARCH) ; ./configure
  99. endif
  100. ifeq ($(OSTYPE), SunOS)
  101. OSP_COMPILER = -o use_spro
  102. endif
  103. osp: osp.$(OS_ARCH)/dependencies
  104. cd osp.$(OS_ARCH)/src ; OSTYPE=$(OSTYPE) ; export OSTYPE ; OS_ARCH=$(OS_ARCH) ; export OS_ARCH ; ./osp_sdk_compile.ksh -d client $(OSP_COMPILER)
  105. osp.$(OS_ARCH)/dependencies: osp.$(OS_ARCH)
  106. $(LNDIR) ../OSPToolkit-2.5.2 osp.$(OS_ARCH)
  107. touch osp.$(OS_ARCH)/dependencies
  108. osp.$(OS_ARCH):
  109. -mkdir osp.$(OS_ARCH)
  110. Equivalence: Equivalence.$(OS_ARCH) 
  111. cd Equivalence.$(OS_ARCH) && $(MAKE_NOJ)
  112. Equivalence.$(OS_ARCH):
  113. mkdir Equivalence.$(OS_ARCH)
  114. cd Equivalence.$(OS_ARCH) && $(LNDIR) ../Equivalence
  115. install: all
  116. cd quicknet ; $(MAKE) install
  117. doc:
  118. clean:
  119. rm -rf libxml2.$(OS_ARCH)
  120. rm -rf Equivalence.$(OS_ARCH)
  121. rm -rf yarrow.$(OS_ARCH)
  122. rm -rf libsndfile.$(OS_ARCH)
  123. rm -rf imap.$(OS_ARCH)
  124. cd andreasen ; $(MAKE) clean
  125. cd yarrow ; $(MAKE) clean
  126. cd quicknet; $(MAKE) clean