root/lm-sensors/trunk/i2c/Module.mk @ 4

Revision 4, 0.5 KB (checked in by frodo, 16 years ago)

Makefile skeleton, made i2c compile with 2.0 kernels

Please examine the Makefile before extending it, as its approach is
completely new. It should be very modular now, though. Makefile fragments
are called Module.mk.

The Module.mk in i2c does not handle dependencies yet.

There are some patches to bit-mb.c to make it compile with 2.0 kernels.
They have been sent to Simon Vogl (author of the i2c module).

  • Property svn:eol-style set to native
Line 
1# Note that MODULE_DIR (the directory in which this file resides) is a
2# 'simply expanded variable'. That means that its value is substituted
3# verbatim in the rules, until it is redefined.
4MODULE_DIR := i2c
5
6TARGETS := $(MODULE_DIR)/i2c-core.o  $(MODULE_DIR)/algo-bit.o \
7           $(MODULE_DIR)/i2c-dev.o   $(MODULE_DIR)/bit-lp.o \
8           $(MODULE_DIR)/bit-velle.o $(MODULE_DIR)/bit-mb.o
9
10all :: $(TARGETS)
11
12install :: $(TARGETS)
13        $(MKDIR) $(MODDIR)
14        install -o root -g root -m 644 $(MODDIR) $(TARGETS)
15
16clean ::
17        $(RM) $(TARGETS) 
Note: See TracBrowser for help on using the browser.