summaryrefslogtreecommitdiff
path: root/Makefile
blob: c6f4c8253ce82b34360f34498e8c15515d7e86bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ifneq ($(KERNELRELEASE),)
agpgart-y := backend.o frontend.o generic.o isoch.o 

obj-$(CONFIG_AGP)		+= agpgart.o
obj-$(CONFIG_AGP_INTEL)		+= intel-agp.o
obj-$(CONFIG_AGP_INTEL_MCH)	+= intel-agp.o
else
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

default:
	$(CC) -I. -o testgart testgart.c
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
	rm -rf *.o *.ko *.mod.c testgart .*.cmd .tmp_versions

install: FORCE
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install	
endif

FORCE: