]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/utils/Makefile
Structured comments updated.
[lincan.git] / lincan / utils / Makefile
index a05c3428eb12c4eebb65f3914e8311d5fe88d491..f595272447ee336c2773b8736d60ee6e88cf5189 100644 (file)
@@ -1,44 +1,14 @@
-# Makefile for the Linux CAN-bus driver.
-# Written by Arnaud Westenberg email:arnaud@wanadoo.nl
-# This software is released under the GPL-License.
-# Version 0.7  6 Aug 2001
-#
-# Changes made by Pavel Pisa pisa@cmp.felk.cvut.cz as preliminary
-# study for OCERA Real Time CAN/CANOpen project ORTCAN
-#
-########## The following options can be changed ##########
+# Generic directory or leaf node makefile for OCERA make framework
 
-# Compiler
-ifndef CC
-CC = gcc
+ifndef MAKERULES_DIR
+MAKERULES_DIR := $(shell ( old_pwd="" ;  while [ ! -e Makefile.rules ] ; do if [ "$$old_pwd" == `pwd`  ] ; then exit 1 ; else old_pwd=`pwd` ; cd -L .. 2>/dev/null ; fi ; done ; pwd ) )
 endif
 
-CFLAGS = -I../include -O2 -Wall
-
-all: default
-
-default: utils
-
-dep:
-       $(CC) $(CFLAGS) $(CPPFLAGS) -w -E -M *.c $(MORE_C_FILES) > .depend
-
-install:
-       echo Nothing to install
-
-utils: rxtx sendburst readburst send can-proxy
-
-rxtx: rxtx.o
-
-sendburst: sendburst.o
-
-readburst: readburst.o
-
-send: send.o
-
-clean :
-       rm -f rxtx sendburst readburst send can-proxy *.o .depend
-
-distclean : clean
-
--include .depend
+ifeq ($(MAKERULES_DIR),)
+all : default
+.DEFAULT::
+       @echo -e "\nThe Makefile.rules has not been found in this or partent directory\n"
+else   
+include $(MAKERULES_DIR)/Makefile.rules
+endif