Makefile.am 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. ##
  2. ## SpanDSP - a series of DSP components for telephony
  3. ##
  4. ## Makefile.am - Process this file with automake to produce Makefile.in
  5. ##
  6. ## This program is free software; you can redistribute it and/or modify
  7. ## it under the terms of the GNU General Public License version 2, as
  8. ## published by the Free Software Foundation.
  9. ##
  10. ## This program is distributed in the hope that it will be useful,
  11. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ## GNU General Public License for more details.
  14. ##
  15. ## You should have received a copy of the GNU General Public License
  16. ## along with this program; if not, write to the Free Software
  17. ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. AM_CFLAGS = $(COMP_VENDOR_CFLAGS)
  19. AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS)
  20. LIBS += -L$(top_builddir)/src -lspandsp $(SIMLIBS)
  21. MAINTAINERCLEANFILES = Makefile.in
  22. EXTRA_DIST = libspandsp_sim.dsp \
  23. libspandsp_sim.2005.vcproj \
  24. libspandsp_sim.2008.vcproj \
  25. msvc/make_line_models.2008.vcproj \
  26. msvc/msvcproj.head \
  27. msvc/msvcproj.foot \
  28. msvc/vc8proj.head \
  29. msvc/vc8proj.foot \
  30. msvc/vc9proj.head \
  31. msvc/vc9proj.foot
  32. AM_CPPFLAGS = -I$(top_builddir) -I$(top_builddir)/src -DDATADIR="\"$(pkgdatadir)\""
  33. noinst_PROGRAMS = make_line_models
  34. lib_LTLIBRARIES = libspandsp-sim.la
  35. libspandsp_sim_la_SOURCES = g1050.c \
  36. line_model.c \
  37. rfc2198_sim.c \
  38. test_utils.c
  39. nodist_libspandsp_sim_la_SOURCES = line_models.c
  40. libspandsp_sim_la_LDFLAGS = -version-info @SPANDSP_LT_CURRENT@:@SPANDSP_LT_REVISION@:@SPANDSP_LT_AGE@ $(COMP_VENDOR_LDFLAGS)
  41. nobase_include_HEADERS = spandsp/g1050.h \
  42. spandsp/line_model.h \
  43. spandsp/line_models.h \
  44. spandsp/rfc2198_sim.h \
  45. spandsp/test_utils.h \
  46. spandsp-sim.h
  47. make_line_models_SOURCES = make_line_models.c
  48. make_line_models_LDADD = -L$(top_builddir)/src -lspandsp
  49. # We need to run make_line_models, so it generates the line_models.h file
  50. # used by several of the test programs.
  51. line_models.lo: make_line_models$(EXEEXT) line_models.c
  52. line_models.$(OBJEXT): make_line_models$(EXEEXT) line_models.c
  53. line_models.c: make_line_models$(EXEEXT)
  54. ./make_line_models$(EXEEXT)
  55. DSP = libspandsp_sim.dsp
  56. VCPROJ8 = libspandsp_sim.2005.vcproj
  57. VCPROJ9 = libspandsp_sim.2008.vcproj
  58. WIN32SOURCES = $(libspandsp_sim_la_SOURCES)
  59. WIN32HEADERS = $(nobase_include_HEADERS)
  60. DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP)
  61. VCPROJOUT8 = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ8)
  62. VCPROJOUT9 = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ9)
  63. $(DSP): msvc/msvcproj.head msvc/msvcproj.foot Makefile.am
  64. echo "creating $(DSP)"
  65. @(cp $(srcdir)/msvc/msvcproj.head $(DSP); \
  66. echo "# Begin Group \"Source Files\"" $(DSPOUT); \
  67. for file in $(WIN32SOURCES); do \
  68. echo "# Begin Source File" $(DSPOUT); \
  69. echo "" $(DSPOUT); \
  70. echo "SOURCE=.\\"$$file $(DSPOUT); \
  71. echo "# End Source File" $(DSPOUT); \
  72. done; \
  73. echo "# End Group" $(DSPOUT); \
  74. echo "# Begin Group \"Header Files\"" $(DSPOUT); \
  75. for file in $(WIN32HEADERS); do \
  76. echo "# Begin Source File" $(DSPOUT); \
  77. echo "" $(DSPOUT); \
  78. echo "SOURCE=.\\"$$file $(DSPOUT); \
  79. echo "# End Source File" $(DSPOUT); \
  80. done; \
  81. echo "# End Group" $(DSPOUT); \
  82. cat $(srcdir)/msvc/msvcproj.foot $(DSPOUT) )
  83. $(VCPROJ8): msvc/vc8proj.head msvc/vc8proj.foot Makefile.am
  84. echo "creating $(VCPROJ8)"
  85. @(cp $(srcdir)/msvc/vc8proj.head $(VCPROJ8); \
  86. for file in $(WIN32SOURCES); do \
  87. echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT8); \
  88. done; \
  89. echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT8); \
  90. for file in $(WIN32HEADERS); do \
  91. echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT8); \
  92. done; \
  93. cat $(srcdir)/msvc/vc8proj.foot $(VCPROJOUT8) )
  94. $(VCPROJ9): msvc/vc9proj.head msvc/vc9proj.foot Makefile.am
  95. echo "creating $(VCPROJ9)"
  96. @(cp $(srcdir)/msvc/vc9proj.head $(VCPROJ9); \
  97. for file in $(WIN32SOURCES); do \
  98. echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT9); \
  99. done; \
  100. echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT9); \
  101. for file in $(WIN32HEADERS); do \
  102. echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT9); \
  103. done; \
  104. cat $(srcdir)/msvc/vc9proj.foot $(VCPROJOUT9) )