equal
deleted
inserted
replaced
12 |
12 |
13 ifeq ($(CONFIG_FILE),$(wildcard $(CONFIG_FILE))) |
13 ifeq ($(CONFIG_FILE),$(wildcard $(CONFIG_FILE))) |
14 include $(CONFIG_FILE) |
14 include $(CONFIG_FILE) |
15 endif |
15 endif |
16 |
16 |
|
17 obj-m := drivers/ mini/ |
|
18 |
|
19 ifeq ($(MAKE_RT),yes) |
|
20 obj-m += rt/ |
|
21 endif |
|
22 |
17 #---------------------------------------------------------------- |
23 #---------------------------------------------------------------- |
18 |
24 |
19 all: .drivers .rt .mini |
25 all: |
|
26 $(MAKE) -C $(KERNELDIR) M=`pwd` modules |
|
27 |
|
28 clean: |
|
29 $(MAKE) -C $(KERNELDIR) M=`pwd` clean |
20 |
30 |
21 doc docs: |
31 doc docs: |
22 doxygen Doxyfile |
32 doxygen Doxyfile |
23 |
|
24 .drivers: |
|
25 $(MAKE) -C drivers |
|
26 |
|
27 ifeq ($(MAKE_RT),yes) |
|
28 .rt: |
|
29 $(MAKE) -C rt |
|
30 else |
|
31 .rt: |
|
32 @echo "Skipping Real-Time." |
|
33 endif |
|
34 |
|
35 .mini: |
|
36 $(MAKE) -C mini |
|
37 |
33 |
38 config conf $(CONFIG_FILE): |
34 config conf $(CONFIG_FILE): |
39 @echo "# EtherCAT Konfigurationsdatei Kernel 2.6" > $(CONFIG_FILE) |
35 @echo "# EtherCAT Konfigurationsdatei Kernel 2.6" > $(CONFIG_FILE) |
40 @echo >> $(CONFIG_FILE) |
36 @echo >> $(CONFIG_FILE) |
41 @echo "KERNELDIR = /usr/src/linux" >> $(CONFIG_FILE) |
37 @echo "KERNELDIR = /usr/src/linux" >> $(CONFIG_FILE) |
44 @echo >> $(CONFIG_FILE) |
40 @echo >> $(CONFIG_FILE) |
45 @echo "MAKE_RT = yes" >> $(CONFIG_FILE) |
41 @echo "MAKE_RT = yes" >> $(CONFIG_FILE) |
46 @echo >> $(CONFIG_FILE) |
42 @echo >> $(CONFIG_FILE) |
47 @echo "$(CONFIG_FILE) erstellt." |
43 @echo "$(CONFIG_FILE) erstellt." |
48 |
44 |
49 clean: |
|
50 $(MAKE) -C rt clean |
|
51 $(MAKE) -C drivers clean |
|
52 $(MAKE) -C mini clean |
|
53 |
|
54 #---------------------------------------------------------------- |
45 #---------------------------------------------------------------- |