Files
lm-sensors/prog/hotplug/Makefile
T
Mark D. Studebaker d51bdd40d2 (mds) Big update for 2.4.0-testx kernels. Now uses kernel
"hotplug" facility. Somewhat tested on my PC.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@894 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-09 03:10:03 +00:00

24 lines
551 B
Makefile

INCLUDEDIR = /usr/include
#CFLAGS := -D__KERNEL__ -DMODULE -DLINUX -O2 -Wall -I$(INCLUDEDIR)
CC := gcc
# Compile with Debugging turned on - watch out, lots of pci device infos.
CFLAGS = -D__KERNEL__ -DMODULE -DLINUX -DM7101_DEBUG -O2 -Wall -I$(INCLUDEDIR)
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)