Mercurial > mplayer.hg
annotate TOOLS/Makefile @ 19514:5f48b21fb801
Redundancy removal part IV: Create pattern rules for .o and .so creation.
author | diego |
---|---|
date | Thu, 24 Aug 2006 00:50:17 +0000 |
parents | 64d82a45a05d |
children | b4c865e17155 |
rev | line source |
---|---|
13574
ae638e3c2808
Make Makefile conform to the general MPlayer style, alaw-gen added.
diego
parents:
12962
diff
changeset
|
1 include ../config.mak |
ae638e3c2808
Make Makefile conform to the general MPlayer style, alaw-gen added.
diego
parents:
12962
diff
changeset
|
2 |
ae638e3c2808
Make Makefile conform to the general MPlayer style, alaw-gen added.
diego
parents:
12962
diff
changeset
|
3 CFLAGS = -I.. |
ae638e3c2808
Make Makefile conform to the general MPlayer style, alaw-gen added.
diego
parents:
12962
diff
changeset
|
4 |
15773
7bae32bc0ed7
Avoid overly long lines to conform with the new general Makefile style.
diego
parents:
13785
diff
changeset
|
5 OBJS = alaw-gen \ |
7bae32bc0ed7
Avoid overly long lines to conform with the new general Makefile style.
diego
parents:
13785
diff
changeset
|
6 asfinfo \ |
7bae32bc0ed7
Avoid overly long lines to conform with the new general Makefile style.
diego
parents:
13785
diff
changeset
|
7 avi-fix \ |
15890 | 8 avisubdump \ |
15773
7bae32bc0ed7
Avoid overly long lines to conform with the new general Makefile style.
diego
parents:
13785
diff
changeset
|
9 bios2dump \ |
7bae32bc0ed7
Avoid overly long lines to conform with the new general Makefile style.
diego
parents:
13785
diff
changeset
|
10 dump_mp4 \ |
7bae32bc0ed7
Avoid overly long lines to conform with the new general Makefile style.
diego
parents:
13785
diff
changeset
|
11 mem2dump \ |
7bae32bc0ed7
Avoid overly long lines to conform with the new general Makefile style.
diego
parents:
13785
diff
changeset
|
12 movinfo \ |
7bae32bc0ed7
Avoid overly long lines to conform with the new general Makefile style.
diego
parents:
13785
diff
changeset
|
13 png2raw \ |
7bae32bc0ed7
Avoid overly long lines to conform with the new general Makefile style.
diego
parents:
13785
diff
changeset
|
14 subrip \ |
7bae32bc0ed7
Avoid overly long lines to conform with the new general Makefile style.
diego
parents:
13785
diff
changeset
|
15 vivodump \ |
16298 | 16 302m_convert \ |
17 360m_convert \ | |
12962 | 18 |
17015 | 19 ifeq ($(TARGET_ARCH_X86),yes) |
20 OBJS += cpuinfo fastmemcpybench | |
21 endif | |
22 | |
12962 | 23 all: $(OBJS) |
24 | |
25 png2raw: png2raw.c | |
17942 | 26 $(CC) $< -o $@ -lpng |
12962 | 27 |
28 subrip: subrip.c | |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17942
diff
changeset
|
29 $(CC) $(CFLAGS) -g -o $@ $< ../vobsub.o ../spudec.o ../mp_msg.o \ |
18863 | 30 ../unrarlib.o ../libswscale/swscale.o ../libswscale/rgb2rgb.o \ |
31 ../libswscale/yuv2rgb.o ../libmpcodecs/img_format.o -lm | |
12962 | 32 |
33 vivodump: vivodump.c | |
19271
64d82a45a05d
introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
ben
parents:
18863
diff
changeset
|
34 $(CC) $(CFLAGS) -o $@ $< ../mp_msg.o ../libmpdemux/libmpdemux.a ../stream/stream.a |
12962 | 35 |
36 fastmemcpybench: fastmemcpybench.c | |
17942 | 37 $(CC) $(CFLAGS) -g $< -o fastmem-mmx ../libvo/aclib.o -DNAME=\"mmx\" -DHAVE_MMX |
38 $(CC) $(CFLAGS) -g $< -o fastmem-k6 ../libvo/aclib.o -DNAME=\"k6\ \" -DHAVE_MMX -DHAVE_3DNOW | |
39 $(CC) $(CFLAGS) -g $< -o fastmem-k7 ../libvo/aclib.o -DNAME=\"k7\ \" -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2 | |
40 $(CC) $(CFLAGS) -g $< -o fastmem-sse ../libvo/aclib.o -DNAME=\"sse\" -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2 | |
41 $(CC) $(CFLAGS) -g $< -o fastmem2-mmx ../libvo/aclib.o -DNAME=\"mga-mmx\" -DHAVE_MGA -DHAVE_MMX | |
42 $(CC) $(CFLAGS) -g $< -o fastmem2-k6 ../libvo/aclib.o -DNAME=\"mga-k6\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW | |
43 $(CC) $(CFLAGS) -g $< -o fastmem2-k7 ../libvo/aclib.o -DNAME=\"mga-k7\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2 | |
44 $(CC) $(CFLAGS) -g $< -o fastmem2-sse ../libvo/aclib.o -DNAME=\"mga-sse\" -DHAVE_MGA -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2 | |
12962 | 45 |
46 clean: | |
47 rm -f $(OBJS) | |
17941 | 48 rm -f fastmem-* fastmem2-* |