summaryrefslogtreecommitdiffstats
path: root/driver/Makefile.in
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-04-06 23:20:30 +0200
committerSuren A. Chilingaryan <csa@suren.me>2016-04-06 23:20:30 +0200
commitf5deda971481e64c19ad49adf681124ef1417273 (patch)
tree7ea80b19f0095f594bc3f77ae3bd951ef7e1d4db /driver/Makefile.in
parent5e52f10edf41ecf464037ac381413042f09fe27f (diff)
downloadpcitool-f5deda971481e64c19ad49adf681124ef1417273.tar.gz
pcitool-f5deda971481e64c19ad49adf681124ef1417273.tar.bz2
pcitool-f5deda971481e64c19ad49adf681124ef1417273.tar.xz
pcitool-f5deda971481e64c19ad49adf681124ef1417273.zip
Further fixes for out-of-source compilation
Diffstat (limited to 'driver/Makefile.in')
-rw-r--r--driver/Makefile.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/driver/Makefile.in b/driver/Makefile.in
index eea5a7b..2f5238a 100644
--- a/driver/Makefile.in
+++ b/driver/Makefile.in
@@ -10,8 +10,7 @@ MAININSTALLDIR ?= /lib/modules/$(KERNELVER)/kernel/extra
HEADERDIR ?= /lib/modules/$(KERNELVER)/source/include
PWD := $(shell pwd)
-#EXTRA_CFLAGS += -I$(M)/..
-EXTRA_CFLAGS += -I${CMAKE_BINARY_DIR}/driver
+EXTRA_CFLAGS += -I$(M)/.. ${PCILIB_DYNAMIC_HEADERS_INC}
ifdef DUMMY_DEVICE
ifneq ($(DUMMY_DEVICE), 0)
@@ -19,6 +18,7 @@ ifneq ($(DUMMY_DEVICE), 0)
endif
endif
+# Grepping in '../pcilib/build.h' is correct as we will always have this file in the releases...
default:
@KERNEL_GCC_VERSION=`cat /proc/version | head -n1 | cut -d " " -f 7` ;\
GCC_VERSION=`$(CC) --version | head -n 1 | tr ' ' '\n' | grep -e "[0-9]\+\.[0-9]" | tail -n 1` ;\
@@ -65,10 +65,10 @@ default:
grep "#define PCILIB_RELEASE" ../pcilib/build.h &> /dev/null ;\
if [ $$? -eq 0 ]; then \
revision="Release \" PCILIB_RELEASE \" (r\" PCILIB_REVISION \") from \" PCILIB_REVISION_BRANCH \" by \" PCILIB_REVISION_AUTHOR \" at $$build_path, last modification from $$build_lastmod" ;\
- /bin/echo -e "#include \"../pcilib/build.h\"\\n#define PCIDRIVER_BUILD \"$$build\"\\n#define PCIDRIVER_REVISION \"$$revision\"\\n#define PCIDRIVER_CHANGES PCILIB_REVISION_MODIFICATIONS\n" > build.h ;\
+ /bin/echo -e "#include \"pcilib/build.h\"\\n#define PCIDRIVER_BUILD \"$$build\"\\n#define PCIDRIVER_REVISION \"$$revision\"\\n#define PCIDRIVER_CHANGES PCILIB_REVISION_MODIFICATIONS\n" > build.h ;\
else \
revision="Revision r\" PCILIB_REVISION \" from \" PCILIB_REVISION_BRANCH \" by \" PCILIB_REVISION_AUTHOR \" at $$build_path, last modification from $$build_lastmod" ;\
- /bin/echo -e "#include \"../pcilib/build.h\"\\n#define PCIDRIVER_BUILD \"$$build\"\\n#define PCIDRIVER_REVISION \"$$revision\"\\n#define PCIDRIVER_CHANGES PCILIB_REVISION_MODIFICATIONS\n" > build.h ;\
+ /bin/echo -e "#include \"pcilib/build.h\"\\n#define PCIDRIVER_BUILD \"$$build\"\\n#define PCIDRIVER_REVISION \"$$revision\"\\n#define PCIDRIVER_CHANGES PCILIB_REVISION_MODIFICATIONS\n" > build.h ;\
fi ;\
fi ;\
$(MAKE) $(CFLAGS) -C $(KERNELDIR) M=$(PWD) CC=$$CC modules