annotate libmpeg2/Makefile @ 10560:11826d9f90c7

this patch fixes 1) some bugs introduced in the tuner autodetection and in the channel-parsing functions, 3) retries reading when the mplayer/mencoder don't read fast enough (sooner it exited) but especially 4) makes the stream compliant with the new, modular stream api (the one currently in CVS is not and is totally unreachable). [and maybe more, next time please include cvslog in patch! -- A'rpi] patch by Nico <nsabbi@libero.it>
author arpi
date Mon, 11 Aug 2003 00:02:46 +0000
parents f486ad4016ad
children d7ec2e2bb0da
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 LIBNAME = libmpeg2.a
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 include ../config.mak
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5
10268
f486ad4016ad libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents: 9852
diff changeset
6 SRCS = alloc.c cpu_accel.c cpu_state.c decode.c header.c idct.c idct_alpha.c idct_mlib.c idct_mmx.c motion_comp.c motion_comp_alpha.c motion_comp_mlib.c motion_comp_mmx.c slice.c
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 5515
diff changeset
7
866
91087aaea5c7 using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents: 36
diff changeset
8 OBJS = $(SRCS:.c=.o)
1680
f6d2a4bc9bb5 Enable mediaLib support for Solaris on UltraSPARC CPUs
jkeil
parents: 1234
diff changeset
9 INCLUDE = -I. -I../libvo -I.. $(EXTRA_INC) $(MLIB_INC)
27
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
10 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11
10268
f486ad4016ad libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents: 9852
diff changeset
12 ifeq ($(TARGET_ALTIVEC),yes)
f486ad4016ad libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents: 9852
diff changeset
13 ifeq ($(TARGET_OS),Darwin)
f486ad4016ad libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents: 9852
diff changeset
14 CFLAGS += -faltivec
f486ad4016ad libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents: 9852
diff changeset
15 else
f486ad4016ad libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents: 9852
diff changeset
16 CFLAGS += -maltivec -mabi=altivec
f486ad4016ad libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents: 9852
diff changeset
17 endif
f486ad4016ad libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents: 9852
diff changeset
18 SRCS += motion_comp_altivec.c idct_altivec.c
f486ad4016ad libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents: 9852
diff changeset
19 endif
f486ad4016ad libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents: 9852
diff changeset
20
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 .SUFFIXES: .c .o
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 # .PHONY: all clean
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25 .c.o:
27
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
26 $(CC) -c $(CFLAGS) -o $@ $<
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27
1010
6d3a6d42c831 dependency stuff fixed
arpi_esp
parents: 866
diff changeset
28 $(LIBNAME): $(OBJS)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 $(AR) r $(LIBNAME) $(OBJS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 all: $(LIBNAME)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 clean:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 rm -f *.o *.a *~
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 distclean:
27
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
37 rm -f Makefile.bak *.o *.a *~ .depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38
27
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
39 dep: depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40
1010
6d3a6d42c831 dependency stuff fixed
arpi_esp
parents: 866
diff changeset
41 depend:
866
91087aaea5c7 using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents: 36
diff changeset
42 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43
27
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
44 #
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
45 # include dependency files if they exist
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
46 #
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
47 ifneq ($(wildcard .depend),)
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
48 include .depend
f0f2a9174225 New dependency system
arpi_esp
parents: 1
diff changeset
49 endif