Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Windows support #146

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'dev' into dev-win-support
  • Loading branch information
snake-4 committed Mar 17, 2023
commit e5df22de037dcf529aee7642fe440c7c1ede9ed1
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,17 @@ else
LIMESDR ?= no
endif


BUILD_UNAME := $(shell uname)
BUILD_ARCH := $(shell uname -m)

# There is no standard for the uname's output on a Windows environment
ifeq ($(OS),Windows_NT)
HOST_UNAME := Windows
ifeq ($(OS), Windows_NT)
BUILD_UNAME := Windows
endif

UNAME ?= $(HOST_UNAME)
ARCH ?= $(HOST_ARCH)
UNAME ?= $(BUILD_UNAME)
ARCH ?= $(BUILD_ARCH)

ifeq ($(UNAME), Linux)
DUMP1090_CPPFLAGS += -D_DEFAULT_SOURCE
Expand Down Expand Up @@ -99,7 +100,7 @@ ifeq ($(UNAME), NetBSD)
endif

ifeq ($(UNAME), Windows)
# TODO: Perhaps copy the DLL files to the output folder if the OS is Windows?
# TODO: Perhaps copy the DLL files to the output folder?
CPPFLAGS += -DMISSING_TIME_R_FUNCS -DMISSING_CURSES_H_NCURSES -D_USE_MATH_DEFINES -DNCURSES_STATIC
LIBS += -lws2_32 -lsystre
LIBS_USB += -lusb-1.0
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.