2002-01-05 18:18:19 +00:00
|
|
|
|
|
|
|
include ../../config.mak
|
|
|
|
|
2006-08-23 14:45:29 +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-10-23 10:02:21 +00:00
|
|
|
VIDIX_CFLAGS = -fPIC -I. -I.. $(OPTFLAGS)
|
2006-08-23 14:45:29 +00:00
|
|
|
|
|
|
|
RAGE128_CFLAGS=$(VIDIX_CFLAGS) -DRAGE128
|
|
|
|
MGA_CRTC2_CFLAGS=$(VIDIX_CFLAGS) -DCRTC2
|
2002-01-13 16:54:32 +00:00
|
|
|
|
2006-08-24 00:16:11 +00:00
|
|
|
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
|
2002-01-05 18:18:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
2006-08-24 00:50:17 +00:00
|
|
|
%.o: %.c
|
2006-08-23 14:45:29 +00:00
|
|
|
$(CC) -c $(VIDIX_CFLAGS) -o $@ $<
|
2002-12-21 13:06:23 +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
|
|
|
|
$(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@
|
|
|
|
|
2006-08-24 00:16:11 +00:00
|
|
|
rage128_vid.so: rage128_vid.o
|
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
|
|
|
|
$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
|
|
|
|
|
2006-08-24 00:16:11 +00:00
|
|
|
nvidia_vid.so: nvidia_vid.o
|
2006-08-24 00:21:47 +00:00
|
|
|
$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
|
2002-01-13 11:39:06 +00:00
|
|
|
|
2006-08-24 00:16:11 +00:00
|
|
|
mga_vid.so: mga_vid.o
|
2006-08-24 00:21:47 +00:00
|
|
|
$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
|
2002-01-13 11:39:06 +00:00
|
|
|
|
2006-08-24 00:16:11 +00:00
|
|
|
mga_crtc2_vid.so: mga_crtc2_vid.o
|
2006-08-24 00:21:47 +00:00
|
|
|
$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
|
2002-01-13 16:54:32 +00:00
|
|
|
|
2006-08-24 00:16:11 +00:00
|
|
|
unichrome_vid.so: unichrome_vid.o
|
2006-08-24 00:21:47 +00:00
|
|
|
$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
|
2004-10-10 19:22:38 +00:00
|
|
|
|
2006-08-24 00:16:11 +00:00
|
|
|
savage_vid.so: savage_vid.o
|
2006-08-24 00:21:47 +00:00
|
|
|
$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
|
2004-12-21 17:09:44 +00:00
|
|
|
|
2002-01-05 18:18:19 +00:00
|
|
|
clean:
|
|
|
|
rm -f *.o *.so *~
|
|
|
|
|
2006-01-27 00:06:42 +00:00
|
|
|
distclean: clean
|
2006-11-25 01:28:49 +00:00
|
|
|
rm -f .depend
|
2002-01-05 18:18:19 +00:00
|
|
|
|
2006-11-20 11:18:01 +00:00
|
|
|
dep depend:
|
2002-05-31 23:17:43 +00:00
|
|
|
# do nothing here
|
2002-01-05 18:18:19 +00:00
|
|
|
|
2007-02-27 17:04:46 +00:00
|
|
|
-include .depend
|