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
|
2006-08-24 00:21:47 +00:00
|
|
|
VIDIX_LIBS_M = $(VIDIX_LIBS) -lm
|
|
|
|
VIDIX_LIBS_X = $(VIDIX_LIBS_M) $(X_LIB)
|
2006-08-23 14:45:29 +00:00
|
|
|
|
2007-03-14 20:19:45 +00:00
|
|
|
CFLAGS = -fPIC
|
2007-03-14 20:08:26 +00:00
|
|
|
RAGE128_CFLAGS = $(CFLAGS) -DRAGE128
|
|
|
|
MGA_CRTC2_CFLAGS = $(CFLAGS) -DCRTC2
|
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
|
|
|
|
$(CC) -c $(MGA_CRTC2_CFLAGS) -o $@ $<
|
2002-01-05 18:18:19 +00:00
|
|
|
|
2006-08-24 00:16:11 +00:00
|
|
|
rage128_vid.o: radeon_vid.c
|
2002-01-05 18:18:19 +00:00
|
|
|
$(CC) -c $(RAGE128_CFLAGS) -o $@ $<
|
|
|
|
|
2006-08-24 01:01:37 +00:00
|
|
|
sis_vid.so: sis_vid.o sis_bridge.o
|
|
|
|
|
|
|
|
radeon_vid.so: radeon_vid.o
|
2006-08-24 00:16:11 +00:00
|
|
|
rage128_vid.so: rage128_vid.o
|
2007-03-14 20:12:39 +00:00
|
|
|
radeon_vid.so rage128_vid.so:
|
2006-08-24 00:21:47 +00:00
|
|
|
$(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@
|
2002-01-05 18:18:19 +00:00
|
|
|
|
2006-08-24 01:01:37 +00:00
|
|
|
cyberblade_vid.so: cyberblade_vid.o
|
2006-08-24 00:16:11 +00:00
|
|
|
nvidia_vid.so: nvidia_vid.o
|
|
|
|
mga_vid.so: mga_vid.o
|
|
|
|
mga_crtc2_vid.so: mga_crtc2_vid.o
|
|
|
|
unichrome_vid.so: unichrome_vid.o
|
|
|
|
savage_vid.so: savage_vid.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 \
|
|
|
|
savage_vid.so:
|
2006-08-24 00:21:47 +00:00
|
|
|
$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
|
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
|