Mercurial > mplayer.hg
annotate TOOLS/Makefile @ 24209:37c351362624
Simplify bmovl-test compilation call.
author | diego |
---|---|
date | Mon, 27 Aug 2007 10:29:25 +0000 |
parents | ded86473fad7 |
children | 87c196d3755f |
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 dump_mp4$(EXESUF) \ |
23996 | 10 modify_reg$(EXESUF) \ |
20755
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
11 movinfo$(EXESUF) \ |
b4c865e17155
Create binaries with proper executable suffix under Windows.
diego
parents:
19271
diff
changeset
|
12 subrip$(EXESUF) \ |
22629 | 13 # vivodump$(EXESUF) \ |
12962 | 14 |
15 all: $(OBJS) | |
16 | |
22745 | 17 subrip$(EXESUF): subrip.c |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17942
diff
changeset
|
18 $(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
|
19 ../unrarlib.o ../libswscale/libswscale.a ../libavutil/libavutil.a \ |
24179 | 20 ../libmpcodecs/img_format.o ../osdep/getch2.o ../osdep/timer-lx.o \ |
21 ../mp_fifo.o -ltermcap -lm | |
12962 | 22 |
22629 | 23 #FIXME: Linking is broken, help welcome. |
22745 | 24 vivodump$(EXESUF): vivodump.c |
22629 | 25 $(CC) $(CFLAGS) -o $@ $< ../mp_msg.o ../libmpdemux/libmpdemux.a \ |
24179 | 26 ../stream/stream.a ../osdep/getch2.o ../osdep/timer-lx.o \ |
27 ../mp_fifo.o -ltermcap -lm | |
12962 | 28 |
24206
5708ac3bf679
Move fastmemcpybench objects to link against into prerequisites.
diego
parents:
24181
diff
changeset
|
29 fastmemcpybench: fastmemcpybench.c ../libvo/aclib.o |
5708ac3bf679
Move fastmemcpybench objects to link against into prerequisites.
diego
parents:
24181
diff
changeset
|
30 $(CC) $(CFLAGS) -g $< -o fastmem-mmx$(EXESUF) -DNAME=\"mmx\" -DHAVE_MMX |
5708ac3bf679
Move fastmemcpybench objects to link against into prerequisites.
diego
parents:
24181
diff
changeset
|
31 $(CC) $(CFLAGS) -g $< -o fastmem-k6$(EXESUF) -DNAME=\"k6\ \" -DHAVE_MMX -DHAVE_3DNOW |
5708ac3bf679
Move fastmemcpybench objects to link against into prerequisites.
diego
parents:
24181
diff
changeset
|
32 $(CC) $(CFLAGS) -g $< -o fastmem-k7$(EXESUF) -DNAME=\"k7\ \" -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2 |
5708ac3bf679
Move fastmemcpybench objects to link against into prerequisites.
diego
parents:
24181
diff
changeset
|
33 $(CC) $(CFLAGS) -g $< -o fastmem-sse$(EXESUF) -DNAME=\"sse\" -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2 |
5708ac3bf679
Move fastmemcpybench objects to link against into prerequisites.
diego
parents:
24181
diff
changeset
|
34 $(CC) $(CFLAGS) -g $< -o fastmem2-mmx$(EXESUF) -DNAME=\"mga-mmx\" -DHAVE_MGA -DHAVE_MMX |
5708ac3bf679
Move fastmemcpybench objects to link against into prerequisites.
diego
parents:
24181
diff
changeset
|
35 $(CC) $(CFLAGS) -g $< -o fastmem2-k6$(EXESUF) -DNAME=\"mga-k6\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW |
5708ac3bf679
Move fastmemcpybench objects to link against into prerequisites.
diego
parents:
24181
diff
changeset
|
36 $(CC) $(CFLAGS) -g $< -o fastmem2-k7$(EXESUF) -DNAME=\"mga-k7\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2 |
5708ac3bf679
Move fastmemcpybench objects to link against into prerequisites.
diego
parents:
24181
diff
changeset
|
37 $(CC) $(CFLAGS) -g $< -o fastmem2-sse$(EXESUF) -DNAME=\"mga-sse\" -DHAVE_MGA -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2 |
12962 | 38 |
22737
6ce48e36dc01
Move gltest and bmovl-test into the main TOOLS directory, subdirectories
diego
parents:
22629
diff
changeset
|
39 bmovl-test$(EXESUF): bmovl-test.c |
24209 | 40 $(CC) $(CFLAGS) -o $@ $< -lSDL_image |
22737
6ce48e36dc01
Move gltest and bmovl-test into the main TOOLS directory, subdirectories
diego
parents:
22629
diff
changeset
|
41 |
22743 | 42 vfw2menc$(EXESUF): vfw2menc.c |
43 $(CC) $< -o $@ -lwinmm -lole32 | |
44 | |
22806
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
45 REAL_SRCS = $(wildcard realcodecs/*.c) |
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
46 REAL_TARGETS = $(REAL_SRCS:.c=.so.6.0) |
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
47 |
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
48 realcodecs: $(REAL_TARGETS) |
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
49 realcodecs: CFLAGS += -g |
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
50 |
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
51 %.so.6.0: %.o |
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
52 ld -shared -o $@ $< -ldl -lc |
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
53 |
22855
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
54 # FIXME: netstream linking is a mess that should be fixed properly some day. |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
55 # It does not work with either GUI, LIVE555, libavformat, cdparanoia enabled. |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
56 NETSTREAM_DEPS = ../libmpdemux/libmpdemux.a \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
57 ../stream/stream.a \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
58 ../dvdread/libdvdread.a \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
59 ../libdvdcss/libdvdcss.a \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
60 ../libavutil/libavutil.a \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
61 ../m_option.o \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
62 ../m_struct.o \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
63 ../mp_msg.o \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
64 ../osdep/libosdep.a \ |
24181 | 65 ../mp_fifo.o \ |
22855
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
66 -ltermcap -lm \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
67 |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
68 ifeq ($(TARGET_WIN32),yes) |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
69 NETSTREAM_DEPS += -lwsock32 |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
70 endif |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
71 |
22856
27db9ffe00a5
Ignore netstream and fix its compilation; remove object files on make clean.
diego
parents:
22855
diff
changeset
|
72 netstream: netstream.o $(NETSTREAM_DEPS) |
27db9ffe00a5
Ignore netstream and fix its compilation; remove object files on make clean.
diego
parents:
22855
diff
changeset
|
73 $(CC) -o $@ $^ |
22855
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
74 |
21196
9725193f1530
Add distclean target, unconditionally remove all objects on clean.
diego
parents:
20755
diff
changeset
|
75 clean distclean: |
22856
27db9ffe00a5
Ignore netstream and fix its compilation; remove object files on make clean.
diego
parents:
22855
diff
changeset
|
76 rm -f *.o *~ $(OBJS) |
27db9ffe00a5
Ignore netstream and fix its compilation; remove object files on make clean.
diego
parents:
22855
diff
changeset
|
77 rm -f fastmem-* fastmem2-* fastmemcpybench netstream |
22932 | 78 rm -f bmovl-test$(EXESUF) vfw2menc$(EXESUF) |
22806
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
79 rm -f $(REAL_TARGETS) |
24207 | 80 |
81 .PHONY: all fastmemcpybench realcodecs clean distclean |