Import jme 1.0.2-backport source
[jme.git] / Makefile
CommitLineData
d7699f87
GFT
1
2MODNAME := jme
79ce639c
GFT
3TEMPFILES := $(MODNAME).o $(MODNAME).mod.c $(MODNAME).mod.o Module.symvers .$(MODNAME).*.cmd .tmp_versions modules.order
4
79ce639c 5EXTRA_CFLAGS += -Wall -O3
cd0ff491
GFT
6#EXTRA_CFLAGS += -DTX_DEBUG
7#EXTRA_CFLAGS += -DREG_DEBUG
d7699f87
GFT
8
9obj-m := $(MODNAME).o
10
11ifeq (,$(BUILD_KERNEL))
12BUILD_KERNEL=$(shell uname -r)
13endif
14
cd0ff491 15KSRC ?= /lib/modules/$(BUILD_KERNEL)/build
d7699f87
GFT
16
17all:
18 @$(MAKE) -C $(KSRC) SUBDIRS=$(shell pwd) modules
19 @rm -rf $(TEMPFILES)
20
cd0ff491
GFT
21checkstack:
22 $(MAKE) -C $(KSRC) SUBDIRS=$(shell pwd) modules
23 objdump -d $(obj-m) | perl $(KSRC)/scripts/checkstack.pl i386
24 @rm -rf $(TEMPFILES)
25
26namespacecheck:
27 $(MAKE) -C $(KSRC) SUBDIRS=$(shell pwd) modules
28 perl $(KSRC)/scripts/namespace.pl
29 @rm -rf $(TEMPFILES)
30
d7699f87
GFT
31clean:
32 @rm -rf $(MODNAME).ko $(TEMPFILES)
33