2002-01-05 18:18:19 +00:00
|
|
|
include ../../config.mak
|
|
|
|
|
2007-03-14 20:19:45 +00:00
|
|
|
SRCS_MPLAYER = $(wildcard *.c)
|
2007-03-14 20:08:26 +00:00
|
|
|
VIDIX_LIBS = -L../../libdha -ldha
|
2007-03-14 22:20:40 +00:00
|
|
|
CFLAGS = -fPIC
|
2002-01-13 16:54:32 +00:00
|
|
|
|
2007-03-14 20:17:01 +00:00
|
|
|
libs: cyberblade_vid.so radeon_vid.so rage128_vid.so mach64_vid.so \
|
2006-08-24 00:16:11 +00:00
|
|
|
nvidia_vid.so mga_vid.so mga_crtc2_vid.so pm3_vid.so \
|
|
|
|
sis_vid.so unichrome_vid.so savage_vid.so
|
2002-01-05 18:18:19 +00:00
|
|
|
|
2006-08-24 00:50:17 +00:00
|
|
|
%.so: %.o
|
2006-08-24 00:54:52 +00:00
|
|
|
$(CC) -shared $^ $(VIDIX_LIBS) -Wl,-soname,$@ -o $@
|
2002-05-31 23:17:43 +00:00
|
|
|
|
2006-08-24 01:01:37 +00:00
|
|
|
mga_crtc2_vid.o: mga_vid.c
|
2007-03-14 20:27:46 +00:00
|
|
|
$(CC) -c $(CFLAGS) -DCRTC2 -o $@ $<
|
2002-01-05 18:18:19 +00:00
|
|
|
|
2006-08-24 00:16:11 +00:00
|
|
|
rage128_vid.o: radeon_vid.c
|
2007-03-14 20:27:46 +00:00
|
|
|
$(CC) -c $(CFLAGS) -DRAGE128 -o $@ $<
|
2002-01-05 18:18:19 +00:00
|
|
|
|
2006-08-24 01:01:37 +00:00
|
|
|
sis_vid.so: sis_vid.o sis_bridge.o
|
|
|
|
|
2007-03-14 20:12:39 +00:00
|
|
|
cyberblade_vid.so nvidia_vid.so mga_vid.so mga_crtc2_vid.so unichrome_vid.so \
|
2007-03-14 20:51:46 +00:00
|
|
|
savage_vid.so: VIDIX_LIBS += -lm
|
2004-12-21 17:09:44 +00:00
|
|
|
|
2007-03-14 20:19:45 +00:00
|
|
|
include ../../mpcommon.mak
|
2007-03-14 20:03:07 +00:00
|
|
|
|
2007-03-14 20:19:45 +00:00
|
|
|
clean::
|
|
|
|
rm -f *.so
|