aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/ectool/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/util/ectool/Makefile b/util/ectool/Makefile
index c817395b0f..16a1ce9d10 100644
--- a/util/ectool/Makefile
+++ b/util/ectool/Makefile
@@ -24,10 +24,15 @@ PROGRAM = ectool
INSTALL = /usr/bin/install
PREFIX = /usr/local
+OS_ARCH = $(shell uname -o)
+ifeq ($(OS_ARCH), Cygwin)
+LDFLAGS = -lioperm
+endif
+
all: $(PROGRAM)
$(PROGRAM): ec.o ectool.o
- $(CC) $(CFLAGS) -o $@ $^
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
install: $(PROGRAM)
$(INSTALL) $(PROGRAM) $(PREFIX)/sbin