Author: uwe Date: 2009-04-24 00:22:47 +0200 (Fri, 24 Apr 2009) New Revision: 4199
Modified: trunk/util/ectool/Makefile Log: Add 'install' target for ectool (trivial).
Signed-off-by: Uwe Hermann uwe@hermann-uwe.de Acked-by: Uwe Hermann uwe@hermann-uwe.de
Modified: trunk/util/ectool/Makefile =================================================================== --- trunk/util/ectool/Makefile 2009-04-23 18:46:32 UTC (rev 4198) +++ trunk/util/ectool/Makefile 2009-04-23 22:22:47 UTC (rev 4199) @@ -19,16 +19,22 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #
-CC=gcc -CFLAGS=-O2 -Wall -W +CC = gcc +CFLAGS = -O2 -Wall -W +PROGRAM = ectool +INSTALL = /usr/bin/install +PREFIX = /usr/local
-all: ectool +all: $(PROGRAM)
-ectool: ec.o ectool.o +$(PROGRAM): ec.o ectool.o $(CC) $(CFLAGS) -o $@ $^
+install: $(PROGRAM) + $(INSTALL) $(PROGRAM) $(PREFIX)/sbin + clean: - rm *.o ectool + rm *.o $(PROGRAM)
%.o: %.c $(CC) $(CFLAGS) -c $^ -I. -o $@