1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
KDIR  := ../linux-2.6.24-2.4.2-base
PWD  := $(shell pwd)
ROOTFS  := ../Muon/rootfs/lib/modules

obj-m :=
obj-m += r0DMA.o
obj-m += afe.o
obj-m += r0pmu.o
obj-m += r0Bat.o
obj-m += regedit.o

default:
  $(MAKE) ARCH=arm -C $(KDIR) SUBDIRS=$(PWD) modules

install:
  echo "DRIVERS WILL NOT BE INSTALLED TO ROOTFS!!!!!"
  sudo cp *.ko $(ROOTFS)

clean:
  rm -rf *.ko
  rm -rf *.mod.*
  rm -rf .*.cmd
  rm -rf *.o
  rm -rf .tmp_versions