Import jme 0.2 source
[jme.git] / Makefile
CommitLineData
d7699f87
GFT
1
2MODNAME := jme
3TEMPFILES := $(MODNAME).o $(MODNAME).mod.c $(MODNAME).mod.o Module.symvers .$(MODNAME).*.cmd .tmp_versions
4330c2f2
GFT
4EXTRA_CFLAGS += -Wall -DDEBUG
5#EXTRA_CFLAGS += -Wall
d7699f87
GFT
6
7obj-m := $(MODNAME).o
8
9ifeq (,$(BUILD_KERNEL))
10BUILD_KERNEL=$(shell uname -r)
11endif
12
13KSRC := /lib/modules/$(BUILD_KERNEL)/build
14
15all:
16 @$(MAKE) -C $(KSRC) SUBDIRS=$(shell pwd) modules
17 @rm -rf $(TEMPFILES)
18
19clean:
20 @rm -rf $(MODNAME).ko $(TEMPFILES)
21