summaryrefslogtreecommitdiff
path: root/drm/Makefile
blob: f79c8ea18cdd309202b71d90dddca5187a2bd2b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ifndef LINUXDIR
LINUXVER := $(shell uname -r)
LINUXDIR := $(shell if [ -e /lib/modules/$(LINUXVER)/source ]; \
		    then \
		    	echo /lib/modules/$(LINUXVER)/source; \
		    else \
		    	echo /lib/modules/$(LINUXVER)/build; \
		    fi \
	     )
endif

KBUILD_OPTS := M=$(CURDIR)/nouveau
KBUILD_OPTS += KCPPFLAGS=""

all: modules

modules:
	$(MAKE) -C $(LINUXDIR) $(KBUILD_OPTS) modules

install:
	$(MAKE) -C $(LINUXDIR) $(KBUILD_OPTS) modules_install

clean:
	$(MAKE) -C $(LINUXDIR) $(KBUILD_OPTS) clean