CCC = gcc
include $(OPENAIR_DIR)/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

