2004-10-06 16:46:35 +00:00
|
|
|
include ../config.mak
|
|
|
|
|
|
|
|
CFLAGS = -I..
|
|
|
|
|
2006-11-08 00:13:33 +00:00
|
|
|
OBJS = alaw-gen$(EXESUF) \
|
|
|
|
asfinfo$(EXESUF) \
|
|
|
|
avi-fix$(EXESUF) \
|
|
|
|
avisubdump$(EXESUF) \
|
|
|
|
dump_mp4$(EXESUF) \
|
2007-08-06 09:58:15 +00:00
|
|
|
modify_reg$(EXESUF) \
|
2006-11-08 00:13:33 +00:00
|
|
|
movinfo$(EXESUF) \
|
|
|
|
subrip$(EXESUF) \
|
2007-03-16 23:44:28 +00:00
|
|
|
# vivodump$(EXESUF) \
|
2004-08-05 00:11:54 +00:00
|
|
|
|
2007-08-27 11:58:37 +00:00
|
|
|
COMMON_LIBS = ../mp_msg.o ../mp_fifo.o ../osdep/libosdep.a -ltermcap -lm
|
|
|
|
|
2004-08-05 00:11:54 +00:00
|
|
|
all: $(OBJS)
|
|
|
|
|
2007-03-20 01:35:53 +00:00
|
|
|
subrip$(EXESUF): subrip.c
|
2007-08-27 12:00:55 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< ../vobsub.o ../spudec.o \
|
2007-03-16 23:27:46 +00:00
|
|
|
../unrarlib.o ../libswscale/libswscale.a ../libavutil/libavutil.a \
|
2007-08-27 11:58:37 +00:00
|
|
|
../libmpcodecs/img_format.o $(COMMON_LIBS)
|
2004-08-05 00:11:54 +00:00
|
|
|
|
2007-03-16 23:44:28 +00:00
|
|
|
#FIXME: Linking is broken, help welcome.
|
2007-03-20 01:35:53 +00:00
|
|
|
vivodump$(EXESUF): vivodump.c
|
2007-08-27 11:58:37 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< ../libmpdemux/libmpdemux.a \
|
|
|
|
../stream/stream.a $(COMMON_LIBS)
|
2004-08-05 00:11:54 +00:00
|
|
|
|
2007-08-27 10:51:48 +00:00
|
|
|
fastmemcpybench: fastmemcpybench.c
|
2007-08-27 12:00:55 +00:00
|
|
|
$(CC) $(CFLAGS) $< -o fastmem-mmx$(EXESUF) -DNAME=\"mmx\" -DHAVE_MMX
|
|
|
|
$(CC) $(CFLAGS) $< -o fastmem-k6$(EXESUF) -DNAME=\"k6\ \" -DHAVE_MMX -DHAVE_3DNOW
|
|
|
|
$(CC) $(CFLAGS) $< -o fastmem-k7$(EXESUF) -DNAME=\"k7\ \" -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2
|
|
|
|
$(CC) $(CFLAGS) $< -o fastmem-sse$(EXESUF) -DNAME=\"sse\" -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2
|
|
|
|
$(CC) $(CFLAGS) $< -o fastmem2-mmx$(EXESUF) -DNAME=\"mga-mmx\" -DHAVE_MGA -DHAVE_MMX
|
|
|
|
$(CC) $(CFLAGS) $< -o fastmem2-k6$(EXESUF) -DNAME=\"mga-k6\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW
|
|
|
|
$(CC) $(CFLAGS) $< -o fastmem2-k7$(EXESUF) -DNAME=\"mga-k7\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2
|
|
|
|
$(CC) $(CFLAGS) $< -o fastmem2-sse$(EXESUF) -DNAME=\"mga-sse\" -DHAVE_MGA -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2
|
2004-08-05 00:11:54 +00:00
|
|
|
|
2007-03-20 01:06:51 +00:00
|
|
|
bmovl-test$(EXESUF): bmovl-test.c
|
2007-08-27 10:29:25 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< -lSDL_image
|
2007-03-20 01:06:51 +00:00
|
|
|
|
2007-03-20 01:30:48 +00:00
|
|
|
vfw2menc$(EXESUF): vfw2menc.c
|
|
|
|
$(CC) $< -o $@ -lwinmm -lole32
|
|
|
|
|
2007-03-25 22:36:08 +00:00
|
|
|
REAL_SRCS = $(wildcard realcodecs/*.c)
|
|
|
|
REAL_TARGETS = $(REAL_SRCS:.c=.so.6.0)
|
|
|
|
|
|
|
|
realcodecs: $(REAL_TARGETS)
|
2007-08-27 12:00:55 +00:00
|
|
|
|
|
|
|
subrip fastmemcpybench realcodecs: CFLAGS += -g
|
2007-03-25 22:36:08 +00:00
|
|
|
|
|
|
|
%.so.6.0: %.o
|
|
|
|
ld -shared -o $@ $< -ldl -lc
|
|
|
|
|
2007-04-01 09:39:32 +00:00
|
|
|
# FIXME: netstream linking is a mess that should be fixed properly some day.
|
|
|
|
# It does not work with either GUI, LIVE555, libavformat, cdparanoia enabled.
|
|
|
|
NETSTREAM_DEPS = ../libmpdemux/libmpdemux.a \
|
|
|
|
../stream/stream.a \
|
|
|
|
../dvdread/libdvdread.a \
|
|
|
|
../libdvdcss/libdvdcss.a \
|
|
|
|
../libavutil/libavutil.a \
|
|
|
|
../m_option.o \
|
|
|
|
../m_struct.o \
|
2007-08-27 11:58:37 +00:00
|
|
|
$(COMMON_LIBS)
|
2007-04-01 09:39:32 +00:00
|
|
|
|
|
|
|
ifeq ($(TARGET_WIN32),yes)
|
|
|
|
NETSTREAM_DEPS += -lwsock32
|
|
|
|
endif
|
|
|
|
|
2007-04-01 09:45:26 +00:00
|
|
|
netstream: netstream.o $(NETSTREAM_DEPS)
|
|
|
|
$(CC) -o $@ $^
|
2007-04-01 09:39:32 +00:00
|
|
|
|
2006-11-25 11:29:25 +00:00
|
|
|
clean distclean:
|
2007-04-01 09:45:26 +00:00
|
|
|
rm -f *.o *~ $(OBJS)
|
|
|
|
rm -f fastmem-* fastmem2-* fastmemcpybench netstream
|
2007-04-09 11:30:26 +00:00
|
|
|
rm -f bmovl-test$(EXESUF) vfw2menc$(EXESUF)
|
2007-03-25 22:36:08 +00:00
|
|
|
rm -f $(REAL_TARGETS)
|
2007-08-27 10:13:11 +00:00
|
|
|
|
|
|
|
.PHONY: all fastmemcpybench realcodecs clean distclean
|