1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00
mpv/drivers/radeon/Makefile
nick 88a0a29956 Auto-install stuff
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3245 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-01 15:22:10 +00:00

44 lines
1.1 KiB
Makefile

KERNEL_INCLUDES = /usr/src/linux/include
INCLUDES = -I$(KERNEL_INCLUDES)
# auto install
CONFIG_SHELL=/bin/sh -c
KERNEL_VERSION=$(shell $(CONFIG_SHELL) 'uname -r')
MOD_PATH_PREFIX=
MOD_PATH=$(MOD_PATH_PREFIX)/lib/modules/$(KERNEL_VERSION)/kernel/drivers/video/
#
# standard CFLAGS
#
CPPFLAGS := -D__KERNEL__ -I$(KERNEL_INCLUDES)
CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
-fomit-frame-pointer -fno-strict-aliasing -fno-common\
-D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS)
all: radeonfb.o radeon_vid.o rage128_vid.o
radeonfb.o: radeonfb.c radeon.h
$(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
radeon_vid.o: radeon_vid.c radeon.h radeon_vid.h
$(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
rage128_vid.o: radeon_vid.c radeon.h radeon_vid.h
$(CC) $(CFLAGS) -DRAGE128 $(INCLUDES) -c radeon_vid.c -o $@
dep:
clean:
rm -f *.o *~
install:
mkdir -p $(MOD_PATH)
cp radeonfb.o $(MOD_PATH)
cp radeon_vid.o $(MOD_PATH)
cp rage128_vid.o $(MOD_PATH)
depmod -a
mknod /dev/radeon_vid c 178 0
mknod /dev/rage128_vid c 178 0