Makefile
changeset 272 efb1c792a6a4
parent 250 440ae5f6d2c3
child 281 c91bbf7bc52c
equal deleted inserted replaced
271:29ac97eb9d79 272:efb1c792a6a4
     1 #------------------------------------------------------------------------------
     1 #------------------------------------------------------------------------------
     2 #
     2 #
     3 #  EtherCAT Makefile
     3 #  Makefile
       
     4 #  
       
     5 #  IgH EtherCAT master
     4 #
     6 #
     5 #  $Id$
     7 #  $Id$
     6 #
     8 #
     7 #  Copyright (C) 2006  Florian Pose, Ingenieurgemeinschaft IgH
     9 #  Copyright (C) 2006  Florian Pose, Ingenieurgemeinschaft IgH
     8 #
    10 #
    53 
    55 
    54 KERNEL_DIR := /lib/modules/$(KERNEL)/build
    56 KERNEL_DIR := /lib/modules/$(KERNEL)/build
    55 CURRENT_DIR := $(shell pwd)
    57 CURRENT_DIR := $(shell pwd)
    56 
    58 
    57 modules:
    59 modules:
    58 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR)
    60 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) modules
       
    61 
       
    62 install: modules_install
       
    63 	@script/install.sh $(KERNEL)
       
    64 
       
    65 modules_install:
       
    66 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR)/master modules_install
       
    67 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR)/devices modules_install
    59 
    68 
    60 clean: cleandoc
    69 clean: cleandoc
    61 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean
    70 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean
    62 
    71 
    63 doc:
    72 doc:
    64 	doxygen Doxyfile
    73 	doxygen Doxyfile
    65 
    74 
    66 cleandoc:
    75 cleandoc:
    67 	@rm -rf doc
    76 	@rm -rf doc
    68 
    77 
    69 install:
       
    70 	@script/install.sh $(KERNEL)
       
    71 
       
    72 #------------------------------------------------------------------------------
    78 #------------------------------------------------------------------------------
    73 
    79 
    74 endif
    80 endif