summaryrefslogtreecommitdiff
path: root/util/e6400-flash-unlock/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'util/e6400-flash-unlock/Makefile')
-rw-r--r--util/e6400-flash-unlock/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/util/e6400-flash-unlock/Makefile b/util/e6400-flash-unlock/Makefile
index cf8e7845..41a90482 100644
--- a/util/e6400-flash-unlock/Makefile
+++ b/util/e6400-flash-unlock/Makefile
@@ -3,9 +3,13 @@
CC=cc
CFLAGS=-Wall -Wextra -Werror -O2 -pedantic
+ifeq ($(shell uname), OpenBSD)
+ CFLAGS += -l$(shell uname -p)
+endif
+SRCS=e6400_flash_unlock.c accessors.c
-all: e6400_flash_unlock.c
- $(CC) $(CFLAGS) e6400_flash_unlock.c -o e6400_flash_unlock
+all: $(SRCS) accessors.h
+ $(CC) $(CFLAGS) $(SRCS) -o e6400_flash_unlock
clean:
rm -f e6400_flash_unlock