#
-# $Id: Makefile,v 2.0 2006/04/13 10:37:20 ethuerm Exp $
+# $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 <llcf@volkswagen.de>
+# Send feedback to <socketcan-users@lists.berlios.de>
-CFLAGS = -O2 -Wall -Wno-parentheses -I../kernel/2.4/can -fno-strict-aliasing
+CFLAGS = -O2 -Wall -Wno-parentheses -I../kernel/2.6/include \
+ -fno-strict-aliasing \
+ -DPF_CAN=29 \
+ -DAF_CAN=PF_CAN
-PROGRAMS_GPL = candump \
- can-sniffer
+PROGRAMS = candump cansniffer cansend canplayer canlogserver cangen\
+ log2long log2asc asc2log slcan_attach vcan
-PROGRAMS_VW = tpdump \
- tp20-sniffer \
- mcnet-vit-emu \
- mcnet-sniffer \
- pq35speed
+all: $(PROGRAMS)
-default: all-gpl
+clean:
+ rm -f $(PROGRAMS) *.o
-all: all-gpl all-vw
+install:
+ cp -f $(PROGRAMS) /usr/local/bin
-all-gpl: $(PROGRAMS_GPL)
-all-vw: $(PROGRAMS_VW)
+distclean:
+ rm -f $(PROGRAMS) *.o *~
-clean:
- rm -f $(PROGRAMS_GPL) $(PROGRAMS_VW)
+cansend.o: lib.h
+cangen.o: lib.h
+candump.o: lib.h
+canplayer.o: lib.h
+canlogserver.o: lib.h
+log2long.o: lib.h
+log2asc.o: lib.h
+asc2log.o: lib.h
-distclean:
- rm -f $(PROGRAMS_GPL) $(PROGRAMS_VW) *~
+cansend: cansend.o lib.o
+cangen: cangen.o lib.o
+candump: candump.o lib.o
+canplayer: canplayer.o lib.o
+canlogserver: canlogserver.o lib.o
+log2long: log2long.o lib.o
+log2asc: log2asc.o lib.o
+asc2log: asc2log.o lib.o