Import jme 0.5 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
3bf61c55 4#EXTRA_CFLAGS += -Wall -DDEBUG -DTX_DEBUG -DRX_DEBUG
8c198884 5#EXTRA_CFLAGS += -Wall -DDEBUG -DRX_DEBUG
3bf61c55
GFT
6#EXTRA_CFLAGS += -Wall -DDEBUG
7EXTRA_CFLAGS += -Wall
d7699f87
GFT
8
9obj-m := $(MODNAME).o
10
11ifeq (,$(BUILD_KERNEL))
12BUILD_KERNEL=$(shell uname -r)
13endif
14
15KSRC := /lib/modules/$(BUILD_KERNEL)/build
16
17all:
18 @$(MAKE) -C $(KSRC) SUBDIRS=$(shell pwd) modules
19 @rm -rf $(TEMPFILES)
20
21clean:
22 @rm -rf $(MODNAME).ko $(TEMPFILES)
23