Mercurial > mplayer.hg
annotate libmpeg2/Makefile @ 16911:a3d705105e01
Enabled OSD localization / moved msgs to help/help_mp-en.h
author | ptt |
---|---|
date | Sat, 05 Nov 2005 01:27:38 +0000 |
parents | 540512f82d0d |
children | ce1ba8fd57e7 |
rev | line source |
---|---|
1 | 1 |
2 LIBNAME = libmpeg2.a | |
3 | |
4 include ../config.mak | |
5 | |
14013 | 6 SRCS = alloc.c cpu_accel.c cpu_state.c decode.c header.c idct.c motion_comp.c slice.c |
9852 | 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) |
12932 | 9 INCLUDE = -I. -I../libvo -I.. $(EXTRA_INC) |
27 | 10 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY |
1 | 11 |
13118 | 12 ifeq ($(TARGET_ARCH_X86),yes) |
13 SRCS += idct_mmx.c motion_comp_mmx.c | |
14 endif | |
15 | |
16 ifeq ($(TARGET_ARCH_X86_64),yes) | |
17 SRCS += idct_mmx.c motion_comp_mmx.c | |
18 endif | |
19 | |
10268
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
20 ifeq ($(TARGET_ALTIVEC),yes) |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
21 SRCS += motion_comp_altivec.c idct_altivec.c |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
22 endif |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
23 |
13018
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
24 ifeq ($(TARGET_VIS),yes) |
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
25 SRCS += motion_comp_vis.c |
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
26 endif |
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
27 |
13118 | 28 ifeq ($(TARGET_ARCH_ALPHA),yes) |
29 SRCS += idct_alpha.c motion_comp_alpha.c | |
30 endif | |
31 | |
1 | 32 .SUFFIXES: .c .o |
33 | |
34 # .PHONY: all clean | |
35 | |
36 .c.o: | |
27 | 37 $(CC) -c $(CFLAGS) -o $@ $< |
1 | 38 |
1010 | 39 $(LIBNAME): $(OBJS) |
1 | 40 $(AR) r $(LIBNAME) $(OBJS) |
12632 | 41 $(RANLIB) $(LIBNAME) |
1 | 42 |
43 all: $(LIBNAME) | |
44 | |
45 clean: | |
46 rm -f *.o *.a *~ | |
47 | |
48 distclean: | |
27 | 49 rm -f Makefile.bak *.o *.a *~ .depend |
1 | 50 |
27 | 51 dep: depend |
1 | 52 |
1010 | 53 depend: |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
36
diff
changeset
|
54 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
1 | 55 |
27 | 56 # |
57 # include dependency files if they exist | |
58 # | |
59 ifneq ($(wildcard .depend),) | |
60 include .depend | |
61 endif |