From 5ed402a46a9ba5530360a380425e181808347d7e Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 20 Dec 2012 23:12:57 +0100 Subject: [PATCH 1/1] Compile cegw against headers exported from the kernel --- utils/cegw/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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) -- 2.39.2