annotate TOOLS/Makefile @ 26101:a65168348ad5

cosmetics: reindent, detabify
author diego
date Sat, 01 Mar 2008 09:04:00 +0000
parents 2118c88fe0e1
children 701c023d18c3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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) \
25802
2118c88fe0e1 Move compare.c to TOOLS, add it to the Makefile and document it.
diego
parents: 25541
diff changeset
9 compare$(EXESUF) \
20755
b4c865e17155 Create binaries with proper executable suffix under Windows.
diego
parents: 19271
diff changeset
10 dump_mp4$(EXESUF) \
23996
f579fc609048 Added Alan Nisotas modify_reg.
cehoyos
parents: 22932
diff changeset
11 modify_reg$(EXESUF) \
20755
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 subrip$(EXESUF) \
22629
f95573b7da55 Bring vivodump closer to linking; remains broken.
diego
parents: 22628
diff changeset
14 # vivodump$(EXESUF) \
12962
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
15
24223
94cc5e5774ad Move common link libs/objects into a variable.
diego
parents: 24222
diff changeset
16 COMMON_LIBS = ../mp_msg.o ../mp_fifo.o ../osdep/libosdep.a -ltermcap -lm
94cc5e5774ad Move common link libs/objects into a variable.
diego
parents: 24222
diff changeset
17
12962
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
18 all: $(OBJS)
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
19
22745
db6ba6a2ba51 Add missing $(EXESUF).
diego
parents: 22743
diff changeset
20 subrip$(EXESUF): subrip.c
24224
3e2fc119e4f4 Simplify the addition of -g to some CFLAGS.
diego
parents: 24223
diff changeset
21 $(CC) $(CFLAGS) -o $@ $< ../vobsub.o ../spudec.o \
25541
20e00af8f426 unrarlib.o no longer exists, link against unrar_exec.o.
diego
parents: 24224
diff changeset
22 ../unrar_exec.o ../libswscale/libswscale.a ../libavutil/libavutil.a \
24223
94cc5e5774ad Move common link libs/objects into a variable.
diego
parents: 24222
diff changeset
23 ../libmpcodecs/img_format.o $(COMMON_LIBS)
12962
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
24
22629
f95573b7da55 Bring vivodump closer to linking; remains broken.
diego
parents: 22628
diff changeset
25 #FIXME: Linking is broken, help welcome.
22745
db6ba6a2ba51 Add missing $(EXESUF).
diego
parents: 22743
diff changeset
26 vivodump$(EXESUF): vivodump.c
24223
94cc5e5774ad Move common link libs/objects into a variable.
diego
parents: 24222
diff changeset
27 $(CC) $(CFLAGS) -o $@ $< ../libmpdemux/libmpdemux.a \
94cc5e5774ad Move common link libs/objects into a variable.
diego
parents: 24222
diff changeset
28 ../stream/stream.a $(COMMON_LIBS)
12962
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
29
24212
87c196d3755f Remove unnecessary fastmemcpybench prerequisite.
diego
parents: 24209
diff changeset
30 fastmemcpybench: fastmemcpybench.c
24224
3e2fc119e4f4 Simplify the addition of -g to some CFLAGS.
diego
parents: 24223
diff changeset
31 $(CC) $(CFLAGS) $< -o fastmem-mmx$(EXESUF) -DNAME=\"mmx\" -DHAVE_MMX
3e2fc119e4f4 Simplify the addition of -g to some CFLAGS.
diego
parents: 24223
diff changeset
32 $(CC) $(CFLAGS) $< -o fastmem-k6$(EXESUF) -DNAME=\"k6\ \" -DHAVE_MMX -DHAVE_3DNOW
3e2fc119e4f4 Simplify the addition of -g to some CFLAGS.
diego
parents: 24223
diff changeset
33 $(CC) $(CFLAGS) $< -o fastmem-k7$(EXESUF) -DNAME=\"k7\ \" -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2
3e2fc119e4f4 Simplify the addition of -g to some CFLAGS.
diego
parents: 24223
diff changeset
34 $(CC) $(CFLAGS) $< -o fastmem-sse$(EXESUF) -DNAME=\"sse\" -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2
3e2fc119e4f4 Simplify the addition of -g to some CFLAGS.
diego
parents: 24223
diff changeset
35 $(CC) $(CFLAGS) $< -o fastmem2-mmx$(EXESUF) -DNAME=\"mga-mmx\" -DHAVE_MGA -DHAVE_MMX
3e2fc119e4f4 Simplify the addition of -g to some CFLAGS.
diego
parents: 24223
diff changeset
36 $(CC) $(CFLAGS) $< -o fastmem2-k6$(EXESUF) -DNAME=\"mga-k6\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW
3e2fc119e4f4 Simplify the addition of -g to some CFLAGS.
diego
parents: 24223
diff changeset
37 $(CC) $(CFLAGS) $< -o fastmem2-k7$(EXESUF) -DNAME=\"mga-k7\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2
3e2fc119e4f4 Simplify the addition of -g to some CFLAGS.
diego
parents: 24223
diff changeset
38 $(CC) $(CFLAGS) $< -o fastmem2-sse$(EXESUF) -DNAME=\"mga-sse\" -DHAVE_MGA -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2
12962
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
39
22737
6ce48e36dc01 Move gltest and bmovl-test into the main TOOLS directory, subdirectories
diego
parents: 22629
diff changeset
40 bmovl-test$(EXESUF): bmovl-test.c
24209
37c351362624 Simplify bmovl-test compilation call.
diego
parents: 24207
diff changeset
41 $(CC) $(CFLAGS) -o $@ $< -lSDL_image
22737
6ce48e36dc01 Move gltest and bmovl-test into the main TOOLS directory, subdirectories
diego
parents: 22629
diff changeset
42
22743
8f33ba879b28 Add vfw2menc to the Makefile.
diego
parents: 22741
diff changeset
43 vfw2menc$(EXESUF): vfw2menc.c
8f33ba879b28 Add vfw2menc to the Makefile.
diego
parents: 22741
diff changeset
44 $(CC) $< -o $@ -lwinmm -lole32
8f33ba879b28 Add vfw2menc to the Makefile.
diego
parents: 22741
diff changeset
45
22806
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
46 REAL_SRCS = $(wildcard realcodecs/*.c)
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
47 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
48
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
49 realcodecs: $(REAL_TARGETS)
24224
3e2fc119e4f4 Simplify the addition of -g to some CFLAGS.
diego
parents: 24223
diff changeset
50
3e2fc119e4f4 Simplify the addition of -g to some CFLAGS.
diego
parents: 24223
diff changeset
51 subrip fastmemcpybench realcodecs: CFLAGS += -g
22806
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
52
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
53 %.so.6.0: %.o
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
54 ld -shared -o $@ $< -ldl -lc
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
55
22855
d258dd05e0ab Move netstream.c out of its single-file subdirectory.
diego
parents: 22846
diff changeset
56 # 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
57 # 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
58 NETSTREAM_DEPS = ../libmpdemux/libmpdemux.a \
d258dd05e0ab Move netstream.c out of its single-file subdirectory.
diego
parents: 22846
diff changeset
59 ../stream/stream.a \
d258dd05e0ab Move netstream.c out of its single-file subdirectory.
diego
parents: 22846
diff changeset
60 ../dvdread/libdvdread.a \
d258dd05e0ab Move netstream.c out of its single-file subdirectory.
diego
parents: 22846
diff changeset
61 ../libdvdcss/libdvdcss.a \
d258dd05e0ab Move netstream.c out of its single-file subdirectory.
diego
parents: 22846
diff changeset
62 ../libavutil/libavutil.a \
d258dd05e0ab Move netstream.c out of its single-file subdirectory.
diego
parents: 22846
diff changeset
63 ../m_option.o \
d258dd05e0ab Move netstream.c out of its single-file subdirectory.
diego
parents: 22846
diff changeset
64 ../m_struct.o \
24223
94cc5e5774ad Move common link libs/objects into a variable.
diego
parents: 24222
diff changeset
65 $(COMMON_LIBS)
22855
d258dd05e0ab Move netstream.c out of its single-file subdirectory.
diego
parents: 22846
diff changeset
66
d258dd05e0ab Move netstream.c out of its single-file subdirectory.
diego
parents: 22846
diff changeset
67 ifeq ($(TARGET_WIN32),yes)
d258dd05e0ab Move netstream.c out of its single-file subdirectory.
diego
parents: 22846
diff changeset
68 NETSTREAM_DEPS += -lwsock32
d258dd05e0ab Move netstream.c out of its single-file subdirectory.
diego
parents: 22846
diff changeset
69 endif
d258dd05e0ab Move netstream.c out of its single-file subdirectory.
diego
parents: 22846
diff changeset
70
22856
27db9ffe00a5 Ignore netstream and fix its compilation; remove object files on make clean.
diego
parents: 22855
diff changeset
71 netstream: netstream.o $(NETSTREAM_DEPS)
27db9ffe00a5 Ignore netstream and fix its compilation; remove object files on make clean.
diego
parents: 22855
diff changeset
72 $(CC) -o $@ $^
22855
d258dd05e0ab Move netstream.c out of its single-file subdirectory.
diego
parents: 22846
diff changeset
73
21196
9725193f1530 Add distclean target, unconditionally remove all objects on clean.
diego
parents: 20755
diff changeset
74 clean distclean:
22856
27db9ffe00a5 Ignore netstream and fix its compilation; remove object files on make clean.
diego
parents: 22855
diff changeset
75 rm -f *.o *~ $(OBJS)
27db9ffe00a5 Ignore netstream and fix its compilation; remove object files on make clean.
diego
parents: 22855
diff changeset
76 rm -f fastmem-* fastmem2-* fastmemcpybench netstream
22932
d8cfd3a1300e Move TOOLS/cpuinfo.c into the root directory.
diego
parents: 22856
diff changeset
77 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
78 rm -f $(REAL_TARGETS)
24207
ded86473fad7 Mark phony targets as such.
diego
parents: 24206
diff changeset
79
ded86473fad7 Mark phony targets as such.
diego
parents: 24206
diff changeset
80 .PHONY: all fastmemcpybench realcodecs clean distclean