#
-# $Id$
-#
# Copyright (c) 2002-2005 Volkswagen Group Electronic Research
# All rights reserved.
#
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
#
-# Send feedback to <socketcan-users@lists.berlios.de>
-
-DESTDIR =
-PREFIX = /usr/local
+# Send feedback to <linux-can@vger.kernel.org>
-KERNELDIR = ../kernel/2.6
+DESTDIR ?=
+PREFIX ?= /usr/local
MAKEFLAGS = -k
-CFLAGS = -O2 -Wall -Wno-parentheses -I$(KERNELDIR)/include \
- -fno-strict-aliasing \
+CFLAGS = -O2 -Wall -Wno-parentheses \
+ -fno-strict-aliasing
+
+CPPFLAGS += -Iinclude \
+ -D_FILE_OFFSET_BITS=64 \
-DSO_RXQ_OVFL=40 \
-DPF_CAN=29 \
-DAF_CAN=PF_CAN
log2long.o: lib.h
log2asc.o: lib.h
asc2log.o: lib.h
+canframelen.o: canframelen.h
cansend: cansend.o lib.o
cangen: cangen.o lib.o
log2long: log2long.o lib.o
log2asc: log2asc.o lib.o
asc2log: asc2log.o lib.o
+canbusload: canbusload.o canframelen.o