mini/Makefile
changeset 0 05c992bf5847
child 5 6f2508af550c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mini/Makefile	Fri Oct 21 11:21:42 2005 +0000
@@ -0,0 +1,41 @@
+#----------------------------------------------------------------
+#
+#  Makefile
+#
+#  Minimales EtherCAT-Modul
+#
+#  $Id$
+#
+#----------------------------------------------------------------
+
+MSRDIR = /vol/projekte/msr_messen_steuern_regeln
+KERNELDIR = $(MSRDIR)/linux/kernel/2.4.20/include/linux-2.4.20.CX1100-rthal5
+CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ -DMODULE -I$(KERNELDIR)/include
+
+MODULE = ec_mini_mod.o
+
+SRC = ec_mini.c 
+OBJ = $(SRC:.c=.o)
+
+#----------------------------------------------------------------
+
+all: .depend Makefile $(MODULE)
+
+$(MODULE): $(OBJ)
+	$(LD) -r $(OBJ) -o $@
+
+#----------------------------------------------------------------
+
+depend .depend dep:
+	$(CC) $(CFLAGS) -M $(SRC) > .depend
+
+ifeq (.depend,$(wildcard .depend))
+include .depend
+endif
+
+#----------------------------------------------------------------
+
+clean:
+	rm -f *.o *~ core .depend
+
+#----------------------------------------------------------------