mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-13 10:24:42 +00:00
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1045 7894878c-1315-0410-8ee3-d5d059ff63e0
25 lines
553 B
Makefile
25 lines
553 B
Makefile
INCLUDEDIR = /usr/include
|
|
|
|
# Compile with Debugging turned on - watch out, lots of pci device infos.
|
|
CFLAGS = -D__KERNEL__ -DMODULE -DLINUX -DM7101_DEBUG -O2 -Wall -I$(INCLUDEDIR)
|
|
# CFLAGS := -D__KERNEL__ -DMODULE -DLINUX -O2 -Wall -I$(INCLUDEDIR)
|
|
|
|
CC := gcc
|
|
LD := ld
|
|
|
|
# extract versionnumber from version.h
|
|
VER = $(shell awk -F\" '/REL/ {print $$2}' $(INCLUDEDIR)/linux/version.h)
|
|
|
|
OBJS = m7101.o
|
|
|
|
all: $(OBJS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
install: all
|
|
install -o root -g root -m 644 $(OBJS) /lib/modules/$(VER)/misc
|
|
|
|
clean:
|
|
rm -f $(OBJS)
|