devices/Makefile
changeset 281 c91bbf7bc52c
parent 272 efb1c792a6a4
child 287 529c27d9d4d7
equal deleted inserted replaced
280:35c99cdda518 281:c91bbf7bc52c
    59 KERNEL := $(shell uname -r)
    59 KERNEL := $(shell uname -r)
    60 endif
    60 endif
    61 
    61 
    62 KERNEL_DIR := /lib/modules/$(KERNEL)/build
    62 KERNEL_DIR := /lib/modules/$(KERNEL)/build
    63 CURRENT_DIR := $(shell pwd)
    63 CURRENT_DIR := $(shell pwd)
       
    64 INSTALL_MOD_DIR := ethercat/devices
    64 
    65 
    65 modules:
    66 modules:
    66 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) modules
    67 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) modules
    67 
    68 
    68 install: modules_install
    69 install: modules_install
    69 
    70 
    70 modules_install:
    71 modules_install:
    71 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) modules_install
    72 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) \
       
    73 		INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) modules_install
    72 
    74 
    73 clean:
    75 clean:
    74 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean
    76 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean
    75 
    77 
    76 #------------------------------------------------------------------------------
    78 #------------------------------------------------------------------------------