equal
deleted
inserted
replaced
1 #------------------------------------------------------------------------------ |
|
2 # |
|
3 # Makefile |
|
4 # |
|
5 # EtherCAT-Library |
|
6 # |
|
7 # $Id$ |
|
8 # |
|
9 #------------------------------------------------------------------------------ |
|
10 |
|
11 ifneq ($(KERNELRELEASE),) |
|
12 |
|
13 #------------------------------------------------------------------------------ |
|
14 # Kbuild-Abschnitt |
|
15 |
|
16 lib-m := libec.o |
|
17 |
|
18 #------------------------------------------------------------------------------ |
|
19 |
|
20 else |
|
21 |
|
22 #------------------------------------------------------------------------------ |
|
23 # Default-Abschnitt |
|
24 |
|
25 ifneq ($(wildcard ethercat.conf),) |
|
26 include ethercat.conf |
|
27 else |
|
28 KERNELDIR = /lib/modules/`uname -r`/build |
|
29 endif |
|
30 |
|
31 modules: |
|
32 $(MAKE) -C $(KERNELDIR) M=`pwd` |
|
33 |
|
34 clean: |
|
35 $(MAKE) -C $(KERNELDIR) M=`pwd` clean |
|
36 |
|
37 #------------------------------------------------------------------------------ |
|
38 |
|
39 endif |
|
40 |
|
41 |
|