X-Git-Url: http://rtime.felk.cvut.cz/gitweb/socketcan-devel.git/blobdiff_plain/ba1f2a48b94875897b48f06c34c32b475919b211..2bafcef318d4885c129168a4e4fe5e58a2c21330:/test/Makefile diff --git a/test/Makefile b/test/Makefile index c33f160..812e455 100644 --- a/test/Makefile +++ b/test/Makefile @@ -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 @@ -40,23 +40,41 @@ # # Send feedback to -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)