aboutsummaryrefslogtreecommitdiff
path: root/util/ectool/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'util/ectool/Makefile')
-rw-r--r--util/ectool/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/util/ectool/Makefile b/util/ectool/Makefile
index a869577da6..8aa1415a56 100644
--- a/util/ectool/Makefile
+++ b/util/ectool/Makefile
@@ -19,12 +19,16 @@ CFLAGS = -O2 -Wall -W
PROGRAM = ectool
INSTALL = /usr/bin/install
PREFIX = /usr/local
+OS_ARCH = $(shell uname)
-OS_ARCH = $(shell uname -o)
-ifeq ($(OS_ARCH), Cygwin)
+ifeq ($(shell uname -o 2>/dev/null), Cygwin)
LDFLAGS = -lioperm
endif
+ifeq ($(OS_ARCH), NetBSD)
+LDFLAGS = -l$(shell uname -p)
+endif
+
all: $(PROGRAM)
$(PROGRAM): ec.o ectool.o