Some binaries in can-utils depend on features in the socket-can svn

repository. Building with exported headers from an unpatched kernel will
fail due to missing symbols or headers.

This patch adds two make variables to optionally disable building such
binaries, like this:

make PROGRAMS_ISOTP= PROGRAMS_CANGW= PROGRAMS_SLCAN= all

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>
pull/7/head
Oliver Hartkopp 2010-03-17 19:21:38 +00:00
parent f731bbe2a2
commit ee562a9724
1 changed files with 10 additions and 4 deletions

View File

@ -53,10 +53,16 @@ CFLAGS = -O2 -Wall -Wno-parentheses -I$(KERNELDIR)/include \
-DPF_CAN=29 \ -DPF_CAN=29 \
-DAF_CAN=PF_CAN -DAF_CAN=PF_CAN
PROGRAMS = candump cansniffer cansend canplayer canlogserver cangen\ PROGRAMS_ISOTP = isotpdump isotprecv isotpsend isotpsniffer isotptun
canbusload log2long log2asc asc2log bcmserver\ PROGRAMS_CANGW = cangw
isotpdump isotprecv isotpsend isotpsniffer isotptun\ PROGRAMS_SLCAN = slcan_attach slcand
slcan_attach slcand slcanpty canfdtest cangw PROGRAMS = candump cansniffer cansend canplayer cangen canbusload\
log2long log2asc asc2log\
canlogserver bcmserver\
$(PROGRAMS_ISOTP)\
$(PROGRAMS_CANGW)\
$(PROGRAMS_SLCAN)\
slcanpty canfdtest
all: $(PROGRAMS) all: $(PROGRAMS)