1 ## Makefile.am -- Process this file with automake to produce Makefile.in
5 # Copyright (c) 2007-2018 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 \
78 AS_DCP_DCData_internal.h
83 include_HEADERS += AS_02.h
87 include_HEADERS += AS_02_PHDR.h
90 # list of the libraries to build and install
92 lib_LTLIBRARIES = libkumu.la libasdcp.la
95 lib_LTLIBRARIES += libas02.la
99 lib_LTLIBRARIES += libphdr.la
102 # sources for kumu library
103 libkumu_la_SOURCES = KM_error.h KM_fileio.cpp KM_fileio.h KM_log.cpp KM_log.h \
104 KM_memio.h KM_mutex.h KM_platform.h KM_prng.cpp KM_prng.h KM_util.cpp \
105 KM_util.h KM_xml.cpp KM_xml.h KM_tai.h KM_tai.cpp
107 # linker flags (*not* including libraries to link against) for a library
108 libkumu_la_LDFLAGS = -release @VERSION@
111 # sources for asdcp library that don't get added to a distribution
112 nodist_libasdcp_la_SOURCES = Metadata_h.tt2 Metadata_cpp.tt2 \
113 mxfgen.pl MXF_def.pl ullist.pl ULList.xml dict.xml DMS_Crypto.xml
114 # sources for asdcp library
115 libasdcp_la_SOURCES = MPEG2_Parser.cpp MPEG.cpp JP2K_Codestream_Parser.cpp \
116 JP2K_Sequence_Parser.cpp JP2K.cpp PCM_Parser.cpp Wav.cpp \
117 TimedText_Parser.cpp KLV.cpp Dict.cpp MXFTypes.cpp MXF.cpp \
118 Index.cpp Metadata.cpp AS_DCP.cpp AS_DCP_MXF.cpp AS_DCP_AES.cpp \
119 h__Reader.cpp h__Writer.cpp AS_DCP_MPEG2.cpp AS_DCP_JP2K.cpp \
120 AS_DCP_PCM.cpp AS_DCP_TimedText.cpp PCMParserList.cpp \
121 Wav.h WavFileWriter.h MXF.h Metadata.h \
122 JP2K.h AS_DCP.h AS_DCP_internal.h KLV.h MPEG.h MXFTypes.h MDD.h \
123 PCMParserList.h S12MTimecode.h MDD.cpp \
124 AS_DCP_ATMOS.cpp AS_DCP_DCData.cpp info.in \
125 DCData_ByteStream_Parser.cpp DCData_Sequence_Parser.cpp \
126 AtmosSyncChannel_Generator.cpp AtmosSyncChannel_Generator.h \
127 AtmosSyncChannel_Mixer.cpp AtmosSyncChannel_Mixer.h \
128 PCMDataProviders.cpp PCMDataProviders.h \
129 SyncEncoder.c SyncEncoder.h SyncCommon.h CRC16.c CRC16.h \
130 UUIDInformation.c UUIDInformation.h \
134 libasdcp_la_LDFLAGS = -release @VERSION@
135 # additional libraries to link against for a library
136 libasdcp_la_LIBADD = libkumu.la
137 libasdcp_la_CPPFLAGS = -DASDCP_PLATFORM=\"@host@\"
140 # sources for as-02 library
141 libas02_la_SOURCES = \
151 ST2052_TextParser.cpp \
152 AS_02_TimedText.cpp \
154 ACES_Codestream_Parser.cpp \
155 ACES_Sequence_Parser.cpp \
158 libas02_la_LDFLAGS = -release @VERSION@
159 libas02_la_LIBADD = libasdcp.la libkumu.la
160 libas02_la_CPPFLAGS = -DASDCP_PLATFORM=\"@host@\"
165 # sources for PHDR library
166 libphdr_la_SOURCES = \
168 PHDR_Sequence_Parser.cpp \
171 libphdr_la_LDFLAGS = -release @VERSION@
172 libphdr_la_LIBADD = libasdcp.la libkumu.la
173 libphdr_la_CPPFLAGS = -DASDCP_PLATFORM=\"@host@\"
176 # list of programs to be built and installed
206 # sources and linkage for CLI utilities
207 asdcp_test_SOURCES = asdcp-test.cpp
208 asdcp_test_LDADD = libasdcp.la libkumu.la
210 asdcp_wrap_SOURCES = asdcp-wrap.cpp
211 asdcp_wrap_LDADD = libasdcp.la libkumu.la
213 asdcp_unwrap_SOURCES = asdcp-unwrap.cpp
214 asdcp_unwrap_LDADD = libasdcp.la libkumu.la
216 asdcp_util_SOURCES = asdcp-util.cpp
217 asdcp_util_LDADD = libasdcp.la libkumu.la
219 asdcp_info_SOURCES = asdcp-info.cpp
220 asdcp_info_LDADD = libasdcp.la libkumu.la
222 kmfilegen_SOURCES = kmfilegen.cpp
223 kmfilegen_LDADD = libkumu.la
225 kmrandgen_SOURCES = kmrandgen.cpp
226 kmrandgen_LDADD = libkumu.la
228 kmuuidgen_SOURCES = kmuuidgen.cpp
229 kmuuidgen_LDADD = libkumu.la
231 blackwave_SOURCES = blackwave.cpp
232 blackwave_LDADD = libasdcp.la libkumu.la
234 pinkwave_SOURCES = pinkwave.cpp
235 pinkwave_LDADD = libasdcp.la libkumu.la
237 klvwalk_SOURCES = klvwalk.cpp
238 klvwalk_LDADD = libasdcp.la libkumu.la
240 wavesplit_SOURCES = wavesplit.cpp
241 wavesplit_LDADD = libasdcp.la libkumu.la
243 j2c_test_SOURCES = j2c-test.cpp
244 j2c_test_LDADD = libasdcp.la libkumu.la
246 klvsplit_SOURCES = klvsplit.cpp
247 klvsplit_LDADD = libasdcp.la libkumu.la
250 as_02_wrap_SOURCES = as-02-wrap.cpp
251 as_02_wrap_LDADD = libas02.la libasdcp.la libkumu.la
253 as_02_unwrap_SOURCES = as-02-unwrap.cpp
254 as_02_unwrap_LDADD = libas02.la libasdcp.la libkumu.la
256 as_02_info_SOURCES = as-02-info.cpp
257 as_02_info_LDADD = libas02.la libasdcp.la libkumu.la
261 phdr_wrap_SOURCES = phdr-wrap.cpp
262 phdr_wrap_LDADD = libphdr.la libas02.la libasdcp.la libkumu.la
264 phdr_unwrap_SOURCES = phdr-unwrap.cpp
265 phdr_unwrap_LDADD = libphdr.la libas02.la libasdcp.la libkumu.la
268 # list of programs that need to be compiled for use in test suite
269 check_PROGRAMS = asdcp-mem-test path-test \
270 fips-186-rng-test asdcp-version
272 check_PROGRAMS += tt-xform
275 # sources for a test program
276 # list of libraries to link against for a test program
277 asdcp_mem_test_SOURCES = asdcp-mem-test.cpp
278 asdcp_mem_test_LDADD = libasdcp.la
280 path_test_SOURCES = path-test.cpp
281 path_test_LDADD = libkumu.la
283 fips_186_rng_test_SOURCES = fips-186-rng-test.cpp
284 fips_186_rng_test_LDADD = libasdcp.la
286 asdcp_version_SOURCES = asdcp-version.cpp
287 asdcp_version_LDADD = libkumu.la
290 nodist_tt_xform_SOURCES = tt-xform.cpp TimedText_Transform.h
291 tt_xform_LDADD = libasdcp.la
295 # list of test scripts to execute during "make check"
296 TESTS = rng-tst.sh gen-tst.sh \
297 jp2k-tst.sh jp2k-crypt-tst.sh jp2k-stereo-tst.sh jp2k-stereo-crypt-tst.sh \
298 wav-tst.sh wav-crypt-tst.sh mpeg-tst.sh mpeg-crypt-tst.sh
300 # environment variables to pass to above tests
301 TESTS_ENVIRONMENT = BUILD_DIR="." TEST_FILES=../tests TEST_FILE_PREFIX=DCPd1-M1 \
302 CRYPT_KEY=70e0de21c98fbd455ad5b8042edb41a6 CRYPT_KEY_B=aa2d05475d568cd52cb3415e65cba76f \
303 JP2K_PREFIX=MM_2k_XYZ_
305 # files to include in the distribution that automake doesn't automatically include
306 EXTRA_DIST = fips-186-test-harness.pl $(TESTS) ../README.cmake ../CMakeLists.txt CMakeLists.txt dirent_win.h
309 EXTRA_DIST += $(nodist_libasdcp_la_SOURCES) $(nodist_tt_xform_SOURCES)