Debian Codegraph @

libdv/Makefile.am

raw
1
2 MAINTAINERCLEANFILES = Makefile.in $(AUX_DIST)
3
4 CLEANFILES = asmoff.h
5
6 LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent
7
8 lib_LTLIBRARIES= libdv.la
9
10 if HOST_X86
11 GASMOFF=gasmoff
12 endif # HOST_X86
13
14 if HOST_X86_64
15 GASMOFF=gasmoff
16 endif # HOST_X86_64
17
18
19 noinst_PROGRAMS= dovlc testvlc testbitstream $(GASMOFF) recode reppm enctest
20
21 #
22 # If HOST_X86 is set, we build all the x86 asm stuff..
23 #
24 if HOST_X86
25
26 BUILT_SOURCES = asmoff.h
27
28 libdv_la_ASMS= vlc_x86.S quant_x86.S idct_block_mmx.S dct_block_mmx.S rgbtoyuv.S encode_x86.S transpose_x86.S
29 libdv_la_ASM_HS=asmoff.h mmx.h
30
31 gasmoff_SOURCES= gasmoff.c bitstream.h
32
33 endif # HOST_X86
34
35 #
36 # If HOST_X86_64 is set, we build all the x86_64 asm stuff..
37 #
38 if HOST_X86_64
39
40 BUILT_SOURCES = asmoff.h
41
42 libdv_la_ASMS= vlc_x86_64.S quant_x86_64.S idct_block_mmx_x86_64.S dct_block_mmx_x86_64.S rgbtoyuv_x86_64.S encode_x86_64.S transpose_x86_64.S
43 libdv_la_ASM_HS=asmoff.h mmx.h
44
45 gasmoff_SOURCES= gasmoff.c bitstream.h
46
47 endif # HOST_X86_64
48
49 pkginclude_HEADERS= dv_types.h dv.h
50
51 noinst_HEADERS= YUY2.h bitstream.h parse.h rgb.h \
52 YV12.h dct.h idct_248.h place.h vlc.h \
53 quant.h weighting.h audio.h rgb.h audio.h \
54 encode.h enc_input.h enc_audio_input.h enc_output.h \
55 headers.h util.h $(libdv_la_ASM_HS)
56
57 libdv_la_SOURCES= dv.c dct.c idct_248.c weighting.c quant.c vlc.c place.c \
58 parse.c bitstream.c YUY2.c YV12.c rgb.c audio.c util.c \
59 encode.c headers.c enc_input.c enc_audio_input.c enc_output.c \
60 $(libdv_la_ASMS)
61
62 libdv_la_LDFLAGS = -version-info 4:3:0
63
64 dovlc_SOURCES= dovlc.c
65 dovlc_LDADD= libdv.la
66
67 testvlc_SOURCES= testvlc.c
68 testvlc_LDADD=libdv.la
69
70 testbitstream_SOURCES= testbitstream.c bitstream.h
71 testbitstream_LDADD=libdv.la
72
73 recode_SOURCES=recode.c
74 recode_LDADD=libdv.la
75
76 reppm_SOURCES=reppm.c
77 reppm_LDADD=libdv.la
78
79 enctest_SOURCES=enctest.c
80 enctest_LDADD=libdv.la $(PTHREAD_LIBS)
81
82 if HOST_X86
83
84 # Automake doesn't do dependency tracking for asm
85 quant_x86.lo vlc_x86.lo: asmoff.h
86
87 asmoff.h: gasmoff
88 ./gasmoff > asmoff.h
89
90 endif
91
92 if HOST_X86_64
93
94 # Automake doesn't do dependency tracking for asm
95 quant_x86_64.lo vlc_x86_64.lo: asmoff.h
96
97 asmoff.h: gasmoff
98 ./gasmoff > asmoff.h
99
100 endif