+#
# Makefile for the Linux CAN-bus driver.
# Written by Arnaud Westenberg email:arnaud@wanadoo.nl
# This software is released under the GPL-License.
#
########## The following options can be changed ##########
-# Compiler
-CC = gcc
-# Enable debugging messages
-DEBUG = y
-
-all: default
+TOPDIR = $(LINUX_DIR)
-.PHONY: dep default subdirs clean cleandepend
+SUBDIRS = src utils
-dirs = src utils
+ifneq ($(wildcard ../../../../ocera.mk),)
+include ../../../../ocera.mk
+else
+all:
+ @echo -e "You should go to the ocera/ directory and do 'make' to generate the ocera.mk file first.\nThanks."
+endif
-default dep clean install:
- $(foreach dir, $(dirs), $(MAKE) -C $(dir) $@ ; )