]> git.wh0rd.org - patches.git/blame - lirc-0.8.2-out-of-tree-build3.patch
more random patches. who knows.
[patches.git] / lirc-0.8.2-out-of-tree-build3.patch
CommitLineData
5e993f12 1--- lirc/drivers/Makefile.common
2+++ lirc/drivers/Makefile.common
3@@ -9,14 +9,18 @@
4 # when compiling module(s)
5 KBUILD_VERBOSE = 1
6 LIRC_EXTRA_CFLAGS = -DIRCTL_DEV_MAJOR=$(lirc_major) -DEXPORT_SYMTAB $(DEFS) \
7- $(DEFAULT_INCLUDES) -I$(LIRC_DEVDIR)/../.. \
8+ $(DEFAULT_INCLUDES) -I$(LIRC_DEVDIR)/$(srcdir) -I$(LIRC_DEVDIR)/$(builddir) \
9+ -I$(LIRC_DEVDIR)/$(top_srcdir) -I$(LIRC_DEVDIR)/$(top_builddir) \
10 -I$(KERNEL_LOCATION)/include/ \
11 -I$(KERNEL_LOCATION)/drivers/media/video/
12 export LIRC_EXTRA_CFLAGS KERNEL_LOCATION module_DATA
13
14 $(module_DATA): $(automake_dummy_SOURCES) $(top_builddir)/config.h ../lirc.h
15+ test "$(srcdir)" != "$(builddir)" && \
16+ for f in $(automake_dummy_SOURCES) ; do [ -e $$f ] || ln -s $(srcdir)/$$f $$f || exit $$? ; done
17 mv Makefile Makefile.automake
18 cp $(srcdir)/../Makefile.kernel Makefile
19+ CPPFLAGS="" CFLAGS="" LDFLAGS="" \
20 $(MAKE) -C $(KERNEL_LOCATION) SUBDIRS=$(LIRC_DEVDIR) modules \
21 KBUILD_VERBOSE=$(KBUILD_VERBOSE)
22 mv Makefile.automake Makefile