Added Mac build support C flag

This commit is contained in:
Bruce Hill 2020-04-20 13:49:57 -07:00
parent 948a2d8766
commit 2803ad9ad7
4 changed files with 12 additions and 0 deletions

View File

@ -5,6 +5,9 @@ CFLAGS=-std=c99 -D_XOPEN_SOURCE=500 -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L
CWARN=-Wall -Wpedantic -Wextra -Wno-unknown-pragmas -Wno-missing-field-initializers\
-Wno-padded -Wsign-conversion -Wno-missing-noreturn -Wno-cast-qual -Wtype-limits
#CFLAGS += -fsanitize=address -fno-omit-frame-pointer
ifeq($(shell uname -s),Darwin)
CFLAGS += -D_DARWIN_C_SOURCE
endif
G=
all: ctest rainbow

View File

@ -5,6 +5,9 @@ CFLAGS=-std=c99 -D_XOPEN_SOURCE=500 -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L
CWARN=-Wall -Wpedantic -Wextra -Wno-unknown-pragmas -Wno-missing-field-initializers\
-Wno-padded -Wsign-conversion -Wno-missing-noreturn -Wno-cast-qual -Wtype-limits
#CFLAGS += -fsanitize=address -fno-omit-frame-pointer
ifeq($(shell uname -s),Darwin)
CFLAGS += -D_DARWIN_C_SOURCE
endif
G=
LUA_DIR=/usr/local
LUA_INC=$(LUA_DIR)/include

View File

@ -5,6 +5,9 @@ CFLAGS=-std=c99 -D_XOPEN_SOURCE=500 -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L
CWARN=-Wall -Wpedantic -Wextra -Wno-unknown-pragmas -Wno-missing-field-initializers\
-Wno-padded -Wsign-conversion -Wno-missing-noreturn -Wno-cast-qual -Wtype-limits
#CFLAGS += -fsanitize=address -fno-omit-frame-pointer
ifeq($(shell uname -s),Darwin)
CFLAGS += -D_DARWIN_C_SOURCE
endif
G=
all: checksyntax

View File

@ -5,6 +5,9 @@ CFLAGS=-std=c99 -D_XOPEN_SOURCE=500 -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L
CWARN=-Wall -Wpedantic -Wextra -Wno-unknown-pragmas -Wno-missing-field-initializers\
-Wno-padded -Wsign-conversion -Wno-missing-noreturn -Wno-cast-qual -Wtype-limits
#CFLAGS += -fsanitize=address -fno-omit-frame-pointer
ifeq($(shell uname -s),Darwin)
CFLAGS += -D_DARWIN_C_SOURCE
endif
G=
all: libbtui.so