2002-01-05 18:18:19 +00:00
|
|
|
# makefile
|
|
|
|
|
|
|
|
include ../../config.mak
|
|
|
|
|
2002-04-24 20:00:13 +00:00
|
|
|
BINDIR = $(LIBDIR)/mplayer/vidix
|
2002-01-07 09:28:22 +00:00
|
|
|
|
2002-12-21 13:06:23 +00:00
|
|
|
CYBERBLADE_VID=cyberblade_vid.so
|
|
|
|
CYBERBLADE_SRCS=cyberblade_vid.c
|
|
|
|
CYBERBLADE_OBJS=cyberblade_vid.o
|
|
|
|
CYBERBLADE_LIBS=-L../../libdha -ldha -lm
|
|
|
|
CYBERBLADE_CFLAGS=$(OPTFLAGS) -fPIC -I. -I..
|
2002-01-05 18:18:19 +00:00
|
|
|
|
|
|
|
RADEON_VID=radeon_vid.so
|
|
|
|
RADEON_SRCS=radeon_vid.c
|
|
|
|
RADEON_OBJS=radeon_vid.o
|
2004-05-31 14:15:35 +00:00
|
|
|
RADEON_LIBS=-L../../libdha -ldha -lm $(X_LIB)
|
2002-08-22 23:29:46 +00:00
|
|
|
RADEON_CFLAGS=$(OPTFLAGS) -fPIC -I. -I..
|
2002-01-05 18:18:19 +00:00
|
|
|
|
|
|
|
RAGE128_VID=rage128_vid.so
|
|
|
|
RAGE128_SRCS=radeon_vid.c
|
|
|
|
RAGE128_OBJS=rage128_vid.o
|
2004-05-31 14:15:35 +00:00
|
|
|
RAGE128_LIBS=-L../../libdha -ldha -lm $(X_LIB)
|
2002-08-22 23:29:46 +00:00
|
|
|
RAGE128_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -DRAGE128
|
2002-01-05 18:18:19 +00:00
|
|
|
|
2002-05-31 23:17:43 +00:00
|
|
|
PM3_VID=pm3_vid.so
|
|
|
|
PM3_SRCS=pm3_vid.c
|
|
|
|
PM3_OBJS=pm3_vid.o
|
|
|
|
PM3_LIBS=-L../../libdha -ldha
|
2002-12-21 13:06:23 +00:00
|
|
|
PM3_CFLAGS=$(OPTFLAGS) -fPIC -I. -I..
|
2002-05-31 23:17:43 +00:00
|
|
|
|
2002-02-13 08:59:23 +00:00
|
|
|
MACH64_VID=mach64_vid.so
|
|
|
|
MACH64_SRCS=mach64_vid.c
|
|
|
|
MACH64_OBJS=mach64_vid.o
|
|
|
|
MACH64_LIBS=-L../../libdha -ldha
|
2002-08-22 23:29:46 +00:00
|
|
|
MACH64_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -DRAGE128
|
2002-02-13 08:59:23 +00:00
|
|
|
|
2002-01-13 11:39:06 +00:00
|
|
|
MGA_VID=mga_vid.so
|
|
|
|
MGA_SRCS=mga_vid.c
|
|
|
|
MGA_OBJS=mga_vid.o
|
|
|
|
MGA_LIBS=-L../../libdha -ldha -lm
|
2002-12-21 13:06:23 +00:00
|
|
|
MGA_CFLAGS=$(OPTFLAGS) -fPIC -I. -I..
|
2002-01-13 11:39:06 +00:00
|
|
|
|
2002-01-13 16:54:32 +00:00
|
|
|
MGA_CRTC2_VID=mga_crtc2_vid.so
|
|
|
|
MGA_CRTC2_SRCS=mga_vid.c
|
|
|
|
MGA_CRTC2_OBJS=mga_crtc2_vid.o
|
|
|
|
MGA_CRTC2_LIBS=-L../../libdha -ldha -lm
|
2002-08-22 23:29:46 +00:00
|
|
|
MGA_CRTC2_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -DCRTC2
|
2002-01-13 16:54:32 +00:00
|
|
|
|
2003-09-27 21:36:01 +00:00
|
|
|
NVIDIA_VID=nvidia_vid.so
|
|
|
|
NVIDIA_SRCS=nvidia_vid.c
|
|
|
|
NVIDIA_OBJS=nvidia_vid.o
|
|
|
|
NVIDIA_LIBS=-L../../libdha -ldha -lm
|
|
|
|
NVIDIA_CFLAGS=$(OPTFLAGS) -fPIC -I. -I..
|
|
|
|
|
2003-10-07 23:12:16 +00:00
|
|
|
SIS_VID=sis_vid.so
|
|
|
|
SIS_SRCS=sis_vid.c sis_bridge.c
|
|
|
|
SIS_OBJS=sis_vid.o sis_bridge.o
|
|
|
|
SIS_LIBS=-L../../libdha -ldha
|
|
|
|
SIS_CFLAGS=$(OPTFLAGS) -fPIC -I. -I..
|
|
|
|
|
2004-10-10 19:22:38 +00:00
|
|
|
UNICHROME_VID=unichrome_vid.so
|
|
|
|
UNICHROME_SRCS=unichrome_vid.c
|
|
|
|
UNICHROME_OBJS=unichrome_vid.o
|
|
|
|
UNICHROME_LIBS=-L../../libdha -ldha -lm
|
|
|
|
UNICHROME_CFLAGS=$(OPTFLAGS) -fPIC -I. -I..
|
|
|
|
|
2004-12-21 17:09:44 +00:00
|
|
|
SAVAGE_VID=savage_vid.so
|
|
|
|
SAVAGE_SRCS=savage_vid.c
|
|
|
|
SAVAGE_OBJS=savage_vid.o
|
|
|
|
SAVAGE_LIBS=-L../../libdha -ldha -lm
|
|
|
|
SAVAGE_CFLAGS=$(OPTFLAGS) -fPIC -I. -I..
|
|
|
|
|
|
|
|
all: $(CYBERBLADE_VID) $(RADEON_VID) $(RAGE128_VID) $(MACH64_VID) $(NVIDIA_VID) $(GENFB_VID) $(MGA_VID) $(MGA_CRTC2_VID) $(PM3_VID) $(SIS_VID) $(UNICHROME_VID) $(SAVAGE_VID)
|
2002-01-05 18:18:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
2002-12-21 13:06:23 +00:00
|
|
|
$(CYBERBLADE_OBJS): $(CYBERBLADE_SRCS)
|
|
|
|
$(CC) -c $(CYBERBLADE_CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(CYBERBLADE_VID): $(CYBERBLADE_OBJS)
|
2003-03-21 16:09:31 +00:00
|
|
|
$(CC) -shared $(CYBERBLADE_OBJS) $(CYBERBLADE_LIBS) -Wl,-soname,$(CYBERBLADE_VID) -o $(CYBERBLADE_VID)
|
2002-12-21 13:06:23 +00:00
|
|
|
|
2002-05-31 23:17:43 +00:00
|
|
|
$(PM3_OBJS): $(PM3_SRCS)
|
|
|
|
$(CC) -c $(PM3_CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(PM3_VID): $(PM3_OBJS)
|
2003-03-21 16:09:31 +00:00
|
|
|
$(CC) -shared $(PM3_OBJS) $(PM3_LIBS) -Wl,-soname,$(PM3_VID) -o $(PM3_VID)
|
2002-05-31 23:17:43 +00:00
|
|
|
|
2002-01-05 18:18:19 +00:00
|
|
|
$(RADEON_OBJS): $(RADEON_SRCS)
|
|
|
|
$(CC) -c $(RADEON_CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(RADEON_VID): $(RADEON_OBJS)
|
2003-03-21 16:09:31 +00:00
|
|
|
$(CC) -shared $(RADEON_OBJS) $(RADEON_LIBS) -Wl,-soname,$(RADEON_VID) -o $(RADEON_VID)
|
2002-01-05 18:18:19 +00:00
|
|
|
|
|
|
|
$(RAGE128_OBJS): $(RAGE128_SRCS)
|
|
|
|
$(CC) -c $(RAGE128_CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(RAGE128_VID): $(RAGE128_OBJS)
|
2003-03-21 16:09:31 +00:00
|
|
|
$(CC) -shared $(RAGE128_OBJS) $(RAGE128_LIBS) -Wl,-soname,$(RAGE128_VID) -o $(RAGE128_VID)
|
2002-01-05 18:18:19 +00:00
|
|
|
|
2002-02-13 08:59:23 +00:00
|
|
|
$(MACH64_OBJS): $(MACH64_SRCS)
|
|
|
|
$(CC) -c $(MACH64_CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(MACH64_VID): $(MACH64_OBJS)
|
2003-03-21 16:09:31 +00:00
|
|
|
$(CC) -shared $(MACH64_OBJS) $(MACH64_LIBS) -Wl,-soname,$(MACH64_VID) -o $(MACH64_VID)
|
2002-02-13 08:59:23 +00:00
|
|
|
|
2002-01-13 11:39:06 +00:00
|
|
|
$(NVIDIA_OBJS): $(NVIDIA_SRCS)
|
|
|
|
$(CC) -c $(NVIDIA_CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(NVIDIA_VID): $(NVIDIA_OBJS)
|
2003-03-21 16:09:31 +00:00
|
|
|
$(CC) -shared $(NVIDIA_OBJS) $(NVIDIA_LIBS) -Wl,-soname,$(NVIDIA_VID) -o $(NVIDIA_VID)
|
2002-01-13 11:39:06 +00:00
|
|
|
|
|
|
|
$(GENFB_OBJS): $(GENFB_SRCS)
|
|
|
|
$(CC) -c $(GENFB_CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(GENFB_VID): $(GENFB_OBJS)
|
2003-03-21 16:09:31 +00:00
|
|
|
$(CC) -shared $(GENFB_OBJS) $(GENFB_LIBS) -Wl,-soname,$(GENFB_VID) -o $(GENFB_VID)
|
2002-01-13 11:39:06 +00:00
|
|
|
|
|
|
|
$(MGA_OBJS): $(MGA_SRCS)
|
|
|
|
$(CC) -c $(MGA_CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(MGA_VID): $(MGA_OBJS)
|
2003-03-21 16:09:31 +00:00
|
|
|
$(CC) -shared $(MGA_OBJS) $(MGA_LIBS) -Wl,-soname,$(MGA_VID) -o $(MGA_VID)
|
2002-01-13 11:39:06 +00:00
|
|
|
|
2002-01-13 16:54:32 +00:00
|
|
|
$(MGA_CRTC2_OBJS): $(MGA_CRTC2_SRCS)
|
|
|
|
$(CC) -c $(MGA_CRTC2_CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(MGA_CRTC2_VID): $(MGA_CRTC2_OBJS)
|
2003-03-21 16:09:31 +00:00
|
|
|
$(CC) -shared $(MGA_CRTC2_OBJS) $(MGA_CRTC2_LIBS) -Wl,-soname,$(MGA_CRTC2_VID) -o $(MGA_CRTC2_VID)
|
2002-01-13 16:54:32 +00:00
|
|
|
|
2003-10-07 23:12:16 +00:00
|
|
|
$(SIS_OBJS): $(SIS_SRCS)
|
|
|
|
$(CC) -c $(SIS_CFLAGS) -o $@ $(basename $@).c
|
|
|
|
|
|
|
|
$(SIS_VID): $(SIS_OBJS)
|
2003-10-22 16:45:33 +00:00
|
|
|
$(CC) -shared $(SIS_OBJS) $(SIS_LIBS) -Wl,-soname,$(SIS_VID) -o $(SIS_VID)
|
2003-10-07 23:12:16 +00:00
|
|
|
|
2004-10-10 19:22:38 +00:00
|
|
|
$(UNICHROME_OBJS): $(UNICHROME_SRCS)
|
|
|
|
$(CC) -c $(UNICHROME_CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(UNICHROME_VID): $(UNICHROME_OBJS)
|
|
|
|
$(CC) -shared $(UNICHROME_OBJS) $(UNICHROME_LIBS) -Wl,-soname,$(UNICHROME_VID) -o $(UNICHROME_VID)
|
|
|
|
|
2004-12-27 18:11:06 +00:00
|
|
|
$(SAVAGE_OBJS): $(SAVAGE_SRCS)
|
|
|
|
$(CC) -c $(SAVAGE_CFLAGS) -o $@ $<
|
|
|
|
|
2004-12-21 17:09:44 +00:00
|
|
|
$(SAVAGE_VID): $(SAVAGE_OBJS)
|
|
|
|
$(CC) -shared $(SAVAGE_OBJS) $(SAVAGE_LIBS) -Wl,-soname,$(SAVAGE_VID) -o $(SAVAGE_VID)
|
|
|
|
|
2002-01-05 18:18:19 +00:00
|
|
|
clean:
|
|
|
|
rm -f *.o *.so *~
|
|
|
|
|
2006-01-27 00:06:42 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f .depend test
|
2002-01-05 18:18:19 +00:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend:
|
2002-05-31 23:17:43 +00:00
|
|
|
# do nothing here
|
2002-01-05 18:18:19 +00:00
|
|
|
|
|
|
|
install:
|
2002-08-16 22:01:57 +00:00
|
|
|
mkdir -p $(LIBDIR)/mplayer/vidix
|
2006-01-03 00:24:17 +00:00
|
|
|
-install -m 755 $(INSTALLSTRIP) -p *.so $(LIBDIR)/mplayer/vidix
|
2002-05-31 23:17:43 +00:00
|
|
|
uninstall:
|
2002-08-16 22:01:57 +00:00
|
|
|
rm -f $(LIBDIR)/mplayer/vidix/*.so
|
|
|
|
rmdir -p --ignore-fail-on-non-empty $(LIBDIR)/mplayer/vidix
|
2002-05-31 23:17:43 +00:00
|
|
|
|
2002-01-05 18:18:19 +00:00
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|