Changeset 4487

Show
Ignore:
Timestamp:
06/27/07 11:35:53 (7 years ago)
Author:
khali
Message:

Add a Makefile to build, install and uninstall the tools, and make
them build again.

Location:
i2c-tools/trunk
Files:
2 added
5 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk/tools/i2cbusses.c

    r4480 r4487  
    3131#include <errno.h> 
    3232#include "i2cbusses.h" 
    33 #include "i2c-dev.h" 
     33#include <linux/i2c-dev.h> 
    3434 
    3535enum adt { adt_dummy, adt_isa, adt_i2c, adt_smbus, adt_unknown }; 
  • i2c-tools/trunk/tools/i2cdetect.c

    r4480 r4487  
    2525#include <stdlib.h> 
    2626#include <unistd.h> 
    27 #include "../dump/i2cbusses.h" 
    28 #include "i2c-dev.h" 
    29 #include "version.h" 
     27#include "i2cbusses.h" 
     28#include <linux/i2c-dev.h> 
     29#include "../version.h" 
    3030 
    3131#define MODE_AUTO       0 
     
    221221 
    222222        if (version) { 
    223                 fprintf(stderr, "i2cdetect version %s\n", LM_VERSION); 
     223                fprintf(stderr, "i2cdetect version %s\n", VERSION); 
    224224                exit(0); 
    225225        } 
  • i2c-tools/trunk/tools/i2cdump.c

    r4480 r4487  
    2727#include "util.h" 
    2828#include "i2cbusses.h" 
    29 #include "i2c-dev.h" 
    30 #include "version.h" 
     29#include <linux/i2c-dev.h> 
     30#include "../version.h" 
    3131 
    3232void help(void) 
     
    7979 
    8080        if (version) { 
    81                 fprintf(stderr, "i2cdump version %s\n", LM_VERSION); 
     81                fprintf(stderr, "i2cdump version %s\n", VERSION); 
    8282                exit(0); 
    8383        } 
  • i2c-tools/trunk/tools/i2cget.c

    r4480 r4487  
    3030#include "util.h" 
    3131#include "i2cbusses.h" 
    32 #include "i2c-dev.h" 
    33 #include "version.h" 
     32#include <linux/i2c-dev.h> 
     33#include "../version.h" 
    3434 
    3535void help(void) __attribute__ ((noreturn)); 
     
    179179 
    180180        if (version) { 
    181                 fprintf(stderr, "i2cget version %s\n", LM_VERSION); 
     181                fprintf(stderr, "i2cget version %s\n", VERSION); 
    182182                exit(0); 
    183183        } 
  • i2c-tools/trunk/tools/i2cset.c

    r4480 r4487  
    2727#include "i2cbusses.h" 
    2828#include "util.h" 
    29 #include "i2c-dev.h" 
    30 #include "version.h" 
     29#include <linux/i2c-dev.h> 
     30#include "../version.h" 
    3131 
    3232void help(void) __attribute__ ((noreturn)); 
     
    7272 
    7373        if (version) { 
    74                 fprintf(stderr, "i2cset version %s\n", LM_VERSION); 
     74                fprintf(stderr, "i2cset version %s\n", VERSION); 
    7575                exit(0); 
    7676        }