git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5596 818b1a75-f10b-46b9-bf7c-635c3b92a50f
23 lines
837 B
Makefile
Executable File
23 lines
837 B
Makefile
Executable File
CCC = gcc
|
|
KERNEL_MAIN_TYPE=$(shell echo `uname -r | cut -d. -f-2 | tr "." "_"`)
|
|
export KERNEL_MAIN_TYPE
|
|
|
|
SUBVERSION=$(shell echo `grep '^SUBLEVEL =' /usr/src/linux/Makefile | sed -e 's, ,,g' | sed -e 's/SUBLEVEL=//'`)
|
|
IS_KERNEL_SUBVERSION_GREATER_THAN_20=$(shell if [ $(SUBVERSION) -ge 20 ] ; then echo true ; fi)
|
|
|
|
EXTRA_CFLAGS = -ggdb -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -I/lib/modules/$(shell uname -r)/build/include -I/lib/modules/$(shell uname -r)/build/include/asm/mach-default -include /lib/modules/$(shell uname -r)/build/include/linux/autoconf.h
|
|
|
|
EXTRA_CFLAGS += -I$(PWD)/../../DEFS
|
|
|
|
obj-m += openair_rf.o
|
|
|
|
openair_rf-objs += module_main.o irq.o fileops.o exmimo_fw.o
|
|
|
|
all:
|
|
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
|
|
|
|
clean:
|
|
rm -rf *.o
|
|
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
|
|
|