Import jme 0.9d 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
5DEBUG_FLAGS += -DDEBUG
b3821cc5
GFT
6#DEBUG_FLAGS += -DQUEUE_DEBUG
7#DEBUG_FLAGS += -DVLAN_DEBUG
cdcdc9eb 8DEBUG_FLAGS += -DCSUM_DEBUG
79ce639c
GFT
9#DEBUG_FLAGS += -DTX_DEBUG
10#DEBUG_FLAGS += -DRX_DEBUG
b3821cc5 11#DEBUG_FLAGS += -Wpointer-arith -Wbad-function-cast -Wsign-compare
79ce639c
GFT
12
13EXTRA_CFLAGS += -Wall -O3
14#EXTRA_CFLAGS += $(DEBUG_FLAGS)
d7699f87
GFT
15
16obj-m := $(MODNAME).o
17
18ifeq (,$(BUILD_KERNEL))
19BUILD_KERNEL=$(shell uname -r)
20endif
21
22KSRC := /lib/modules/$(BUILD_KERNEL)/build
23
24all:
25 @$(MAKE) -C $(KSRC) SUBDIRS=$(shell pwd) modules
26 @rm -rf $(TEMPFILES)
27
28clean:
29 @rm -rf $(MODNAME).ko $(TEMPFILES)
30