软讯网络 > 编程语言 > C/C++ > 精减xine
【标 题】:精减xine
【关键字】:
xine
【来 源】:http://www.cublog.cn/u/117/showart.php?id=115181
精减xine
留作参考:
[root@redhat211 minixine]# ls
audio_out demuxers libmad xine-engine
config.h input libspudec xine-utils
[root@redhat211 minixine]# ls audio_out
audio_oss_out.c audio_oss_out.h Makefile
[root@redhat211 minixine]# ls demuxers
demux.h demux_mpgaudio.c Makefile
[root@redhat211 minixine]# ls libmad
bit.c frame.c imdct_l_arm.S layer3.h stream.c timer.h
bit.h frame.h imdct_s.dat Makefile stream.h version.c
D.dat global.h layer12.c qc_table.dat synth.c version.h
fixed.c huffman.c layer12.h rq_table.dat synth.h xine_decoder.c
fixed.h huffman.h layer3.c sf_table.dat timer.c
[root@redhat211 minixine]# ls xine-engine
audio_decoder.c configfile.c lrb.h resample.h xine.c
audio_out.c configfile.h Makefile scratch.c xine_internal.h
audio_out.h demux.c metronom.c scratch.h xineintl.h
bswap.h events.c metronom.h spu_decoder.h
buffer.c events.h nvtvd.h video_decoder.c
buffer.h load_plugins.c osd.h video_out.h
buffer_types.c log resample.c video_overlay.h
[root@redhat211 minixine]# ls input
input_file.c input_plugin.h Makefile
[root@redhat211 minixine]# ls libspudec
spu_decoder_api.h
[root@redhat211 minixine]# ls xine-utils
attributes.h Makefile ppcasm_string.h utils.c xmlparser.h
compat.h memcpy.c ppcasm_string.S xine_mutex.c
cpu_accel.c monitor.c ppc_asm.tmpl xineutils.h
[root@redhat211 minixine]# more audio_out/Makefile
LIB = xineplug_ao_out_oss.so
OBJS = audio_oss_out.o
LDFLAGS += -shared -Wl,-soname -Wl,$(LIB)
CFLAGS += -DHAVE_CONFIG_H -DXINE_COMPILE -D_FILE_OFFSET_BITS=64 -I. -I.. -I../x
ine-utils -I../xine-engine -g -Wall
all: $(LIB)
make install
make clean
$(LIB): $(OBJS)
$(CC) $(LDFLAGS) $^ -o $@
install:
cp -dpR $(LIB) /usr/local/lib/xine/plugins
clean:
rm -fr *.o $(LIB)