Changeset 90

Show
Ignore:
Timestamp:
12/18/98 19:39:32 (10 years ago)
Author:
frodo
Message:

More Makefile stuff

* Added lib directory; the library will live here
* Added Makefile fragment in the lib dir
* Modified README.directories to include the new dir
* Added lib directory to the fragments the Makefile uses

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/Makefile

    r88 r90  
    9696 
    9797# The subdirectories we need to build things in  
    98 SRCDIRS := src 
     98SRCDIRS := src lib 
    9999ifeq ($(I2C),1) 
    100100SRCDIRS += i2c i2c/detect i2c/drivers i2c/eeprom 
     
    105105RM := rm -f 
    106106CC := gcc 
     107BISON := bison 
     108FLEX := flex 
     109AR := ar 
    107110 
    108111# Determine the default compiler flags 
     
    111114# ARCFLAGS are used to create archive object files (static libraries), and 
    112115# LIBCFLAGS are for shared library objects. 
    113 CFLAGS := -I. -Ii2c -O2 -D LM_SENSORS 
     116CFLAGS := -I. -Ii2c -O2 -DLM_SENSORS 
    114117 
    115118ifeq ($(DEBUG),1) 
     
    209212 
    210213 
     214%: %.ro 
     215        $(CC) $(EXLDFLAGS) -o $@ $^ 
     216 
    211217 
    212218# .ao files are used for static archives 
     
    227233        sed -e 's@^\(.*\)\.o:@$*.ld $*.lo Makefile '`dirname $*.ld`/Module.mk':@' > $@ 
    228234 
    229 %: %.ro 
    230         $(CC) $(EXLDFLAGS) -o $@ $^ 
    231  
    232235 
    233236# Flex and Bison 
  • lm-sensors/trunk/README.directories

    r3 r90  
    1212  files which are removed by 'make clean'. 
    1313* src 
    14   Our own code. 
     14  Our own module code. 
     15* lib 
     16  The user-space sensors support library code 
     17* prog 
     18  Several supporting programs, some of them use the library, some do not. 
  • lm-sensors/trunk/kernel/Module.mk

    r89 r90  
    2727              $(MODULE_DIR)/i2c-proc.o $(MODULE_DIR)/lm75.o \ 
    2828              $(MODULE_DIR)/i2c-proc.o $(MODULE_DIR)/gl518sm.o \ 
    29               $(MODULE_DIR)/eeprom.o $(MODULE_DIR)/w83781d.o 
     29              $(MODULE_DIR)/eeprom.o $(MODULE_DIR)/w83781d.o  
    3030 
    3131SRCHEADERFILES := $(MODULE_DIR)/sensors.h $(MODULE_DIR)/isa.h \ 
  • lm-sensors/trunk/src/Module.mk

    r89 r90  
    2727              $(MODULE_DIR)/i2c-proc.o $(MODULE_DIR)/lm75.o \ 
    2828              $(MODULE_DIR)/i2c-proc.o $(MODULE_DIR)/gl518sm.o \ 
    29               $(MODULE_DIR)/eeprom.o $(MODULE_DIR)/w83781d.o 
     29              $(MODULE_DIR)/eeprom.o $(MODULE_DIR)/w83781d.o  
    3030 
    3131SRCHEADERFILES := $(MODULE_DIR)/sensors.h $(MODULE_DIR)/isa.h \