1
2## Makefile.am for the smpeg library
3
4# These are the subdirectories that are always built
5SUBDIRS = audio video
6
7bin_SCRIPTS = smpeg-config
8
9# The smpeg library target
10lib_LTLIBRARIES = libsmpeg.la
11
12libsmpeg_la_SOURCES =		\
13	MPEG.cpp		\
14	MPEGring.cpp		\
15	MPEGlist.cpp		\
16	MPEGstream.cpp		\
17	MPEGsystem.cpp		\
18	MPEGfilter.c		\
19	smpeg.cpp
20
21libsmpegincludedir = $(includedir)/smpeg
22libsmpeginclude_HEADERS =	\
23	MPEG.h			\
24	MPEGaction.h		\
25	MPEGaudio.h		\
26	MPEGerror.h		\
27	MPEGfilter.h		\
28	MPEGring.h		\
29	MPEGlist.h		\
30	MPEGstream.h		\
31	MPEGsystem.h		\
32	MPEGvideo.h		\
33	smpeg.h
34
35libsmpeg_la_LDFLAGS = 		\
36        -release $(LT_RELEASE)	\
37	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
38
39libsmpeg_la_LIBADD =		\
40	audio/libaudio.la	\
41	video/libvideo.la
42
43EXTRA_DIST =		\
44	CHANGES		\
45	COPYING		\
46	TODO		\
47	README		\
48	README.SDL_mixer \
49	plaympeg.1	\
50	gtv.1		\
51	VisualC.zip	\
52	smpeg.m4	\
53	autogen.sh
54
55# Sample MPEG players
56if HAVE_GTK
57GTK_PLAYER = gtv
58else
59GTK_PLAYER =
60endif
61if HAVE_OPENGL
62OPENGL_PLAYER = glmovie
63else
64OPENGL_PLAYER =
65endif
66bin_PROGRAMS = plaympeg $(GTK_PLAYER) $(OPENGL_PLAYER)
67
68# Sources for plaympeg
69man_MANS = plaympeg.1 gtv.1
70plaympeg_SOURCES = plaympeg.c
71plaympeg_LDADD = libsmpeg.la
72
73# Sources for gtv
74gtv_SOURCES = gtv.c gtv.h
75gtv_LDADD = @GTK_LIBS@ libsmpeg.la
76
77# Sources for glmovie
78glmovie_SOURCES = glmovie-tile.c glmovie.c glmovie.h
79glmovie_LDADD = @GL_LIBS@ libsmpeg.la
80
81# M4 macro file for inclusion with autoconf
82m4datadir = $(datadir)/aclocal
83m4data_DATA = smpeg.m4
84
85# Rule to build tar-gzipped distribution package
86$(PACKAGE)-$(VERSION).tar.gz: dist
87
88# Rule to build RPM distribution package
89rpm: $(PACKAGE)-$(VERSION).tar.gz
90	cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
91	rpm -ba smpeg.spec
92
93