+# Begin of OCERA framework header
+ifdef SUBDIRS
+SUBDIRS =
+endif
+ifneq ($(wildcard ../Standalone.mk),)
+# Standalone make outside of OCERA framework
+
+all : default
+
+else
+# Build in structure of OCERA framework
+
+ifneq ($(wildcard ../../../../../ocera.mk),)
+ifndef TOPDIR
+include ../../../../../ocera.mk
+else
+LINUX_DIR = ../../../../../kernel/linux/
+endif
+else
+all:
+ @echo -e "\nTo build LinCAN driver for OCERA framework, ocera.mk file have"
+ @echo -e "to be generated first. Go to ocera/ directory and do 'make', please."
+ @echo -e "If standalone build is required, mark lincan/ by 'touch ../Standalone.mk'.\n"
+endif
+ifdef LINUX_DIR
+KERNEL_LOCATION = $(LINUX_DIR)
+endif
+endif
+# End of OCERA framework header
+