]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/Makefile
First integration step:
[lincan.git] / lincan / Makefile
index 28722b9fcbe55aef5ecfd5ed033dff175238a621..8978872505887a53fbcd92a003ce64b84451d31b 100644 (file)
@@ -1,3 +1,4 @@
+#
 # Makefile for the Linux CAN-bus driver.
 # Written by Arnaud Westenberg email:arnaud@wanadoo.nl
 # This software is released under the GPL-License.
@@ -8,16 +9,14 @@
 #
 ########## 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) $@ ; )