include $(OPENAIR_HOME)/common/utils/Makefile.inc then use the variable $(KERNEL_DIR) this variable is set in $(OPENAIR_HOME)/common/utils/Makefile.inc as export KERNEL_DIR=/lib/modules/$(shell uname -r)/ Not fixed: card bus MIMO 1, third party SW as PMIPv6 and shell scripts git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6081 818b1a75-f10b-46b9-bf7c-635c3b92a50f
21 lines
592 B
Makefile
Executable File
21 lines
592 B
Makefile
Executable File
CCC = gcc
|
|
include $(OPENAIR_HOME)/common/utils/Makefile.inc
|
|
KERNEL_MAIN_TYPE=$(shell echo `uname -r | cut -d. -f-2 | tr "." "_"`)
|
|
export KERNEL_MAIN_TYPE
|
|
|
|
EXTRA_CFLAGS = -ggdb -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -I$(KERNEL_DIR)/build/include -I$(KERNEL_DIR)/build/include/asm/mach-default -include $(KERNEL_DIR)/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 $(KERNEL_DIR)/build M=$(PWD) modules
|
|
|
|
clean:
|
|
rm -rf *.o
|
|
make -C $(KERNEL_DIR)/build M=$(PWD) clean
|
|
|