26 lines
556 B
Makefile
Executable File
26 lines
556 B
Makefile
Executable File
ifneq ($(KERNELRELEASE),)
|
|
|
|
obj-m := ds18b20_223.o ds18b20_224.o
|
|
ds18b20_223-objs := ds18b20.o t223.o
|
|
ds18b20_224-objs := ds18b20.o t224.o
|
|
|
|
else
|
|
|
|
CC = gcc
|
|
KDIR := /lib/modules/$(shell uname -r)/build
|
|
PWD := $(shell pwd)
|
|
all:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules
|
|
install:
|
|
\cp ds18b20_223.ko /data/modules/
|
|
\cp ds18b20_224.ko /data/modules/
|
|
uninstall:
|
|
rm -f /data/modules/ds18b20_224.ko
|
|
rm -f /data/modules/ds18b20_223.ko
|
|
load:
|
|
/data/modules/load-modules.sh
|
|
clean:
|
|
rm -rf *.o *.ko .*.cmd *.mod.* modules.order Module.symvers .tmp_versions
|
|
|
|
endif
|