Skip to content

Commit

Permalink
Fix #53 - change check target logic
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 authored Jun 13, 2024
1 parent 0dfa354 commit 26b403b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,19 @@ CFLAGS+=-DFSMON_VERSION=\"$(VERSION)\"
SOURCES=main.c util.c
SOURCES+=backend/*.c

ifeq ($(shell uname),Linux)
TARGET_TRIPLE := $(shell $(CC) -dumpmachine 2>/dev/null)

ifneq ($(findstring -darwin,$(TARGET_MACHINE)),)
TARGET_OS_TYPE=Darwin
else ifneq ($(findstring -linux,$(TARGET_MACHINE)),)
TARGET_OS_TYPE=Linux
else ifneq ($(findstring -android,$(TARGET_MACHINE)),)
TARGET_OS_TYPE=Linux
else
TARGET_OS_TYPE=$(shell uname)
endif

ifeq ($(TARGET_OS_TYPE),Linux)

# LINUX: GNU / ANDROID
# __
Expand Down

0 comments on commit 26b403b

Please sign in to comment.