From d7b52ba112b3bc5293e3e6c361e8d0cd64fc75bf Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 28 Jul 2013 19:39:58 +0200 Subject: add vusb-i2cwrite --- commandline/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'commandline/Makefile') diff --git a/commandline/Makefile b/commandline/Makefile index 6c51294..a4d0792 100644 --- a/commandline/Makefile +++ b/commandline/Makefile @@ -9,7 +9,7 @@ LIBS = $(USBLIBS) PREFIX ?= /usr/local bin_dir = ${DESTDIR}${PREFIX}/bin -PROGRAMS = vusb-i2c vusb-i2cdetect +PROGRAMS = vusb-i2c vusb-i2cdetect vusb-i2cwrite all: $(PROGRAMS) @@ -18,7 +18,8 @@ all: $(PROGRAMS) i2c.o: i2c.c i2c-util.c i2c-util.h i2c-util.o: i2c-util.c -i2cdetect.o: i2cdetect.c +i2cdetect.o: i2cdetect.c i2c-util.c i2c-util.h +i2cwrite.o: i2cwrite.c i2c-util.c i2c-util.h vusb-i2c: i2c.o i2c-util.o $(CC) -o $@ $^ $(LIBS) @@ -26,11 +27,14 @@ vusb-i2c: i2c.o i2c-util.o vusb-i2cdetect: i2cdetect.o i2c-util.o $(CC) -o $@ $^ $(LIBS) +vusb-i2cwrite: i2cwrite.o i2c-util.o + $(CC) -o $@ $^ $(LIBS) + clean: rm -f *.o $(PROGRAMS) install: - install -m 0755 $(PROGRAMS) $(bin_dir) + install -m 4755 $(PROGRAMS) $(bin_dir) uninstall: rm -rf $(bin_dir)/vusb-i2c $(bin_dir)/vusb-i2cdetect -- cgit v1.2.3