Mercurial > mplayer.hg
annotate libmpeg2/Makefile @ 18137:75b56435f053
Make the RTP demuxer work with libdvdread 0.9.5.
ifo_types.h needs the macros UINT8_MAX UINT16_MAX and INT32_MAX, in
stdint.h, which are not defined when the language is C++ unless
__STDC_LIMIT_MACROS is defined.
patch by Emanuele Giaquinta, emanuele <<.>> giaquinta <<@>> gmail <<.>> com
author | diego |
---|---|
date | Tue, 18 Apr 2006 14:41:41 +0000 |
parents | c127ce678083 |
children | 7a9a9748e045 |
rev | line source |
---|---|
1 | 1 |
2 LIBNAME = libmpeg2.a | |
3 | |
4 include ../config.mak | |
5 | |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
6 SRCS = alloc.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
7 cpu_accel.c\ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
8 cpu_state.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
9 decode.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
10 header.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
11 idct.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
12 motion_comp.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
13 slice.c \ |
9852 | 14 |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
36
diff
changeset
|
15 OBJS = $(SRCS:.c=.o) |
12932 | 16 INCLUDE = -I. -I../libvo -I.. $(EXTRA_INC) |
27 | 17 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY |
1 | 18 |
13118 | 19 ifeq ($(TARGET_ARCH_X86),yes) |
20 SRCS += idct_mmx.c motion_comp_mmx.c | |
21 endif | |
22 | |
23 ifeq ($(TARGET_ARCH_X86_64),yes) | |
24 SRCS += idct_mmx.c motion_comp_mmx.c | |
25 endif | |
26 | |
10268
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
27 ifeq ($(TARGET_ALTIVEC),yes) |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
28 SRCS += motion_comp_altivec.c idct_altivec.c |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
29 endif |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
30 |
13018
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
31 ifeq ($(TARGET_VIS),yes) |
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
32 SRCS += motion_comp_vis.c |
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
33 endif |
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
34 |
13118 | 35 ifeq ($(TARGET_ARCH_ALPHA),yes) |
36 SRCS += idct_alpha.c motion_comp_alpha.c | |
37 endif | |
38 | |
1 | 39 .SUFFIXES: .c .o |
40 | |
41 # .PHONY: all clean | |
42 | |
43 .c.o: | |
27 | 44 $(CC) -c $(CFLAGS) -o $@ $< |
1 | 45 |
1010 | 46 $(LIBNAME): $(OBJS) |
1 | 47 $(AR) r $(LIBNAME) $(OBJS) |
12632 | 48 $(RANLIB) $(LIBNAME) |
1 | 49 |
50 all: $(LIBNAME) | |
51 | |
52 clean: | |
53 rm -f *.o *.a *~ | |
54 | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
14013
diff
changeset
|
55 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
14013
diff
changeset
|
56 rm -f .depend |
1 | 57 |
27 | 58 dep: depend |
1 | 59 |
1010 | 60 depend: |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
36
diff
changeset
|
61 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
1 | 62 |
27 | 63 # |
64 # include dependency files if they exist | |
65 # | |
66 ifneq ($(wildcard .depend),) | |
67 include .depend | |
68 endif |