1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-20 22:02:59 +00:00
mpv/vidix/drivers/Makefile
nick 75c0b3169b Embedding vidix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4031 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-01-07 09:28:22 +00:00

59 lines
1.1 KiB
Makefile

# makefile
include ../../config.mak
BINDIR = $(prefix)/lib/mplayer/vidix
RADEON_VID=radeon_vid.so
RADEON_SRCS=radeon_vid.c
RADEON_OBJS=radeon_vid.o
RADEON_LIBS=-L../../libdha -ldha -lm
RADEON_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W
RAGE128_VID=rage128_vid.so
RAGE128_SRCS=radeon_vid.c
RAGE128_OBJS=rage128_vid.o
RAGE128_LIBS=-L../../libdha -ldha
RAGE128_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W -DRAGE128
all: $(RADEON_VID) $(RAGE128_VID)
.SUFFIXES: .c .o
# .PHONY: all clean
$(RADEON_OBJS): $(RADEON_SRCS)
$(CC) -c $(RADEON_CFLAGS) -o $@ $<
$(RADEON_VID): $(RADEON_OBJS)
$(LD) $(RADEON_LIBS) -shared -soname $(RADEON_VID) -o $(RADEON_VID) $(RADEON_OBJS)
$(RAGE128_OBJS): $(RAGE128_SRCS)
$(CC) -c $(RAGE128_CFLAGS) -o $@ $<
$(RAGE128_VID): $(RAGE128_OBJS)
$(LD) $(RAGE128_LIBS) -shared -soname $(RAGE128_VID) -o $(RAGE128_VID) $(RAGE128_OBJS)
clean:
rm -f *.o *.so *~
distclean:
rm -f Makefile.bak *.o *.so test *~ .depend
dep: depend
depend:
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
install:
mkdir -p $(BINDIR)
cp *.so $(BINDIR)
#
# include dependency files if they exist
#
ifneq ($(wildcard .depend),)
include .depend
endif