Files
lm-sensors/i2c/Makefile
T
Frodo Looijaard 11e88380d5 The basic directory structure for lmsensors2.
README.directories contains a description of the directories I created;
  read it if you have questions about them.
doc/design is the design document I sent before through email.
doc/useful_addresses.html contains links to I2C, SMBus and sensors
  information.

Note that we may have to change minor i2c things, like Makefiles; this
is why I put it in the archive too (we should, of course, send important
changes to Simon Vogl).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-11-02 20:29:28 +00:00

41 lines
944 B
Makefile

#################################################
# config
KERNEL_LOCATION=/usr/src/linux
CURRENT=$(shell uname -r)
#################################################
# some magic for using linux kernel settings
# when compiling module(s)
MOD_SUB_DIRS = drivers
#MX_OBJS = i2c-core.o algo-bit.o i2c-dev.o bit-lp.o bit-velle.o algo-pcf.o
MX_OBJS = i2c-core.o algo-bit.o i2c-dev.o
M_OBJS = bit-lp.o bit-velle.o bit-mb.o
EXTRA_CFLAGS = -Wno-unused
here:
DIR=`pwd`; (cd $(KERNEL_LOCATION); make SUBDIRS=$$DIR modules)
install:
su -c "cp -v $(M_OBJS) $(MX_OBJS) /lib/modules/$(CURRENT)/misc"
clean:
-rm -f $(M_OBJS) $(MX_OBJS) .*.o.flags *~
up:
insmod i2c-core.o i2c_debug=0
insmod algo-bit.o bit_test=1 i2c_debug=1
insmod bit-lp.o base=0x278
insmod i2c-dev.o
insmod drivers/eeprom.o test=1
down:
-rmmod eeprom
-rmmod i2c-dev
-rmmod bit-lp
-rmmod algo-bit
-rmmod i2c-core
include $(KERNEL_LOCATION)/Rules.make