few bugfixes, some features, starting 2.4 port
[warm.git] / module / Makefile_2.4
diff --git a/module/Makefile_2.4 b/module/Makefile_2.4
new file mode 100644 (file)
index 0000000..14e286a
--- /dev/null
@@ -0,0 +1,22 @@
+ifndef KERNEL_DIR
+$(error specify KERNEL_DIR)
+endif
+
+CROSS_COMPILE = arm-linux-
+INCLUDE  = $(KERNEL_DIR)/include
+CPPFLAGS = -O2 -DMODULE -D__KERNEL__ -I${INCLUDE}
+CC       = $(CROSS_COMPILE)gcc
+LD       = $(CROSS_COMPILE)ld
+
+TARGET   = warm.o
+OBJS     = warm_main.o warm_ops.o
+
+all: $(TARGET)
+
+$(TARGET): $(OBJS)
+       $(LD) -r -o $@ $(OBJS)
+
+
+clean:
+       rm -rf $(TARGET) $(OBJS)
+