view vidix/drivers/Makefile @ 22563:6398fe5193ef

Remove superfluous rule and variables, X_LIB does not exist any longer.
author diego
date Wed, 14 Mar 2007 20:50:48 +0000
parents cec71e2a04ad
children 91e69ec806e6
line wrap: on
line source

include ../../config.mak

SRCS_MPLAYER = $(wildcard *.c)

VIDIX_LIBS   = -L../../libdha -ldha
VIDIX_LIBS_M = $(VIDIX_LIBS) -lm

CFLAGS           = -fPIC

libs:   cyberblade_vid.so radeon_vid.so rage128_vid.so mach64_vid.so \
        nvidia_vid.so mga_vid.so mga_crtc2_vid.so pm3_vid.so \
        sis_vid.so unichrome_vid.so savage_vid.so

%.so: %.o
	$(CC) -shared $^ $(VIDIX_LIBS) -Wl,-soname,$@ -o $@

mga_crtc2_vid.o: mga_vid.c
	$(CC) -c $(CFLAGS) -DCRTC2 -o $@ $<

rage128_vid.o: radeon_vid.c
	$(CC) -c $(CFLAGS) -DRAGE128 -o $@ $<

sis_vid.so: sis_vid.o sis_bridge.o

cyberblade_vid.so: cyberblade_vid.o
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
cyberblade_vid.so nvidia_vid.so mga_vid.so mga_crtc2_vid.so unichrome_vid.so \
savage_vid.so:
	$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@

include ../../mpcommon.mak

clean::
	rm -f *.so