mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 17:12:36 +00:00
8d36755d23
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2005 b3059339-0415-0410-9bf9-f77b7e298cf2
29 lines
604 B
Makefile
29 lines
604 B
Makefile
KERNEL_INCLUDES = /usr/src/linux/include
|
|
INCLUDES = -I$(KERNEL_INCLUDES)
|
|
|
|
#
|
|
# 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
|
|
|
|
radeonfb.o: radeonfb.c radeon.h
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
|
|
|
|
dep:
|
|
|
|
clean:
|
|
rm -f *.o *~
|
|
|
|
install:
|
|
@echo Please copy *.o files to '/lib/modules/LINUX_VER/kernel/drivers/video' folder
|
|
|