VirtualBox

Ignore:
Timestamp:
Jan 21, 2007 7:03:12 PM (18 years ago)
Author:
vboxsync
Message:

make 'make -C <linux> M=$(pwd)' work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/Makefile

    r84 r213  
    8383#
    8484ifndef INCL
    85  INCL    := -I$(KERN_INCL) -I$(shell pwd) -I$(shell pwd)/include -I$(shell pwd)/r0drv/linux
     85 INCL    := -I$(KERN_INCL)
     86 ifndef KBUILD_EXTMOD
     87  KBUILD_EXTMOD := $(shell pwd)
     88 endif
     89 INCL    += $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux)
    8690 export INCL
    8791endif
     
    109113MODULE_EXT    := ko
    110114$(MODULE)-y   := $(OBJS)
    111 
    112115endif
    113116
    114117# build defs
    115 EXTRA_CFLAGS += $(INCL) $(KFLAGS) $(KDEBUG)
     118EXTRA_CFLAGS  += $(INCL) $(KFLAGS) $(KDEBUG)
    116119
    117120all: $(MODULE)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette