1 ## Makefile.am -- Process this file with automake to produce Makefile.in
5 # Copyright (c) 2007-2016 John Hurst. All rights reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions
10 # 1. Redistributions of source code must retain the above copyright
11 # notice, this list of conditions and the following disclaimer.
12 # 2. Redistributions in binary form must reproduce the above copyright
13 # notice, this list of conditions and the following disclaimer in the
14 # documentation and/or other materials provided with the distribution.
15 # 3. The name of the author may not be used to endorse or promote products
16 # derived from this software without specific prior written permission.
18 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 # Allow for configure's changes to this makefile
34 AM_CPPFLAGS += -I/var/local/include -I/usr/local/include
35 AM_LDFLAGS += -L./.libs -L/var/local/lib -L/usr/local/lib
39 AM_CPPFLAGS += -DCONFIG_RANDOM_UUID
44 # list of all the header files that should be installed
70 AtmosSyncChannel_Mixer.h \
71 AtmosSyncChannel_Generator.h \
77 AS_DCP_DCData_internal.h
82 include_HEADERS += AS_02.h
86 include_HEADERS += AS_02_PHDR.h
89 # list of the libraries to build and install
91 lib_LTLIBRARIES = libkumu.la libasdcp.la
94 lib_LTLIBRARIES += libas02.la
98 lib_LTLIBRARIES += libphdr.la
101 # sources for kumu library
102 libkumu_la_SOURCES = KM_error.h KM_fileio.cpp KM_fileio.h KM_log.cpp KM_log.h \
103 KM_memio.h KM_mutex.h KM_platform.h KM_prng.cpp KM_prng.h KM_util.cpp \
104 KM_util.h KM_xml.cpp KM_xml.h KM_tai.h KM_tai.cpp
106 # linker flags (*not* including libraries to link against) for a library
107 libkumu_la_LDFLAGS = -release @VERSION@
110 # sources for asdcp library that don't get added to a distribution
111 nodist_libasdcp_la_SOURCES = Metadata_h.tt2 Metadata_cpp.tt2 \
112 mxfgen.pl MXF_def.pl ullist.pl ULList.xml dict.xml DMS_Crypto.xml
113 # sources for asdcp library
114 libasdcp_la_SOURCES = MPEG2_Parser.cpp MPEG.cpp JP2K_Codestream_Parser.cpp \
115 JP2K_Sequence_Parser.cpp JP2K.cpp PCM_Parser.cpp Wav.cpp \
116 TimedText_Parser.cpp KLV.cpp Dict.cpp MXFTypes.cpp MXF.cpp \
117 Index.cpp Metadata.cpp AS_DCP.cpp AS_DCP_MXF.cpp AS_DCP_AES.cpp \
118 h__Reader.cpp h__Writer.cpp AS_DCP_MPEG2.cpp AS_DCP_JP2K.cpp \
119 AS_DCP_PCM.cpp AS_DCP_TimedText.cpp PCMParserList.cpp \
120 Wav.h WavFileWriter.h MXF.h Metadata.h \
121 JP2K.h AS_DCP.h AS_DCP_internal.h KLV.h MPEG.h MXFTypes.h MDD.h \
122 PCMParserList.h S12MTimecode.h MDD.cpp \
123 AS_DCP_ATMOS.cpp AS_DCP_DCData.cpp info.in \
124 DCData_ByteStream_Parser.cpp DCData_Sequence_Parser.cpp \
125 AtmosSyncChannel_Generator.cpp AtmosSyncChannel_Generator.h \
126 AtmosSyncChannel_Mixer.cpp AtmosSyncChannel_Mixer.h \
127 PCMDataProviders.cpp PCMDataProviders.h \
128 SyncEncoder.c SyncEncoder.h SyncCommon.h CRC16.c CRC16.h \
129 UUIDInformation.c UUIDInformation.h \
133 libasdcp_la_LDFLAGS = -release @VERSION@
134 # additional libraries to link against for a library
135 libasdcp_la_LIBADD = libkumu.la
136 libasdcp_la_CPPFLAGS = -DASDCP_PLATFORM=\"@host@\"
139 # sources for as-02 library
140 libas02_la_SOURCES = \
147 ST2052_TextParser.cpp \
150 libas02_la_LDFLAGS = -release @VERSION@
151 libas02_la_LIBADD = libasdcp.la libkumu.la
152 libas02_la_CPPFLAGS = -DASDCP_PLATFORM=\"@host@\"
157 # sources for PHDR library
158 libphdr_la_SOURCES = \
160 PHDR_Sequence_Parser.cpp \
164 libphdr_la_LDFLAGS = -release @VERSION@
165 libphdr_la_LIBADD = libasdcp.la libkumu.la
166 libphdr_la_CPPFLAGS = -DASDCP_PLATFORM=\"@host@\"
171 lib_LTLIBRARIES += libpyasdcp.la
173 nodist_libpyasdcp_la_SOURCES = \
178 asdcp_python_descriptor.cpp \
179 asdcp_python_misc.cpp \
180 asdcp_python_writerinfo.h \
182 asdcp_python_mxf.cpp \
184 asdcp_python_mxf_text.cpp \
185 asdcp_python_mxf_metadata.cpp
188 libpyasdcp_la_CPPFLAGS = @PYTHON_CPPFLAGS@
189 libpyasdcp_la_LDFLAGS = @PYTHON_LSPEC@ -release @VERSION@
190 libpyasdcp_la_LIBADD = libkumu.la libasdcp.la
193 libpyasdcp_la_LIBADD += libas02.la
196 pyexecdir = @PYTHON_EXECDIR@
197 pyexec_includedir = $(prefix)/include
198 nodist_pyexec_include_HEADERS = kumu_python.h asdcp_python.h asdcp_wrappers.h
199 pyexec_LTLIBRARIES = kumu.la asdcp.la
201 nodist_kumu_la_SOURCES = pykumu.cpp kumu_python.h
202 kumu_la_CPPFLAGS = @PYTHON_CPPFLAGS@
203 kumu_la_LDFLAGS = @PYTHON_LSPEC@ -avoid-version -module
204 kumu_la_LIBADD = libpyasdcp.la
206 nodist_asdcp_la_SOURCES = pyasdcp.cpp kumu_python.h asdcp_python.h asdcp_wrappers.h
207 asdcp_la_CPPFLAGS = @PYTHON_CPPFLAGS@
208 asdcp_la_LDFLAGS = @PYTHON_LSPEC@ -avoid-version -module
209 asdcp_la_LIBADD = libpyasdcp.la
212 # list of programs to be built and installed
242 # sources and linkage for CLI utilities
243 asdcp_test_SOURCES = asdcp-test.cpp
244 asdcp_test_LDADD = libasdcp.la libkumu.la
246 asdcp_wrap_SOURCES = asdcp-wrap.cpp
247 asdcp_wrap_LDADD = libasdcp.la libkumu.la
249 asdcp_unwrap_SOURCES = asdcp-unwrap.cpp
250 asdcp_unwrap_LDADD = libasdcp.la libkumu.la
252 asdcp_util_SOURCES = asdcp-util.cpp
253 asdcp_util_LDADD = libasdcp.la libkumu.la
255 asdcp_info_SOURCES = asdcp-info.cpp
256 asdcp_info_LDADD = libasdcp.la libkumu.la
258 kmfilegen_SOURCES = kmfilegen.cpp
259 kmfilegen_LDADD = libkumu.la
261 kmrandgen_SOURCES = kmrandgen.cpp
262 kmrandgen_LDADD = libkumu.la
264 kmuuidgen_SOURCES = kmuuidgen.cpp
265 kmuuidgen_LDADD = libkumu.la
267 blackwave_SOURCES = blackwave.cpp
268 blackwave_LDADD = libasdcp.la libkumu.la
270 pinkwave_SOURCES = pinkwave.cpp
271 pinkwave_LDADD = libasdcp.la libkumu.la
273 klvwalk_SOURCES = klvwalk.cpp
274 klvwalk_LDADD = libasdcp.la libkumu.la
276 wavesplit_SOURCES = wavesplit.cpp
277 wavesplit_LDADD = libasdcp.la libkumu.la
279 j2c_test_SOURCES = j2c-test.cpp
280 j2c_test_LDADD = libasdcp.la libkumu.la
282 klvsplit_SOURCES = klvsplit.cpp
283 klvsplit_LDADD = libasdcp.la libkumu.la
286 as_02_wrap_SOURCES = as-02-wrap.cpp
287 as_02_wrap_LDADD = libas02.la libasdcp.la libkumu.la
289 as_02_unwrap_SOURCES = as-02-unwrap.cpp
290 as_02_unwrap_LDADD = libas02.la libasdcp.la libkumu.la
292 as_02_info_SOURCES = as-02-info.cpp
293 as_02_info_LDADD = libas02.la libasdcp.la libkumu.la
297 phdr_wrap_SOURCES = phdr-wrap.cpp
298 phdr_wrap_LDADD = libphdr.la libas02.la libasdcp.la libkumu.la
300 phdr_unwrap_SOURCES = phdr-unwrap.cpp
301 phdr_unwrap_LDADD = libphdr.la libas02.la libasdcp.la libkumu.la
304 # list of programs that need to be compiled for use in test suite
305 check_PROGRAMS = asdcp-mem-test path-test \
306 fips-186-rng-test asdcp-version
308 check_PROGRAMS += tt-xform
311 # sources for a test program
312 # list of libraries to link against for a test program
313 asdcp_mem_test_SOURCES = asdcp-mem-test.cpp
314 asdcp_mem_test_LDADD = libasdcp.la
316 path_test_SOURCES = path-test.cpp
317 path_test_LDADD = libkumu.la
319 fips_186_rng_test_SOURCES = fips-186-rng-test.cpp
320 fips_186_rng_test_LDADD = libasdcp.la
322 asdcp_version_SOURCES = asdcp-version.cpp
323 asdcp_version_LDADD = libkumu.la
326 nodist_tt_xform_SOURCES = tt-xform.cpp TimedText_Transform.h
327 tt_xform_LDADD = libasdcp.la
331 # list of test scripts to execute during "make check"
332 TESTS = rng-tst.sh gen-tst.sh \
333 jp2k-tst.sh jp2k-crypt-tst.sh jp2k-stereo-tst.sh jp2k-stereo-crypt-tst.sh \
334 wav-tst.sh wav-crypt-tst.sh mpeg-tst.sh mpeg-crypt-tst.sh
336 # environment variables to pass to above tests
337 TESTS_ENVIRONMENT = BUILD_DIR="." TEST_FILES=../tests TEST_FILE_PREFIX=DCPd1-M1 \
338 CRYPT_KEY=70e0de21c98fbd455ad5b8042edb41a6 CRYPT_KEY_B=aa2d05475d568cd52cb3415e65cba76f \
339 JP2K_PREFIX=MM_2k_XYZ_
341 # files to include in the distribution that automake doesn't automatically include
342 EXTRA_DIST = fips-186-test-harness.pl $(TESTS) ../README.cmake ../CMakeLists.txt CMakeLists.txt dirent_win.h
345 EXTRA_DIST += $(nodist_libasdcp_la_SOURCES) $(nodist_tt_xform_SOURCES)
348 EXTRA_DIST += $(nodist_pyexec_include_HEADERS) $(nodist_libpyasdcp_la_SOURCES) $(nodist_kumu_la_SOURCES) $(nodist_asdcp_la_SOURCES)
352 # source files that are themselves built
353 BUILT_SOURCES = Metadata.h Metadata.cpp MDD.h MDD.cpp
354 # files to be removed with "make maintainer-clean"
355 MAINTAINERCLEANFILES = Metadata.h Metadata.cpp MDD.h MDD.cpp
357 # build commands for built sources
358 # dependencies: $(srcdir)/ullist.pl $(srcdir)/ULList.xml $(srcdir)/dict.xml $(srcdir)/DMS_Crypto.xml
360 $(srcdir)/ullist.pl $(srcdir)/ULList.xml $(srcdir)/dict.xml $(srcdir)/DMS_Crypto.xml > MDD.h
361 # dependencies: $(srcdir)/ullist.pl $(srcdir)/ULList.xml $(srcdir)/dict.xml $(srcdir)/DMS_Crypto.xml
363 $(srcdir)/ullist.pl -s $(srcdir)/ULList.xml $(srcdir)/dict.xml $(srcdir)/DMS_Crypto.xml > MDD.cpp
364 # dependencies: $(srcdir)/Metadata_h.tt2 $(srcdir)/mxfgen.pl $(srcdir)/MXF_def.pl
366 $(srcdir)/mxfgen.pl $(srcdir)/MXF_def.pl $(srcdir)/Metadata_h.tt2 > Metadata.h
367 # dependencies: Metadata.h $(srcdir)/Metadata_cpp.tt2
369 $(srcdir)/mxfgen.pl $(srcdir)/MXF_def.pl $(srcdir)/Metadata_cpp.tt2 > Metadata.cpp