root/lm-sensors/trunk/prog/hotplug/Makefile

Revision 2335, 0.5 kB (checked in by mds, 5 years ago)

remove root uid/gid from install in Makefiles

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 INCLUDEDIR = /usr/include
2
3 # Compile with Debugging turned on - watch out, lots of pci device infos.
4 CFLAGS = -D__KERNEL__ -DMODULE -DLINUX -DM7101_DEBUG -O2 -Wall -I$(INCLUDEDIR)
5 # CFLAGS := -D__KERNEL__ -DMODULE -DLINUX -O2 -Wall -I$(INCLUDEDIR)
6
7 CC := gcc
8 LD := ld
9
10 # extract versionnumber from version.h
11 VER = $(shell awk -F\" '/REL/ {print $$2}' $(INCLUDEDIR)/linux/version.h)
12
13 OBJS = m7101.o
14
15 all: $(OBJS)
16
17 %.o: %.c
18         $(CC) $(CFLAGS) -c $< -o $@
19
20 install: all
21         install -m 644 $(OBJS) /lib/modules/$(VER)/kernel/drivers/i2c/busses
22
23 clean:
24         rm -f $(OBJS)
Note: See TracBrowser for help on using the browser.