drivers/Makefile
changeset 5 6f2508af550c
parent 0 05c992bf5847
child 6 e36a85dc2730
--- a/drivers/Makefile	Fri Nov 04 09:38:50 2005 +0000
+++ b/drivers/Makefile	Fri Nov 04 16:47:23 2005 +0000
@@ -9,40 +9,22 @@
 #
 #################################################################
 
-#KERNELDIR=/usr/src/linux
-#KERNELDIR=/home/rich/linux-2.4.20.CX1100-rthal5
-#KERNELDIR=./linux-2.4.20.CX1100-rthal5
+MSR_DIR = /vol/projekte/msr_messen_steuern_regeln
+EC_DIR = $(MSR_DIR)/ethercat
 
-#IgH
-KERNELDIR = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/linux-2.4.20.CX1100-rthal5
-RTAIDIR   = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/rtai-24.1.13
-RTLIBDIR = rt_lib
-
-#euler-nottuln
+#KERNELDIR = $(EC_DIR)/linux-2.4.20.CX1100-rthal5-kdb
+KERNELDIR = $(EC_DIR)/linux-2.4.20-kdb
 #KERNELDIR = /usr/src/linux
-#RTAIDIR = /usr/src/rtai
-
-#patra
-#KERNELDIR = /usr/src/linux-2.4.20.CX1100-rthal5
-#RTAIDIR   = /usr/src/rtai-24.1.13
-
-#include $(KERNELDIR)/.config
 
 ECAT_8139_OBJ = drv_8139too.o ec_device.o ec_master.o \
 	ec_slave.o ec_command.o ec_types.o
 
-
-CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ -DMODULE \
-	-I$(KERNELDIR)/include -D_RTAI -I$(RTAIDIR)/include \
-	-I$(RTLIBDIR)/msr-include
-
-ifdef CONFIG_SMP
-	CFLAGS += -D__SMP__ -DSMP
-endif
+CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ \
+	-DMODULE -I$(KERNELDIR)/include
 
 #################################################################
 
-all: .depend ecat_8139too.o
+all: .depend Makefile ecat_8139too.o
 
 ecat_8139too.o: $(ECAT_8139_OBJ)
 	$(LD) -r $(ECAT_8139_OBJ) -o $@
@@ -55,7 +37,7 @@
 
 #################################################################
 
-.depend:
+.depend depend dep:
 	$(CC) $(CFLAGS) -M *.c > .depend
 
 ifeq (.depend,$(wildcard .depend))