1
2## Makefile.am for the smpeg library
3
4bin_SCRIPTS = smpeg2-config
5
6CCLD = $(CXXLD)
7
8# The smpeg library target
9lib_LTLIBRARIES = libsmpeg2.la
10
11libsmpeg2_la_SOURCES =		\
12	MPEG.cpp		\
13	MPEGring.cpp		\
14	MPEGlist.cpp		\
15	MPEGstream.cpp		\
16	MPEGsystem.cpp		\
17	smpeg.cpp		\
18	audio/MPEGaudio.cpp	\
19	audio/bitwindow.cpp	\
20	audio/filter.cpp	\
21	audio/filter_2.cpp	\
22	audio/hufftable.cpp	\
23	audio/mpeglayer1.cpp	\
24	audio/mpeglayer2.cpp	\
25	audio/mpeglayer3.cpp	\
26	audio/mpegtable.cpp	\
27	audio/mpegtoraw.cpp	\
28	video/MPEGvideo.cpp	\
29	video/decoders.cpp	\
30	video/decoders.h	\
31	video/dither.h		\
32	video/floatdct.cpp	\
33	video/gdith.cpp		\
34	video/jrevdct.cpp	\
35	video/motionvec.cpp	\
36	video/parseblock.cpp	\
37	video/proto.h		\
38	video/readfile.cpp	\
39	video/util.cpp		\
40	video/util.h		\
41	video/video.cpp		\
42	video/video.h		\
43	video/mmxflags_asm.S	\
44	video/mmxidct_asm.S
45
46libsmpeg2includedir = $(includedir)/smpeg2
47libsmpeg2include_HEADERS =	\
48	MPEG.h			\
49	MPEGaction.h		\
50	MPEGaudio.h		\
51	MPEGerror.h		\
52	MPEGframe.h		\
53	MPEGring.h		\
54	MPEGlist.h		\
55	MPEGstream.h		\
56	MPEGsystem.h		\
57	MPEGvideo.h		\
58	smpeg.h
59
60libsmpeg2_la_LDFLAGS = 		\
61        -release $(LT_RELEASE)	\
62	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
63
64EXTRA_DIST =			\
65	CHANGES			\
66	COPYING			\
67	TODO			\
68	README			\
69	README.SDL_mixer 	\
70	plaympeg.1		\
71	VisualC.zip		\
72	smpeg2.m4		\
73	smpeg2.spec		\
74	smpeg2.spec.in		\
75	gcc-fat.sh		\
76	g++-fat.sh		\
77	acinclude		\
78	autogen.sh		\
79	audio/AUTHORS		\
80	audio/COPYING.LIB	\
81	audio/README		\
82	audio/README.LIB	\
83	video/README		\
84	video/COPYRIGHT
85
86
87video/16bit_mmx.lo: video/16bit_mmx.cpp
88	$(CXX) -c -o $@ $^ $(CXXFLAGS)
89video/32bit_mmx.lo: video/32bit_mmx.cpp
90	$(CXX) -c -o $@ $^ $(CXXFLAGS)
91
92bin_PROGRAMS = plaympeg
93
94# Sources for plaympeg
95man_MANS = plaympeg.1
96plaympeg_SOURCES = plaympeg.c
97plaympeg_LDADD = libsmpeg2.la
98
99# M4 macro file for inclusion with autoconf
100m4datadir = $(datadir)/aclocal
101m4data_DATA = smpeg2.m4
102
103# Rule to build tar-gzipped distribution package
104$(PACKAGE)-$(VERSION).tar.gz: dist
105
106# Rule to build RPM distribution package
107rpm: $(PACKAGE)-$(VERSION).tar.gz
108	cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
109	rpm -ba smpeg2.spec
110
111