equal
deleted
inserted
replaced
9 #---------------------------------------------------------------- |
9 #---------------------------------------------------------------- |
10 |
10 |
11 ifneq ($(KERNELRELEASE),) |
11 ifneq ($(KERNELRELEASE),) |
12 |
12 |
13 #---------------------------------------------------------------- |
13 #---------------------------------------------------------------- |
14 # Kbuild-Abschnitt |
14 # Kbuild-Abschnitt |
|
15 #---------------------------------------------------------------- |
15 |
16 |
16 obj-m := ec_mini.o |
17 obj-m := ec_mini.o |
17 |
18 |
18 ec_mini-objs := mini.o |
19 ec_mini-objs := mini.o |
19 |
20 |
20 #---------------------------------------------------------------- |
21 #---------------------------------------------------------------- |
21 |
22 |
22 else |
23 else |
23 |
24 |
24 #---------------------------------------------------------------- |
25 #---------------------------------------------------------------- |
25 # Default-Abschnitt |
26 # Default-Abschnitt |
|
27 #---------------------------------------------------------------- |
26 |
28 |
27 ifneq ($(wildcard ethercat.conf),) |
29 ifneq ($(wildcard ethercat.conf),) |
28 include ethercat.conf |
30 include ethercat.conf |
29 else |
31 else |
30 KERNELDIR = /lib/modules/`uname -r`/build |
32 KERNELDIR = /usr/src/linux |
31 endif |
33 endif |
32 |
34 |
33 modules: |
35 modules: |
34 $(MAKE) -C $(KERNELDIR) M=`pwd` modules |
36 $(MAKE) -C $(KERNELDIR) M=`pwd` modules |
35 |
37 |