Mercurial > hg > audiostuff
comparison spandsp-0.0.6pre17/spandsp-sim/Makefile.am @ 4:26cd8f1ef0b1
import spandsp-0.0.6pre17
| author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
|---|---|
| date | Fri, 25 Jun 2010 15:50:58 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 3:c6c5a16ce2f2 | 4:26cd8f1ef0b1 |
|---|---|
| 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 ## | |
| 19 ## $Id: Makefile.am,v 1.10 2009/06/02 16:03:55 steveu Exp $ | |
| 20 | |
| 21 AM_CFLAGS = $(COMP_VENDOR_CFLAGS) | |
| 22 AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS) | |
| 23 | |
| 24 LIBS += -L$(top_builddir)/src -lspandsp $(SIMLIBS) | |
| 25 | |
| 26 MAINTAINERCLEANFILES = Makefile.in | |
| 27 | |
| 28 EXTRA_DIST = libspandsp_sim.dsp \ | |
| 29 libspandsp_sim.2005.vcproj \ | |
| 30 libspandsp_sim.2008.vcproj \ | |
| 31 msvc/make_line_models.2008.vcproj \ | |
| 32 msvc/msvcproj.head \ | |
| 33 msvc/msvcproj.foot \ | |
| 34 msvc/vc8proj.head \ | |
| 35 msvc/vc8proj.foot \ | |
| 36 msvc/vc9proj.head \ | |
| 37 msvc/vc9proj.foot | |
| 38 | |
| 39 INCLUDES = -I$(top_builddir) -I$(top_builddir)/src -DDATADIR="\"$(pkgdatadir)\"" | |
| 40 | |
| 41 noinst_PROGRAMS = make_line_models | |
| 42 | |
| 43 lib_LTLIBRARIES = libspandsp-sim.la | |
| 44 | |
| 45 libspandsp_sim_la_SOURCES = g1050.c \ | |
| 46 line_model.c \ | |
| 47 rfc2198_sim.c \ | |
| 48 test_utils.c | |
| 49 | |
| 50 nodist_libspandsp_sim_la_SOURCES = line_models.c | |
| 51 | |
| 52 libspandsp_sim_la_LDFLAGS = -version-info @SPANDSP_LT_CURRENT@:@SPANDSP_LT_REVISION@:@SPANDSP_LT_AGE@ $(COMP_VENDOR_LDFLAGS) | |
| 53 | |
| 54 nobase_include_HEADERS = spandsp/g1050.h \ | |
| 55 spandsp/line_model.h \ | |
| 56 spandsp/line_models.h \ | |
| 57 spandsp/rfc2198_sim.h \ | |
| 58 spandsp/test_utils.h \ | |
| 59 spandsp-sim.h | |
| 60 | |
| 61 make_line_models_SOURCES = make_line_models.c | |
| 62 make_line_models_LDADD = -L$(top_builddir)/src -lspandsp | |
| 63 | |
| 64 # We need to run make_line_models, so it generates the line_models.h file | |
| 65 # used by several of the test programs. | |
| 66 | |
| 67 line_models.lo: make_line_models$(EXEEXT) line_models.c | |
| 68 | |
| 69 line_models.$(OBJEXT): make_line_models$(EXEEXT) line_models.c | |
| 70 | |
| 71 line_models.c: make_line_models$(EXEEXT) | |
| 72 ./make_line_models$(EXEEXT) | |
| 73 | |
| 74 DSP = libspandsp_sim.dsp | |
| 75 VCPROJ8 = libspandsp_sim.2005.vcproj | |
| 76 VCPROJ9 = libspandsp_sim.2008.vcproj | |
| 77 | |
| 78 WIN32SOURCES = $(libspandsp_sim_la_SOURCES) | |
| 79 WIN32HEADERS = $(nobase_include_HEADERS) | |
| 80 | |
| 81 DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP) | |
| 82 VCPROJOUT8 = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ8) | |
| 83 VCPROJOUT9 = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ9) | |
| 84 | |
| 85 $(DSP): msvc/msvcproj.head msvc/msvcproj.foot Makefile.am | |
| 86 echo "creating $(DSP)" | |
| 87 @(cp $(srcdir)/msvc/msvcproj.head $(DSP); \ | |
| 88 echo "# Begin Group \"Source Files\"" $(DSPOUT); \ | |
| 89 for file in $(WIN32SOURCES); do \ | |
| 90 echo "# Begin Source File" $(DSPOUT); \ | |
| 91 echo "" $(DSPOUT); \ | |
| 92 echo "SOURCE=.\\"$$file $(DSPOUT); \ | |
| 93 echo "# End Source File" $(DSPOUT); \ | |
| 94 done; \ | |
| 95 echo "# End Group" $(DSPOUT); \ | |
| 96 echo "# Begin Group \"Header Files\"" $(DSPOUT); \ | |
| 97 for file in $(WIN32HEADERS); do \ | |
| 98 echo "# Begin Source File" $(DSPOUT); \ | |
| 99 echo "" $(DSPOUT); \ | |
| 100 echo "SOURCE=.\\"$$file $(DSPOUT); \ | |
| 101 echo "# End Source File" $(DSPOUT); \ | |
| 102 done; \ | |
| 103 echo "# End Group" $(DSPOUT); \ | |
| 104 cat $(srcdir)/msvc/msvcproj.foot $(DSPOUT) ) | |
| 105 | |
| 106 $(VCPROJ8): msvc/vc8proj.head msvc/vc8proj.foot Makefile.am | |
| 107 echo "creating $(VCPROJ8)" | |
| 108 @(cp $(srcdir)/msvc/vc8proj.head $(VCPROJ8); \ | |
| 109 for file in $(WIN32SOURCES); do \ | |
| 110 echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT8); \ | |
| 111 done; \ | |
| 112 echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT8); \ | |
| 113 for file in $(WIN32HEADERS); do \ | |
| 114 echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT8); \ | |
| 115 done; \ | |
| 116 cat $(srcdir)/msvc/vc8proj.foot $(VCPROJOUT8) ) | |
| 117 | |
| 118 $(VCPROJ9): msvc/vc9proj.head msvc/vc9proj.foot Makefile.am | |
| 119 echo "creating $(VCPROJ9)" | |
| 120 @(cp $(srcdir)/msvc/vc9proj.head $(VCPROJ9); \ | |
| 121 for file in $(WIN32SOURCES); do \ | |
| 122 echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT9); \ | |
| 123 done; \ | |
| 124 echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT9); \ | |
| 125 for file in $(WIN32HEADERS); do \ | |
| 126 echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT9); \ | |
| 127 done; \ | |
| 128 cat $(srcdir)/msvc/vc9proj.foot $(VCPROJOUT9) ) |
