X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/3129fcd8094edcb910b708463fdf1a234f11fb55..47002b02942d3d48e4e24ef91fc55177cdcda486:/lincan/Makefile diff --git a/lincan/Makefile b/lincan/Makefile index 28722b9..8978872 100644 --- a/lincan/Makefile +++ b/lincan/Makefile @@ -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) $@ ; )