--- a/Makefile Thu Jan 05 14:13:34 2006 +0000
+++ b/Makefile Fri Jan 06 09:49:26 2006 +0000
@@ -14,27 +14,23 @@
include $(CONFIG_FILE)
endif
+obj-m := drivers/ mini/
+
+ifeq ($(MAKE_RT),yes)
+obj-m += rt/
+endif
+
#----------------------------------------------------------------
-all: .drivers .rt .mini
+all:
+ $(MAKE) -C $(KERNELDIR) M=`pwd` modules
+
+clean:
+ $(MAKE) -C $(KERNELDIR) M=`pwd` clean
doc docs:
doxygen Doxyfile
-.drivers:
- $(MAKE) -C drivers
-
-ifeq ($(MAKE_RT),yes)
-.rt:
- $(MAKE) -C rt
-else
-.rt:
- @echo "Skipping Real-Time."
-endif
-
-.mini:
- $(MAKE) -C mini
-
config conf $(CONFIG_FILE):
@echo "# EtherCAT Konfigurationsdatei Kernel 2.6" > $(CONFIG_FILE)
@echo >> $(CONFIG_FILE)
@@ -46,9 +42,4 @@
@echo >> $(CONFIG_FILE)
@echo "$(CONFIG_FILE) erstellt."
-clean:
- $(MAKE) -C rt clean
- $(MAKE) -C drivers clean
- $(MAKE) -C mini clean
-
#----------------------------------------------------------------