From: Michal Sojka Date: Thu, 20 Dec 2012 22:12:57 +0000 (+0100) Subject: Compile cegw against headers exported from the kernel X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-eth-gw.git/commitdiff_plain/5ed402a46a9ba5530360a380425e181808347d7e Compile cegw against headers exported from the kernel --- diff --git a/utils/cegw/Makefile b/utils/cegw/Makefile index 61b8d06..92d0638 100644 --- a/utils/cegw/Makefile +++ b/utils/cegw/Makefile @@ -1,4 +1,7 @@ -all: - gcc -Wall -ocegw -I../../linux/include/uapi/linux/can cegw.c -debug: - gcc -Wall -ggdb -D_DEBUG -ocegw -I../../linux/include/uapi/linux/can cegw.c +all: include + gcc -Wall -ocegw -Iinclude cegw.c +debug: include + gcc -Wall -ggdb -D_DEBUG -ocegw -Iinclude cegw.c + +include: ../../linux/include/uapi/linux/can/canethgw.h + make -C ../../linux headers_install INSTALL_HDR_PATH=$(CURDIR)