Mercurial > mplayer.hg
annotate TOOLS/Makefile @ 22675:2a685e4e5e3e
Merge test rules using general pattern.
author | diego |
---|---|
date | Sat, 17 Mar 2007 14:00:34 +0000 |
parents | f95573b7da55 |
children | 6ce48e36dc01 |
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 |
20755
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
5 OBJS = alaw-gen$(EXESUF) \ |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
6 asfinfo$(EXESUF) \ |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
7 avi-fix$(EXESUF) \ |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
8 avisubdump$(EXESUF) \ |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
9 bios2dump$(EXESUF) \ |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
10 dump_mp4$(EXESUF) \ |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
11 mem2dump$(EXESUF) \ |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
12 movinfo$(EXESUF) \ |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
13 png2raw$(EXESUF) \ |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
14 subrip$(EXESUF) \ |
22629 | 15 # vivodump$(EXESUF) \ |
20755
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
16 302m_convert$(EXESUF) \ |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
17 360m_convert$(EXESUF) \ |
12962 | 18 |
17015 | 19 ifeq ($(TARGET_ARCH_X86),yes) |
20755
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
20 OBJS += cpuinfo$(EXESUF) fastmemcpybench |
17015 | 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 \ |
22628
0334e714d3fa
Fix linking: libswscale depends on libavutil, verbose was multiply defined...
diego
parents:
21196
diff
changeset
|
30 ../unrarlib.o ../libswscale/libswscale.a ../libavutil/libavutil.a \ |
0334e714d3fa
Fix linking: libswscale depends on libavutil, verbose was multiply defined...
diego
parents:
21196
diff
changeset
|
31 ../libmpcodecs/img_format.o ../osdep/getch2.o -ltermcap -lm |
12962 | 32 |
22629 | 33 #FIXME: Linking is broken, help welcome. |
12962 | 34 vivodump: vivodump.c |
22629 | 35 $(CC) $(CFLAGS) -o $@ $< ../mp_msg.o ../libmpdemux/libmpdemux.a \ |
36 ../stream/stream.a ../osdep/getch2.o -ltermcap -lm | |
12962 | 37 |
38 fastmemcpybench: fastmemcpybench.c | |
20755
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
39 $(CC) $(CFLAGS) -g $< -o fastmem-mmx$(EXESUF) ../libvo/aclib.o -DNAME=\"mmx\" -DHAVE_MMX |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
40 $(CC) $(CFLAGS) -g $< -o fastmem-k6$(EXESUF) ../libvo/aclib.o -DNAME=\"k6\ \" -DHAVE_MMX -DHAVE_3DNOW |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
41 $(CC) $(CFLAGS) -g $< -o fastmem-k7$(EXESUF) ../libvo/aclib.o -DNAME=\"k7\ \" -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2 |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
42 $(CC) $(CFLAGS) -g $< -o fastmem-sse$(EXESUF) ../libvo/aclib.o -DNAME=\"sse\" -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2 |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
43 $(CC) $(CFLAGS) -g $< -o fastmem2-mmx$(EXESUF) ../libvo/aclib.o -DNAME=\"mga-mmx\" -DHAVE_MGA -DHAVE_MMX |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
44 $(CC) $(CFLAGS) -g $< -o fastmem2-k6$(EXESUF) ../libvo/aclib.o -DNAME=\"mga-k6\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
45 $(CC) $(CFLAGS) -g $< -o fastmem2-k7$(EXESUF) ../libvo/aclib.o -DNAME=\"mga-k7\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2 |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
46 $(CC) $(CFLAGS) -g $< -o fastmem2-sse$(EXESUF) ../libvo/aclib.o -DNAME=\"mga-sse\" -DHAVE_MGA -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2 |
12962 | 47 |
21196
9725193f1530
Add distclean target, unconditionally remove all objects on clean.
diego
parents:
20755
diff
changeset
|
48 clean distclean: |
12962 | 49 rm -f $(OBJS) |
17941 | 50 rm -f fastmem-* fastmem2-* |
21196
9725193f1530
Add distclean target, unconditionally remove all objects on clean.
diego
parents:
20755
diff
changeset
|
51 rm -f cpuinfo$(EXESUF) fastmemcpybench |