Mercurial > mplayer.hg
annotate libmpeg2/Makefile @ 13044:e99f09e67fb7
Sync with 1.123
author | rtognimp |
---|---|
date | Wed, 18 Aug 2004 15:11:57 +0000 |
parents | adb93ef6b07f |
children | 23971209fd32 |
rev | line source |
---|---|
1 | 1 |
2 LIBNAME = libmpeg2.a | |
3 | |
4 include ../config.mak | |
5 | |
12932 | 6 SRCS = alloc.c cpu_accel.c cpu_state.c decode.c header.c idct.c idct_alpha.c idct_mmx.c motion_comp.c motion_comp_alpha.c motion_comp_mmx.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 |
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 SRCS += motion_comp_altivec.c idct_altivec.c |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
14 endif |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
15 |
13018
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
16 ifeq ($(TARGET_VIS),yes) |
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
17 SRCS += motion_comp_vis.c |
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
18 endif |
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
19 |
1 | 20 .SUFFIXES: .c .o |
21 | |
22 # .PHONY: all clean | |
23 | |
24 .c.o: | |
27 | 25 $(CC) -c $(CFLAGS) -o $@ $< |
1 | 26 |
1010 | 27 $(LIBNAME): $(OBJS) |
1 | 28 $(AR) r $(LIBNAME) $(OBJS) |
12632 | 29 $(RANLIB) $(LIBNAME) |
1 | 30 |
31 all: $(LIBNAME) | |
32 | |
33 clean: | |
34 rm -f *.o *.a *~ | |
35 | |
36 distclean: | |
27 | 37 rm -f Makefile.bak *.o *.a *~ .depend |
1 | 38 |
27 | 39 dep: depend |
1 | 40 |
1010 | 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 | 43 |
27 | 44 # |
45 # include dependency files if they exist | |
46 # | |
47 ifneq ($(wildcard .depend),) | |
48 include .depend | |
49 endif |