equal
deleted
inserted
replaced
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 # |
51 KERNEL := $(shell uname -r) |
53 KERNEL := $(shell uname -r) |
52 endif |
54 endif |
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) |
|
58 INSTALL_MOD_DIR := ethercat |
56 |
59 |
57 modules: |
60 modules: |
58 $(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) |
61 $(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) modules |
|
62 |
|
63 install: modules_install |
|
64 @script/install.sh $(KERNEL) |
|
65 |
|
66 modules_install: |
|
67 $(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) \ |
|
68 INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) modules_install |
59 |
69 |
60 clean: cleandoc |
70 clean: cleandoc |
61 $(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean |
71 $(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean |
62 |
72 |
63 doc: |
73 doc: |
64 doxygen Doxyfile |
74 doxygen Doxyfile |
65 |
75 |
66 cleandoc: |
76 cleandoc: |
67 @rm -rf doc |
77 @rm -rf doc |
68 |
78 |
69 install: |
|
70 @script/install.sh $(KERNEL) |
|
71 |
|
72 #------------------------------------------------------------------------------ |
79 #------------------------------------------------------------------------------ |
73 |
80 |
74 endif |
81 endif |