annotate TOOLS/Makefile @ 22821:2c940df49d1c

OpenGL reportedly works fine on Mac OS X, see Bugzilla #784. So I'm removing the automatic disabling to give it more widespread testing.
author diego
date Thu, 29 Mar 2007 09:26:21 +0000
parents 5908689f34de
children c13fe81f024c
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) \
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
f95573b7da55 Bring vivodump closer to linking; remains broken.
diego
parents: 22628
diff changeset
15 # vivodump$(EXESUF) \
12962
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
16
17015
91d141ec88bb fastmemcpybench and cpuinfo are x86-specific.
diego
parents: 16298
diff changeset
17 ifeq ($(TARGET_ARCH_X86),yes)
20755
b4c865e17155 Create binaries with proper executable suffix under Windows.
diego
parents: 19271
diff changeset
18 OBJS += cpuinfo$(EXESUF) fastmemcpybench
17015
91d141ec88bb fastmemcpybench and cpuinfo are x86-specific.
diego
parents: 16298
diff changeset
19 endif
91d141ec88bb fastmemcpybench and cpuinfo are x86-specific.
diego
parents: 16298
diff changeset
20
12962
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
21 all: $(OBJS)
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
22
22745
db6ba6a2ba51 Add missing $(EXESUF).
diego
parents: 22743
diff changeset
23 png2raw$(EXESUF): png2raw.c
17942
f2868534283d Simplify rules with common make constructs.
diego
parents: 17941
diff changeset
24 $(CC) $< -o $@ -lpng
12962
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
25
22745
db6ba6a2ba51 Add missing $(EXESUF).
diego
parents: 22743
diff changeset
26 subrip$(EXESUF): subrip.c
17943
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17942
diff changeset
27 $(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
28 ../unrarlib.o ../libswscale/libswscale.a ../libavutil/libavutil.a \
0334e714d3fa Fix linking: libswscale depends on libavutil, verbose was multiply defined...
diego
parents: 21196
diff changeset
29 ../libmpcodecs/img_format.o ../osdep/getch2.o -ltermcap -lm
12962
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
30
22629
f95573b7da55 Bring vivodump closer to linking; remains broken.
diego
parents: 22628
diff changeset
31 #FIXME: Linking is broken, help welcome.
22745
db6ba6a2ba51 Add missing $(EXESUF).
diego
parents: 22743
diff changeset
32 vivodump$(EXESUF): vivodump.c
22629
f95573b7da55 Bring vivodump closer to linking; remains broken.
diego
parents: 22628
diff changeset
33 $(CC) $(CFLAGS) -o $@ $< ../mp_msg.o ../libmpdemux/libmpdemux.a \
f95573b7da55 Bring vivodump closer to linking; remains broken.
diego
parents: 22628
diff changeset
34 ../stream/stream.a ../osdep/getch2.o -ltermcap -lm
12962
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
35
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
36 fastmemcpybench: fastmemcpybench.c
20755
b4c865e17155 Create binaries with proper executable suffix under Windows.
diego
parents: 19271
diff changeset
37 $(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
38 $(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
39 $(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
40 $(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
41 $(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
42 $(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
43 $(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
44 $(CC) $(CFLAGS) -g $< -o fastmem2-sse$(EXESUF) ../libvo/aclib.o -DNAME=\"mga-sse\" -DHAVE_MGA -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2
12962
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
45
22737
6ce48e36dc01 Move gltest and bmovl-test into the main TOOLS directory, subdirectories
diego
parents: 22629
diff changeset
46 bmovl-test$(EXESUF): bmovl-test.c
22741
edaeb008ba93 Add explicit SDL include path. This should allow compilation even when
diego
parents: 22737
diff changeset
47 $(CC) -O3 $(EXTRA_INC) -o $@ $< -lSDL_image
22737
6ce48e36dc01 Move gltest and bmovl-test into the main TOOLS directory, subdirectories
diego
parents: 22629
diff changeset
48
22743
8f33ba879b28 Add vfw2menc to the Makefile.
diego
parents: 22741
diff changeset
49 vfw2menc$(EXESUF): vfw2menc.c
8f33ba879b28 Add vfw2menc to the Makefile.
diego
parents: 22741
diff changeset
50 $(CC) $< -o $@ -lwinmm -lole32
8f33ba879b28 Add vfw2menc to the Makefile.
diego
parents: 22741
diff changeset
51
22806
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
52 REAL_SRCS = $(wildcard realcodecs/*.c)
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
53 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
54
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
55 realcodecs: $(REAL_TARGETS)
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
56 realcodecs: CFLAGS += -g
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
57
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
58 %.so.6.0: %.o
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
59 ld -shared -o $@ $< -ldl -lc
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
60
21196
9725193f1530 Add distclean target, unconditionally remove all objects on clean.
diego
parents: 20755
diff changeset
61 clean distclean:
12962
789f9488bd0d Makefile replacement for compile script
diego
parents:
diff changeset
62 rm -f $(OBJS)
22778
674012456a76 Remove files maintained by Reimar that he no longer sees a use for.
diego
parents: 22745
diff changeset
63 rm -f fastmem-* fastmem2-* fastmemcpybench
22743
8f33ba879b28 Add vfw2menc to the Makefile.
diego
parents: 22741
diff changeset
64 rm -f cpuinfo$(EXESUF) bmovl-test$(EXESUF) vfw2menc$(EXESUF)
22806
5908689f34de Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents: 22778
diff changeset
65 rm -f $(REAL_TARGETS)