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) \
|
|
|
|
bios2dump$(EXESUF) \
|
|
|
|
dump_mp4$(EXESUF) \
|
|
|
|
mem2dump$(EXESUF) \
|
|
|
|
movinfo$(EXESUF) \
|
|
|
|
png2raw$(EXESUF) \
|
|
|
|
subrip$(EXESUF) \
|
2007-03-16 23:44:28 +00:00
|
|
|
# vivodump$(EXESUF) \
|
2006-11-08 00:13:33 +00:00
|
|
|
302m_convert$(EXESUF) \
|
|
|
|
360m_convert$(EXESUF) \
|
2004-08-05 00:11:54 +00:00
|
|
|
|
2005-11-18 16:08:58 +00:00
|
|
|
ifeq ($(TARGET_ARCH_X86),yes)
|
2006-11-08 00:13:33 +00:00
|
|
|
OBJS += cpuinfo$(EXESUF) fastmemcpybench
|
2005-11-18 16:08:58 +00:00
|
|
|
endif
|
|
|
|
|
2004-08-05 00:11:54 +00:00
|
|
|
all: $(OBJS)
|
|
|
|
|
2007-03-20 01:35:53 +00:00
|
|
|
png2raw$(EXESUF): png2raw.c
|
2006-03-25 10:18:18 +00:00
|
|
|
$(CC) $< -o $@ -lpng
|
2004-08-05 00:11:54 +00:00
|
|
|
|
2007-03-20 01:35:53 +00:00
|
|
|
subrip$(EXESUF): subrip.c
|
2006-03-25 10:38:37 +00:00
|
|
|
$(CC) $(CFLAGS) -g -o $@ $< ../vobsub.o ../spudec.o ../mp_msg.o \
|
2007-03-16 23:27:46 +00:00
|
|
|
../unrarlib.o ../libswscale/libswscale.a ../libavutil/libavutil.a \
|
|
|
|
../libmpcodecs/img_format.o ../osdep/getch2.o -ltermcap -lm
|
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-03-16 23:44:28 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< ../mp_msg.o ../libmpdemux/libmpdemux.a \
|
|
|
|
../stream/stream.a ../osdep/getch2.o -ltermcap -lm
|
2004-08-05 00:11:54 +00:00
|
|
|
|
|
|
|
fastmemcpybench: fastmemcpybench.c
|
2006-11-08 00:13:33 +00:00
|
|
|
$(CC) $(CFLAGS) -g $< -o fastmem-mmx$(EXESUF) ../libvo/aclib.o -DNAME=\"mmx\" -DHAVE_MMX
|
|
|
|
$(CC) $(CFLAGS) -g $< -o fastmem-k6$(EXESUF) ../libvo/aclib.o -DNAME=\"k6\ \" -DHAVE_MMX -DHAVE_3DNOW
|
|
|
|
$(CC) $(CFLAGS) -g $< -o fastmem-k7$(EXESUF) ../libvo/aclib.o -DNAME=\"k7\ \" -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2
|
|
|
|
$(CC) $(CFLAGS) -g $< -o fastmem-sse$(EXESUF) ../libvo/aclib.o -DNAME=\"sse\" -DHAVE_MMX -DHAVE_SSE -DHAVE_MMX2
|
|
|
|
$(CC) $(CFLAGS) -g $< -o fastmem2-mmx$(EXESUF) ../libvo/aclib.o -DNAME=\"mga-mmx\" -DHAVE_MGA -DHAVE_MMX
|
|
|
|
$(CC) $(CFLAGS) -g $< -o fastmem2-k6$(EXESUF) ../libvo/aclib.o -DNAME=\"mga-k6\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW
|
|
|
|
$(CC) $(CFLAGS) -g $< -o fastmem2-k7$(EXESUF) ../libvo/aclib.o -DNAME=\"mga-k7\ \" -DHAVE_MGA -DHAVE_MMX -DHAVE_3DNOW -DHAVE_MMX2
|
|
|
|
$(CC) $(CFLAGS) -g $< -o fastmem2-sse$(EXESUF) ../libvo/aclib.o -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-03-20 01:20:57 +00:00
|
|
|
$(CC) -O3 $(EXTRA_INC) -o $@ $< -lSDL_image
|
2007-03-20 01:06:51 +00:00
|
|
|
|
|
|
|
gltest: gltest.c ../osdep/timer-lx.o
|
|
|
|
$(CC) -O4 -g -o $@ $^ -lglut
|
|
|
|
|
2007-03-20 01:30:48 +00:00
|
|
|
vfw2menc$(EXESUF): vfw2menc.c
|
|
|
|
$(CC) $< -o $@ -lwinmm -lole32
|
|
|
|
|
2006-11-25 11:29:25 +00:00
|
|
|
clean distclean:
|
2004-08-05 00:11:54 +00:00
|
|
|
rm -f $(OBJS)
|
2007-03-20 01:30:48 +00:00
|
|
|
rm -f fastmem-* fastmem2-* fastmemcpybench gltest
|
|
|
|
rm -f cpuinfo$(EXESUF) bmovl-test$(EXESUF) vfw2menc$(EXESUF)
|