diff -r 6f2508af550c -r e36a85dc2730 drivers/Makefile --- a/drivers/Makefile Fri Nov 04 16:47:23 2005 +0000 +++ b/drivers/Makefile Fri Nov 04 17:05:20 2005 +0000 @@ -9,22 +9,40 @@ # ################################################################# -MSR_DIR = /vol/projekte/msr_messen_steuern_regeln -EC_DIR = $(MSR_DIR)/ethercat +#KERNELDIR=/usr/src/linux +#KERNELDIR=/home/rich/linux-2.4.20.CX1100-rthal5 +#KERNELDIR=./linux-2.4.20.CX1100-rthal5 -#KERNELDIR = $(EC_DIR)/linux-2.4.20.CX1100-rthal5-kdb -KERNELDIR = $(EC_DIR)/linux-2.4.20-kdb +#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 = /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 + +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 ################################################################# -all: .depend Makefile ecat_8139too.o +all: .depend ecat_8139too.o ecat_8139too.o: $(ECAT_8139_OBJ) $(LD) -r $(ECAT_8139_OBJ) -o $@ @@ -37,7 +55,7 @@ ################################################################# -.depend depend dep: +.depend: $(CC) $(CFLAGS) -M *.c > .depend ifeq (.depend,$(wildcard .depend))