]> rtime.felk.cvut.cz Git - lincan.git/blob - lincan/Makefile
Added support for fasync system call and replacement of spinXXX by can_spinXXX
[lincan.git] / lincan / Makefile
1 #
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
6 #
7 # Changes made by Pavel Pisa pisa@cmp.felk.cvut.cz as preliminary
8 # study for OCERA Real Time CAN/CANOpen project ORTCAN
9 #
10 ########## The following options can be changed ##########
11
12
13 ifneq ($(wildcard ./Standalone.mk),)
14 # Standalone make outside of OCERA framework
15
16 SUBDIRS = src utils
17
18 all: default
19
20 .PHONY: dep default subdirs clean cleandepend
21
22 dirs = src utils
23
24 default dep clean install:
25         $(foreach dir, $(dirs), $(MAKE) -C $(dir) $@ ; )
26
27 else
28 # Build in structure of OCERA framework
29
30 TOPDIR = $(LINUX_DIR)
31 COMPONENT = CONFIG_OC_LINCAN
32 COMPONENT_NAME = lincan
33 COMPONENT_TARGETS = default
34
35 ifneq ($(wildcard ../../../../ocera.mk),)
36 include ../../../../ocera.mk
37
38 dirs = src utils
39
40 default dep clean install:
41         $(foreach dir, $(dirs), $(MAKE) -C $(dir) $@ ; )
42
43 else
44 all: 
45         @echo -e "\nTo build LinCAN driver for OCERA framework, ocera.mk file have"
46         @echo -e "to be generated first. Go to ocera/ directory and do 'make', please."
47         @echo -e "If standalone build is required, mark lincan/ by 'touch ./Standalone.mk'.\n"
48 endif
49 endif
50