1 # if HW is PC_24 or PC_26 it compiles for kernel 2.4 resp 2.6
4 #---------- FOR PC 2.6 kernel -----------------------------------
6 ifneq ($(KERNELRELEASE),)
9 KDIR:=/lib/modules/$(shell uname -r)/build
13 @echo "Warning: Compiling for 2.6: $(FOR26)"
14 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
17 #---------- FOR PC 2.4 kernel -----------------------------------
21 KERNELDIR = -I/usr/src/kernel-headers-2.4.27-2-686/include/
22 CFLAGS = -Wall $(KERNELDIR) -O3 -D__KERNEL__ -DMODULE -c -DPC_KERNEL_24
26 @echo "Warning: Compiling for 2.4: $(FOR26)"
27 $(CC) $(CFLAGS) nozomi.c -c
28 $(CC) $(CFLAGS) kfifo.c -c
29 ld -r -o noz.o nozomi.o kfifo.o
31 #----------------------------------------------------------------
35 $(RM) *.o *.ko *.mod.* .*.o.cmd .*.mod.* .*.ko.cmd
36 $(RM) .tmp_versions -rf
37 #----------------------------------------------------------------
41 ctags-exuberant -e *.c