Add PCMParserList.h to list of extra exported headers.
[asdcplib.git] / src / Makefile.am
1 ## Makefile.am -- Process this file with automake to produce Makefile.in
2
3 # list of all the header files that should be installed
4 include_HEADERS = KM_error.h KM_fileio.h KM_log.h KM_memio.h KM_mutex.h \
5  KM_platform.h KM_prng.h KM_util.h KM_xml.h AS_DCP.h
6 extra_HDRS = S12MTimecode.h MDD.h Metadata.h KLV.h MXFTypes.h MXF.h Wav.h \
7  PCMParserList.h
8
9 # list of the libraries to build and install
10 lib_LTLIBRARIES = libkumu.la libasdcp.la
11 # sources for a library
12 libkumu_la_SOURCES = KM_error.h KM_fileio.cpp KM_fileio.h KM_log.cpp KM_log.h \
13  KM_memio.h KM_mutex.h KM_platform.h KM_prng.cpp KM_prng.h KM_util.cpp \
14  KM_util.h KM_xml.cpp KM_xml.h
15 # linker flags (*not* including libraries to link against) for a library
16 libkumu_la_LDFLAGS = -version-info 3:19:0
17 # sources for a library that don't get added to a distribution
18 nodist_libasdcp_la_SOURCES = Metadata_h.tt2 Metadata_cpp.tt2 \
19  mxfgen.pl MXF_def.pl ullist.pl ULList.xml dict.xml DMS_Crypto.xml
20 libasdcp_la_SOURCES = MPEG2_Parser.cpp MPEG.cpp JP2K_Codestream_Parser.cpp \
21  JP2K_Sequence_Parser.cpp JP2K.cpp PCM_Parser.cpp Wav.cpp \
22  TimedText_Parser.cpp KLV.cpp Dict.cpp MXFTypes.cpp MXF.cpp \
23  Index.cpp Metadata.cpp AS_DCP.cpp AS_DCP_MXF.cpp AS_DCP_AES.cpp \
24  h__Reader.cpp h__Writer.cpp AS_DCP_MPEG2.cpp AS_DCP_JP2K.cpp \
25  AS_DCP_PCM.cpp AS_DCP_TimedText.cpp PCMParserList.cpp \
26  Wav.h WavFileWriter.h MXF.h Metadata.h \
27  JP2K.h AS_DCP.h AS_DCP_internal.h KLV.h MPEG.h MXFTypes.h MDD.h \
28  PCMParserList.h S12MTimecode.h MDD.cpp
29 libasdcp_la_LDFLAGS = -version-info 3:19:0
30 # additional libraries to link against for a library
31 libasdcp_la_LIBADD = libkumu.la
32 libasdcp_la_CPPFLAGS=-DASDCP_PLATFORM=\"@host@\"
33 # Python extension
34 if PYTHON_USE
35 pyexecdir = @PYTHON_EXECDIR@
36 #pyexec_includedir = $(PYTHON_PREFIX)/include
37 pyexec_LTLIBRARIES = kumu.la asdcp.la
38 nodist_kumu_la_SOURCES = kumu_python.cpp kumu_python.h
39 kumu_la_CPPFLAGS = @PYTHON_CPPFLAGS@
40 kumu_la_LDFLAGS = @PYTHON_LSPEC@ -avoid-version -module
41 kumu_la_LIBADD = libkumu.la
42 nodist_asdcp_la_SOURCES = asdcp_python.cpp asdcp_python.h asdcp_python_misc.cpp \
43  asdcp_python_reader.cpp asdcp_python_writer.cpp asdcp_wrappers.h \
44  kumu_python.cpp kumu_python.h
45
46 asdcp_la_CPPFLAGS = @PYTHON_CPPFLAGS@
47 asdcp_la_LDFLAGS = @PYTHON_LSPEC@ -avoid-version -module
48 asdcp_la_LIBADD = libasdcp.la
49 #pyexec_include_HEADERS = kumu_python.h asdcp_python.h
50 endif
51
52 # list of programs to be built and installed
53 bin_PROGRAMS = asdcp-test blackwave klvwalk kmfilegen kmrandgen \
54  kmuuidgen wavesplit
55
56 # sources for a program
57 asdcp_test_SOURCES = asdcp-test.cpp
58 # list of libraries to link against for a program
59 asdcp_test_LDADD = libasdcp.la
60 kmfilegen_SOURCES = kmfilegen.cpp
61 kmfilegen_LDADD = libasdcp.la
62 kmrandgen_SOURCES = kmrandgen.cpp
63 kmrandgen_LDADD = libasdcp.la
64 kmuuidgen_SOURCES = kmuuidgen.cpp
65 kmuuidgen_LDADD = libasdcp.la
66 blackwave_SOURCES = blackwave.cpp
67 blackwave_LDADD = libasdcp.la
68 klvwalk_SOURCES = klvwalk.cpp
69 klvwalk_LDADD = libasdcp.la
70 wavesplit_SOURCES = wavesplit.cpp
71 wavesplit_LDADD = libasdcp.la
72
73 # list of programs that need to be compiled for use in test suite
74 check_PROGRAMS = asdcp-mem-test path-test jp2k-test S429-5-cgi \
75         fips-186-rng-test asdcp-version
76
77 # sources for a test program
78 asdcp_mem_test_SOURCES = asdcp-mem-test.cpp
79 # list of libraries to link against for a test program
80 asdcp_mem_test_LDADD = libasdcp.la
81 path_test_SOURCES = path-test.cpp
82 path_test_LDADD = libkumu.la
83 jp2k_test_SOURCES = jp2k-test.cpp
84 jp2k_test_LDADD = libasdcp.la
85 S429_5_cgi_SOURCES = S429-5-cgi.cpp
86 S429_5_cgi_LDADD = libasdcp.la
87 fips_186_rng_test_SOURCES = fips-186-rng-test.cpp
88 fips_186_rng_test_LDADD = libasdcp.la
89 asdcp_version_SOURCES = asdcp-version.cpp
90 asdcp_version_LDADD = libkumu.la
91
92
93 # list of test scripts to execute during "make check"
94 TESTS = rng-tst.sh gen-tst.sh \
95         jp2k-tst.sh jp2k-crypt-tst.sh jp2k-stereo-tst.sh jp2k-stereo-crypt-tst.sh \
96         wav-tst.sh wav-crypt-tst.sh mpeg-tst.sh mpeg-crypt-tst.sh
97 # environment variables to pass to above tests
98 TESTS_ENVIRONMENT = BUILD_DIR="." TEST_FILES=../tests TEST_FILE_PREFIX=DCPd1-M1 \
99         CRYPT_KEY=70e0de21c98fbd455ad5b8042edb41a6 CRYPT_KEY_B=aa2d05475d568cd52cb3415e65cba76f \
100         JP2K_PREFIX=MM_2k_XYZ_
101
102 # files to include in the distribution that automake doesn't automatically include
103 EXTRA_DIST = fips-186-test-harness.pl $(TESTS)
104
105
106 # source files that are themselves built
107 BUILT_SOURCES = Metadata.h Metadata.cpp MDD.h MDD.cpp
108 # files to be removed with "make maintainer-clean"
109 MAINTAINERCLEANFILES = Metadata.h Metadata.cpp MDD.h MDD.cpp
110
111 # build commands for built sources
112 # dependencies: $(srcdir)/ullist.pl $(srcdir)/ULList.xml $(srcdir)/dict.xml $(srcdir)/DMS_Crypto.xml
113 MDD.h:
114         $(srcdir)/ullist.pl $(srcdir)/ULList.xml $(srcdir)/dict.xml $(srcdir)/DMS_Crypto.xml > MDD.h
115 # dependencies: $(srcdir)/ullist.pl $(srcdir)/ULList.xml $(srcdir)/dict.xml $(srcdir)/DMS_Crypto.xml
116 MDD.cpp:
117         $(srcdir)/ullist.pl -s $(srcdir)/ULList.xml $(srcdir)/dict.xml $(srcdir)/DMS_Crypto.xml > MDD.cpp
118 # dependencies: $(srcdir)/Metadata_h.tt2 $(srcdir)/mxfgen.pl $(srcdir)/MXF_def.pl
119 Metadata.h:
120         $(srcdir)/mxfgen.pl $(srcdir)/MXF_def.pl $(srcdir)/Metadata_h.tt2 > Metadata.h
121 # dependencies:  Metadata.h $(srcdir)/Metadata_cpp.tt2
122 Metadata.cpp:
123         $(srcdir)/mxfgen.pl $(srcdir)/MXF_def.pl $(srcdir)/Metadata_cpp.tt2 > Metadata.cpp
124
125 extraHDRS_INSTALL = $(INSTALL_HEADER)
126 install-extra: $(extra_HDRS)
127         @$(NORMAL_INSTALL)
128         test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
129         @list='$(extra_HDRS)'; for p in $$list; do \
130                 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
131                 f=$(am__strip_dir) \
132                 echo " $(extraHDRS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
133                 $(extraHDRS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
134         done