Print summary timing information at the end of encoder_example runs.
[theora.git] / examples / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 INCLUDES = -I$(top_srcdir)/include 
4
5 noinst_PROGRAMS = dump_video dump_psnr libtheora_info \
6         $(BUILDABLE_EXAMPLES)
7
8 # possible contents of BUILDABLE_EXAMPLES:
9 EXTRA_PROGRAMS = player_example encoder_example png2theora
10
11 AM_CFLAGS = $(OGG_CFLAGS)
12 LDADD = ../lib/libtheora.la $(OGG_LIBS)
13 LDADDDEC = ../lib/libtheoradec.la $(OGG_LIBS)
14 LDADDENC = ../lib/libtheoraenc.la ../lib/libtheoradec.la $(OGG_LIBS)
15
16 dump_video_SOURCES = dump_video.c
17 EXTRA_dump_video_SOURCES = getopt.c getopt1.c getopt.h
18 dump_video_LDADD = $(GETOPT_OBJS) $(LDADDDEC)
19
20 dump_psnr_SOURCES = dump_psnr.c
21 EXTRA_dump_psnr_SOURCES = getopt.c getopt1.c getopt.h
22 dump_psnr_LDADD = $(GETOPT_OBJS) $(LDADDDEC) -lm
23
24 libtheora_info_SOURCES = libtheora_info.c
25 libtheora_info_LDADD = $(LDADDENC)
26
27 player_example_SOURCES = player_example.c
28 player_example_CFLAGS = $(SDL_CFLAGS) $(OGG_CFLAGS) $(VORBIS_CFLAGS)
29 player_example_LDADD = $(LDADDDEC) $(SDL_LIBS) $(VORBIS_LIBS) $(OSS_LIBS)
30
31 encoder_example_SOURCES = encoder_example.c
32 EXTRA_encoder_example_SOURCES = getopt.c getopt1.c getopt.h
33 encoder_example_CFLAGS = $(OGG_CFLAGS) $(VORBIS_CFLAGS)
34 encoder_example_LDADD = $(GETOPT_OBJS) $(LDADDENC) $(VORBIS_LIBS) $(VORBISENC_LIBS) -lm
35
36 png2theora_SOURCES = png2theora.c
37 png2theora_CFLAGS = $(OGG_CFLAGS) $(PNG_CFLAGS)
38 png2theora_LDADD = $(GETOPT_OBJS) $(LDADDENC) $(PNG_LIBS) -lm
39
40 debug:
41         $(MAKE) all CFLAGS="@DEBUG@"
42
43 profile:
44         $(MAKE) all CFLAGS="@PROFILE@"
45