]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/Makefile
Added Fixes to the CAN and ORTE Components Tree.
[lincan.git] / lincan / Makefile
index 60ca0a662e1b9f2f34ee378541a9d91786cdf524..87f2000ad8468a0b0ff1449c34f2294ba7b53e98 100644 (file)
@@ -9,11 +9,12 @@
 #
 ########## The following options can be changed ##########
 
-SUBDIRS = src utils
 
 ifneq ($(wildcard ./Standalone.mk),)
 # Standalone make outside of OCERA framework
 
+SUBDIRS = src utils
+
 all: default
 
 .PHONY: dep default subdirs clean cleandepend
@@ -27,9 +28,18 @@ else
 # Build in structure of OCERA framework
 
 TOPDIR = $(LINUX_DIR)
+COMPONENT = CONFIG_OC_LINCAN
+COMPONENT_NAME = lincan
+COMPONENT_TARGETS = default
 
 ifneq ($(wildcard ../../../../ocera.mk),)
 include ../../../../ocera.mk
+
+dirs = src utils
+
+default dep clean install:
+       $(foreach dir, $(dirs), $(MAKE) -C $(dir) $@ ; )
+
 else
 all: 
        @echo -e "\nTo build LinCAN driver for OCERA framework, ocera.mk file have"