1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 06:14:32 +00:00
mpv/vidix/drivers/Makefile
diego fffeb2311b cosmetics: Reorder some rules.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19522 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-24 01:01:37 +00:00

85 lines
1.8 KiB
Makefile

include ../../config.mak
BINDIR = $(LIBDIR)/mplayer/vidix
VIDIX_LIBS = -L../../libdha -ldha
VIDIX_LIBS_M = $(VIDIX_LIBS) -lm
VIDIX_LIBS_X = $(VIDIX_LIBS_M) $(X_LIB)
VIDIX_CFLAGS=-fPIC -I. -I.. $(OPTFLAGS)
RAGE128_CFLAGS=$(VIDIX_CFLAGS) -DRAGE128
MGA_CRTC2_CFLAGS=$(VIDIX_CFLAGS) -DCRTC2
all: 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
.SUFFIXES: .c .o
# .PHONY: all clean
%.o: %.c
$(CC) -c $(VIDIX_CFLAGS) -o $@ $<
%.so: %.o
$(CC) -shared $^ $(VIDIX_LIBS) -Wl,-soname,$@ -o $@
mga_crtc2_vid.o: mga_vid.c
$(CC) -c $(MGA_CRTC2_CFLAGS) -o $@ $<
rage128_vid.o: radeon_vid.c
$(CC) -c $(RAGE128_CFLAGS) -o $@ $<
sis_vid.so: sis_vid.o sis_bridge.o
radeon_vid.so: radeon_vid.o
$(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@
rage128_vid.so: rage128_vid.o
$(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@
cyberblade_vid.so: cyberblade_vid.o
$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
nvidia_vid.so: nvidia_vid.o
$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
mga_vid.so: mga_vid.o
$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
mga_crtc2_vid.so: mga_crtc2_vid.o
$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
unichrome_vid.so: unichrome_vid.o
$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
savage_vid.so: savage_vid.o
$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
clean:
rm -f *.o *.so *~
distclean: clean
rm -f .depend test
dep: depend
depend:
# do nothing here
install:
mkdir -p $(LIBDIR)/mplayer/vidix
-install -m 755 $(INSTALLSTRIP) -p *.so $(LIBDIR)/mplayer/vidix
uninstall:
rm -f $(LIBDIR)/mplayer/vidix/*.so
-rmdir -p $(LIBDIR)/mplayer/vidix
#
# include dependency files if they exist
#
ifneq ($(wildcard .depend),)
include .depend
endif