Mercurial > mplayer.hg
annotate TOOLS/Makefile @ 26355:a8fbc0224b81
Remove Win32 linker option for netstream. Other winsock using code does not
need it, it should be set from configure and the reason why it was set in
the first place has been lost in the mists of time.
author | diego |
---|---|
date | Fri, 11 Apr 2008 07:37:27 +0000 |
parents | 3e3146bd4598 |
children | edc34d083665 |
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 | 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 | 14 # vivodump$(EXESUF) \ |
12962 | 15 |
26333 | 16 COMMON_LIBS = ../mp_msg.o ../mp_fifo.o ../osdep/$(TIMER) ../osdep/$(GETCH) \ |
17 -ltermcap -lm | |
24223 | 18 |
12962 | 19 all: $(OBJS) |
20 | |
26338 | 21 bmovl-test$(EXESUF): bmovl-test.c -lSDL_image |
22 | |
26336 | 23 subrip$(EXESUF): subrip.c ../vobsub.o ../spudec.o ../unrar_exec.o \ |
24 ../libswscale/libswscale.a ../libavutil/libavutil.a $(COMMON_LIBS) | |
12962 | 25 |
26338 | 26 vfw2menc$(EXESUF): vfw2menc.c -lwinmm -lole32 |
27 | |
22629 | 28 #FIXME: Linking is broken, help welcome. |
26336 | 29 vivodump$(EXESUF): vivodump.c ../libmpdemux/libmpdemux.a $(COMMON_LIBS) |
12962 | 30 |
24212 | 31 fastmemcpybench: fastmemcpybench.c |
24224 | 32 $(CC) $(CFLAGS) $< -o fastmem-mmx$(EXESUF) -DNAME=\"mmx\" -DHAVE_MMX |
33 $(CC) $(CFLAGS) $< -o fastmem-k6$(EXESUF) -DNAME=\"k6\ \" -DHAVE_MMX -DHAVE_3DNOW | |
34 $(CC) $(CFLAGS) $< -o fastmem-k7$(EXESUF) -DNAME=\"k7\ \" -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2 | |
35 $(CC) $(CFLAGS) $< -o fastmem-sse$(EXESUF) -DNAME=\"sse\" -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2 | |
36 $(CC) $(CFLAGS) $< -o fastmem2-mmx$(EXESUF) -DNAME=\"mga-mmx\" -DHAVE_MGA -DHAVE_MMX | |
37 $(CC) $(CFLAGS) $< -o fastmem2-k6$(EXESUF) -DNAME=\"mga-k6\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW | |
38 $(CC) $(CFLAGS) $< -o fastmem2-k7$(EXESUF) -DNAME=\"mga-k7\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2 | |
39 $(CC) $(CFLAGS) $< -o fastmem2-sse$(EXESUF) -DNAME=\"mga-sse\" -DHAVE_MGA -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2 | |
12962 | 40 |
22806
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
41 REAL_SRCS = $(wildcard realcodecs/*.c) |
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
42 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
|
43 |
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
44 realcodecs: $(REAL_TARGETS) |
24224 | 45 |
26339 | 46 fastmemcpybench realcodecs: CFLAGS += -g |
22806
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 %.so.6.0: %.o |
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
49 ld -shared -o $@ $< -ldl -lc |
5908689f34de
Use the top-level TOOLS Makefile to build the Real codecs wrappers.
diego
parents:
22778
diff
changeset
|
50 |
22855
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
51 # 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
|
52 # 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
|
53 NETSTREAM_DEPS = ../libmpdemux/libmpdemux.a \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
54 ../stream/stream.a \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
55 ../dvdread/libdvdread.a \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
56 ../libdvdcss/libdvdcss.a \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
57 ../libavutil/libavutil.a \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
58 ../m_option.o \ |
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
59 ../m_struct.o \ |
24223 | 60 $(COMMON_LIBS) |
22855
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
61 |
22856
27db9ffe00a5
Ignore netstream and fix its compilation; remove object files on make clean.
diego
parents:
22855
diff
changeset
|
62 netstream: netstream.o $(NETSTREAM_DEPS) |
26335
cd660a9aefc5
cosmetics: Add CFLAGS to compilation commands everywhere.
diego
parents:
26334
diff
changeset
|
63 $(CC) $(CFLAGS) -o $@ $^ |
22855
d258dd05e0ab
Move netstream.c out of its single-file subdirectory.
diego
parents:
22846
diff
changeset
|
64 |
21196
9725193f1530
Add distclean target, unconditionally remove all objects on clean.
diego
parents:
20755
diff
changeset
|
65 clean distclean: |
22856
27db9ffe00a5
Ignore netstream and fix its compilation; remove object files on make clean.
diego
parents:
22855
diff
changeset
|
66 rm -f *.o *~ $(OBJS) |
27db9ffe00a5
Ignore netstream and fix its compilation; remove object files on make clean.
diego
parents:
22855
diff
changeset
|
67 rm -f fastmem-* fastmem2-* fastmemcpybench netstream |
22932 | 68 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
|
69 rm -f $(REAL_TARGETS) |
24207 | 70 |
71 .PHONY: all fastmemcpybench realcodecs clean distclean |