]> rtime.felk.cvut.cz Git - socketcan-devel.git/blobdiff - test/Makefile
Added new programm to test the CAN filters in af_can.c .
[socketcan-devel.git] / test / Makefile
index c33f16051a4896c357a1116db015ba767872ca25..812e4554ea5fe195348eeb647642e498ecacf353 100644 (file)
@@ -1,7 +1,7 @@
 #
 #  $Id$
 #
-#  Copyright (c) 2002-2005 Volkswagen Group Electronic Research
+#  Copyright (c) 2002-2007 Volkswagen Group Electronic Research
 #  All rights reserved.
 #
 #  Redistribution and use in source and binary forms, with or without
 #
 #  Send feedback to <socketcan-users@lists.berlios.de>
 
-CFLAGS    = -O2 -Wall -Wno-parentheses -I../kernel/2.4/can -fno-strict-aliasing
+KERNELDIR = ../kernel/2.6
 
-PROGRAMS =     tst-raw         \
-               tst-raw-filter  \
-               tst-err         \
-               tst-raw-sendto  \
-               tst-bcm-cycle   \
-               tst-bcm-tx_read \
-               tst-bcm-rtr     \
-               tst-bcm-single  \
-               tst-bcm-filter  \
-               tst-bcm-throttle\
-               tst-proc        \
+CFLAGS    = -O2 -Wall -Wno-parentheses -I$(KERNELDIR)/include \
+           -fno-strict-aliasing \
+           -DETH_P_CAN=0x000C \
+           -DPF_CAN=29 \
+           -DAF_CAN=PF_CAN
+
+PROGRAMS =     tst-raw           \
+               tst-raw-filter    \
+               tst-err           \
+               tst-raw-sendto    \
+               tst-packet        \
+               tst-filter        \
+               tst-filter-master \
+               tst-filter-server \
+               tst-rcv-own-msgs  \
+               tst-bcm-cycle     \
+               tst-bcm-tx_read   \
+               tst-bcm-rtr       \
+               tst-bcm-single    \
+               tst-bcm-filter    \
+               tst-bcm-throttle  \
+               tst-bcm-rx-sendto \
+               tst-bcm-tx-sendto \
+               tst-bcm-dump      \
+               tst-proc          \
+               gwtest            \
                canecho
 
 all: $(PROGRAMS)
 
+install:
+       cp -f $(PROGRAMS) /usr/local/bin
+
 clean:
        rm -f $(PROGRAMS)