diff options
author | shinyquagsire23 <mtinc2@gmail.com> | 2021-11-05 19:58:55 -0700 |
---|---|---|
committer | shinyquagsire23 <mtinc2@gmail.com> | 2021-11-05 19:58:55 -0700 |
commit | ba7202457fec51d31da4d23a1840813952f30f31 (patch) | |
tree | 95cd38dba1187d007a51dca7f455d7b6541d5110 /tools | |
parent | 1b75688d9a3cd9828f556e7c68bc65bb0268a68f (diff) |
Update build scripts for MacOS Monterey; Use pkg-config on all platforms; MacOS no longer needs static libc++fs; Use gsed on MacOS
Diffstat (limited to 'tools')
-rw-r--r-- | tools/knarc/Makefile | 2 | ||||
-rw-r--r-- | tools/mwasmarm_patcher/Makefile | 2 | ||||
-rw-r--r-- | tools/nitrobanner/Makefile | 3 | ||||
-rw-r--r-- | tools/nitrogfx/Makefile | 4 |
4 files changed, 6 insertions, 5 deletions
diff --git a/tools/knarc/Makefile b/tools/knarc/Makefile index 0e0a0920..24e0de7d 100644 --- a/tools/knarc/Makefile +++ b/tools/knarc/Makefile @@ -8,7 +8,7 @@ else C_SRCS := UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Darwin) -LDFLAGS += -lstdc++ -lc++ -lc /usr/local/opt/llvm@8/lib/libc++fs.a +LDFLAGS += -lstdc++ -lc++ -lc -D_LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM else LDFLAGS += -lstdc++fs endif diff --git a/tools/mwasmarm_patcher/Makefile b/tools/mwasmarm_patcher/Makefile index 26df548c..bff3a677 100644 --- a/tools/mwasmarm_patcher/Makefile +++ b/tools/mwasmarm_patcher/Makefile @@ -2,7 +2,7 @@ UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
-CC := gcc-5
+CC := clang
else
CC := gcc
endif
diff --git a/tools/nitrobanner/Makefile b/tools/nitrobanner/Makefile index 322525bd..9b751776 100644 --- a/tools/nitrobanner/Makefile +++ b/tools/nitrobanner/Makefile @@ -5,7 +5,8 @@ LDFLAGS += -lstdc++fs else UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Darwin) -LDFLAGS += -lstdc++ -lc++ -lc /usr/local/opt/llvm@8/lib/libc++fs.a +CXXFLAGS += -D_LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM +LDFLAGS += -lstdc++ -lc++ -lc else LDFLAGS += -lstdc++fs endif diff --git a/tools/nitrogfx/Makefile b/tools/nitrogfx/Makefile index 18ecdbba..16b2632d 100644 --- a/tools/nitrogfx/Makefile +++ b/tools/nitrogfx/Makefile @@ -1,8 +1,8 @@ CC = gcc -CFLAGS = -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK -D_CRT_SECURE_NO_WARNINGS +CFLAGS = -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK $(shell pkg-config --cflags libpng) -LIBS = -lpng -lz +LIBS = $(shell pkg-config --libs libpng) SRCS = main.c convert_png.c gfx.c jasc_pal.c lz.c rl.c util.c font.c huff.c json.c cJSON.c |