summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/msgenc/Makefile9
-rw-r--r--tools/nitrogfx/Makefile6
2 files changed, 7 insertions, 8 deletions
diff --git a/tools/msgenc/Makefile b/tools/msgenc/Makefile
index b39d97cb..ee86181b 100644
--- a/tools/msgenc/Makefile
+++ b/tools/msgenc/Makefile
@@ -8,12 +8,11 @@ endif
DEPDIR := .deps
DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.d
-define SRCS :=
- msgenc.cpp
- MessagesConverter.cpp
- MessagesDecoder.cpp
+SRCS := \
+ msgenc.cpp \
+ MessagesConverter.cpp \
+ MessagesDecoder.cpp \
MessagesEncoder.cpp
-endef
OBJS := $(SRCS:%.cpp=%.o)
diff --git a/tools/nitrogfx/Makefile b/tools/nitrogfx/Makefile
index 37d30b2d..2ed6cf1e 100644
--- a/tools/nitrogfx/Makefile
+++ b/tools/nitrogfx/Makefile
@@ -1,14 +1,14 @@
CC = gcc
-HAVE_LIBPNG := $(shell $(PKGCONFIG) libpng; echo $?)
+HAVE_LIBPNG := $(shell pkg-config libpng; echo $?)
ifeq ($(HAVE_LIBPNG),1)
$(error No package 'libpng' found)
endif
-CFLAGS = -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK $(shell $(PKGCONFIG) --cflags libpng)
+CFLAGS = -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK $(shell pkg-config --cflags libpng)
-LIBS = $(shell $(PKGCONFIG) --libs libpng)
+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