2 # Makefile for the Linux CAN-bus driver.
3 # Written by Arnaud Westenberg email:arnaud@wanadoo.nl
4 # This software is released under the GPL-License.
5 # Version 0.7 6 Aug 2001
7 # Changes made by Pavel Pisa pisa@cmp.felk.cvut.cz as preliminary
8 # study for OCERA Real Time CAN/CANOpen project ORTCAN
10 ########## The following options can be changed ##########
15 SOURCES_DIR := $(shell ( pwd -L ) )
18 ifneq ($(wildcard $(SOURCES_DIR)/Standalone.mk),)
19 # Standalone make outside of OCERA framework
23 .PHONY: dep default subdirs clean cleandepend
24 .PHONY: check-dir include-pass library-pass binary-pass utils-pass kernel-lib-pass kernel-pass
28 default dep clean install utils-pass kernel-pass:
29 $(foreach dir, $(dirs), $(MAKE) -C $(SOURCES_DIR)/$(dir) \
30 SOURCES_DIR=$(SOURCES_DIR)/$(dir) $@ ; )
33 # Build in structure of OCERA framework
37 ifneq ($(wildcard ../../../../ocera.mk),)
38 include ../../../../ocera.mk
41 @echo -e "\nTo build LinCAN driver for OCERA framework, ocera.mk file have"
42 @echo -e "to be generated first. Go to ocera/ directory and do 'make', please."
43 @echo -e "If standalone build is required, mark lincan/ by 'touch ./Standalone.mk'.\n"