]> rtime.felk.cvut.cz Git - lincan.git/blob - lincan/Makefile
Update of Makefiles to support "Standalone" compilation.
[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 SUBDIRS = src utils
13
14 ifneq ($(wildcard ./Standalone.mk),)
15 # Standalone make outside of OCERA framework
16
17 all: default
18
19 .PHONY: dep default subdirs clean cleandepend
20
21 dirs = src utils
22
23 default dep clean install:
24         $(foreach dir, $(dirs), $(MAKE) -C $(dir) $@ ; )
25
26 else
27 # Build in structure of OCERA framework
28
29 TOPDIR = $(LINUX_DIR)
30
31 ifneq ($(wildcard ../../../../ocera.mk),)
32 include ../../../../ocera.mk
33 else
34 all: 
35         @echo -e "\nTo build LinCAN driver for OCERA framework, ocera.mk file have"
36         @echo -e "to be generated first. Go to ocera/ directory and do 'make', please."
37         @echo -e "If standalone build is required, mark lincan/ by 'touch ./Standalone.mk'.\n"
38 endif
39 endif
40