Skip to content

Commit

Permalink
ncurses is now compiled optionally
Browse files Browse the repository at this point in the history
  • Loading branch information
catriverr committed Sep 7, 2024
1 parent e7ac585 commit 03d7fce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Compiler and flags
CXX := g++
CXXFLAGS := --std=c++2a -pthread `pkg-config --libs --cflags ncursesw` -Wno-deprecated-declarations -Wno-writable-strings -Wno-switch-bool -Wno-format-security `pkg-config --libs --cflags libcurl`
CXXFLAGS := --std=c++2a -pthread -Wno-deprecated-declarations -Wno-writable-strings -Wno-switch-bool -Wno-format-security `pkg-config --libs --cflags libcurl`
OUTFILE := -o gmeng

UNAME_S := $(shell uname -s)
Expand All @@ -12,6 +12,8 @@ endif

ifeq ($(UNAME_S), Linux)
CXXFLAGS += -DGMENG_NO_CURSES -Wno-write-strings
else
CXXFLAGS += `pkg-config --libs --cflags ncursesw`
endif

ifeq ($(filter debug,$(MAKECMDGOALS)), debug)
Expand Down

0 comments on commit 03d7fce

Please sign in to comment.