root/liboggz/trunk/src/tools/Makefile.am

Revision 3834, 2.7 kB (checked in by conrad, 3 weeks ago)

add dirac.c as a source file to the oggz tools, rather than a lib.
The previous would try to compile at link time, and would not include the
right -I flags, and this will fail when including config.h in dirac.c
Patch by ogg.k.ogg.k:
http://lists.xiph.org/pipermail/ogg-dev/2008-December/001319.html

Line 
1 ## Process this file with automake to produce Makefile.in
2
3 SUBDIRS = oggz-chop
4
5 EXTRA_DIST = oggz-diff
6
7 bin_SCRIPTS = oggz-diff
8
9 INCLUDES = -I$(top_builddir) -I$(top_builddir)/include \
10            -I$(top_srcdir)/include \
11            -I$(top_srcdir)/src/liboggz \
12            @OGG_CFLAGS@
13
14 OGGZDIR = ../liboggz
15 OGGZ_LIBS = $(OGGZDIR)/liboggz.la @OGG_LIBS@
16
17 COMMON_SRCS=oggz_tools.c $(srcdir)/../liboggz/dirac.c
18
19 oggz_any_programs = oggz oggz-known-codecs
20
21 if OGGZ_CONFIG_READ
22 oggz_read_programs = oggz-dump oggz-info oggz-scan
23 oggz_read_noinst_programs =
24
25 if OGGZ_CONFIG_WRITE
26 oggz_rw_programs = oggz-merge oggz-rip oggz-validate oggz-comment oggz-sort
27 oggz_rw_noinst_programs = oggz-basetime
28 endif
29
30 endif
31
32 noinst_HEADERS = oggz_tools.h oggz_tools_dirac.h skeleton.h
33
34 # Programs to build
35 bin_PROGRAMS = $(oggz_any_programs) $(oggz_read_programs) $(oggz_rw_programs)
36 noinst_PROGRAMS = $(oggz_read_noinst_programs) $(oggz_rw_noinst_programs)
37
38 oggz_SOURCES = oggz.c
39 oggz_LDADD =
40
41 oggz_known_codecs_SOURCES = oggz-known-codecs.c
42 oggz_known_codecs_LDADD = $(OGGZ_LIBS)
43
44 oggz_info_SOURCES = oggz-info.c skeleton.c $(COMMON_SRCS)
45 oggz_info_LDADD = $(OGGZ_LIBS) -lm
46
47 oggz_comment_SOURCES = oggz-comment.c $(COMMON_SRCS)
48 oggz_comment_LDADD = $(OGGZ_LIBS)
49
50 oggz_dump_SOURCES = oggz-dump.c $(COMMON_SRCS)
51 oggz_dump_LDADD = $(OGGZ_LIBS)
52
53 oggz_merge_SOURCES = oggz-merge.c $(COMMON_SRCS)
54 oggz_merge_LDADD = $(OGGZ_LIBS)
55
56 oggz_rip_SOURCES = oggz-rip.c $(COMMON_SRCS)
57 oggz_rip_LDADD = $(OGGZ_LIBS)
58
59 oggz_validate_SOURCES = oggz-validate.c $(COMMON_SRCS)
60 oggz_validate_LDADD = $(OGGZ_LIBS)
61
62 oggz_basetime_SOURCES = oggz-basetime.c $(COMMON_SRCS)
63 oggz_basetime_LDADD = $(OGGZ_LIBS)
64
65 oggz_scan_SOURCES = oggz-scan.c $(COMMON_SRCS)
66 oggz_scan_LDADD = $(OGGZ_LIBS)
67
68 oggz_sort_SOURCES = oggz-sort.c $(COMMON_SRCS)
69 oggz_sort_LDADD = $(OGGZ_LIBS)
70
71 # Add symlinks for deprecated tool names, if they are already installed;
72 # see http://lists.xiph.org/pipermail/ogg-dev/2008-July/001083.html
73 install-exec-local:
74         for p in dump diff info merge rip ; do \
75           if test -e $(exec_prefix)/bin/oggz$$p ; then \
76             $(RM) $(exec_prefix)/bin/oggz$$p ; \
77             $(LN_S) $(exec_prefix)/bin/oggz-$$p $(exec_prefix)/bin/oggz$$p ; \
78           fi ; \
79         done
80
81 # On 'make uninstall', remove the deprecated tool -- but only if it is a
82 # symlink, to keep to the policy of only uninstalling what we installed.
83 # Note that the $(LN_S) above may be substitued with "cp -p" on systems that
84 # do not have ln, so the test below will fail. As a result, 'make uninstall'
85 # will fail to uninstall the copied versions of oggzdump, oggzdiff etc. on
86 # such systems.
87 uninstall-local:
88         for p in dump diff info merge rip ; do \
89           if test -L $(exec_prefix)/bin/oggz$$p ; then \
90             $(RM) $(exec_prefix)/bin/oggz$$p ; \
91           fi ; \
92         done
Note: See TracBrowser for help on using the browser.