diff options
Diffstat (limited to 'board/Makefile')
-rw-r--r-- | board/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/board/Makefile b/board/Makefile index ae3d691..ba53910 100644 --- a/board/Makefile +++ b/board/Makefile @@ -6,8 +6,14 @@ CFLAGS += -std=c99 -Wall -Wextra -Wshadow -Werror -pedantic -shared ifeq ($(OS),Windows_NT) OUTEXT = dll else - OUTEXT = so CFLAGS += -fPIC + + UNAME_S := $(shell uname) + ifeq ($(UNAME_S),Linux) + OUTEXT = so + else ifeq ($(UNAME_S),Darwin) + OUTEXT = dylib + endif endif default: all |