/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to driver/Makefile.in

  • Committer: Suren A. Chilingaryan
  • Date: 2016-04-06 21:20:30 UTC
  • Revision ID: csa@suren.me-20160406212030-nazt45197afkk9y9
Further fixes for out-of-source compilation

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
HEADERDIR ?= /lib/modules/$(KERNELVER)/source/include
11
11
PWD := $(shell pwd)
12
12
 
13
 
#EXTRA_CFLAGS += -I$(M)/..
14
 
EXTRA_CFLAGS += -I${CMAKE_BINARY_DIR}/driver
 
13
EXTRA_CFLAGS += -I$(M)/.. ${PCILIB_DYNAMIC_HEADERS_INC}
15
14
 
16
15
ifdef DUMMY_DEVICE
17
16
ifneq ($(DUMMY_DEVICE), 0)
19
18
endif
20
19
endif
21
20
 
 
21
# Grepping in '../pcilib/build.h' is correct as we will always have this file in the releases...
22
22
default:
23
23
        @KERNEL_GCC_VERSION=`cat /proc/version | head -n1 | cut -d " " -f 7` ;\
24
24
        GCC_VERSION=`$(CC) --version | head -n 1 | tr ' ' '\n' | grep -e "[0-9]\+\.[0-9]" | tail -n 1` ;\
65
65
            grep "#define PCILIB_RELEASE" ../pcilib/build.h &> /dev/null ;\
66
66
            if [ $$? -eq 0 ]; then \
67
67
                revision="Release \" PCILIB_RELEASE \" (r\" PCILIB_REVISION \") from \" PCILIB_REVISION_BRANCH \" by \" PCILIB_REVISION_AUTHOR \" at $$build_path, last modification from $$build_lastmod" ;\
68
 
                /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 ;\
 
68
                /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 ;\
69
69
            else \
70
70
                revision="Revision r\" PCILIB_REVISION \" from \" PCILIB_REVISION_BRANCH \" by \" PCILIB_REVISION_AUTHOR \" at $$build_path, last modification from $$build_lastmod" ;\
71
 
                /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 ;\
 
71
                /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 ;\
72
72
            fi ;\
73
73
        fi ;\
74
74
        $(MAKE) $(CFLAGS) -C $(KERNELDIR) M=$(PWD) CC=$$CC modules