From 8fa3f3abae951f4838545d3ad26d9050374e766b Mon Sep 17 00:00:00 2001 From: "D. Bohdan" Date: Fri, 4 Oct 2024 16:43:45 +0000 Subject: [PATCH] build(make): build with `-std=c99` --- GNUmakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index d0d5ffc..90e5fcb 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -9,7 +9,7 @@ LIBPNG_LIBS ?= $(shell pkg-config --libs libpng) ZLIB_CFLAGS ?= $(shell pkg-config --cflags zlib) ZLIB_LIBS ?= $(shell pkg-config --libs zlib) -CFLAGS ?= -g -O3 $(PLATFORM_CFLAGS) -ffunction-sections -fdata-sections -Wall -Wextra $(LIBPNG_CFLAGS) $(ZLIB_CFLAGS) +CFLAGS ?= -std=c99 -g -O3 $(PLATFORM_CFLAGS) -ffunction-sections -fdata-sections -Wall -Wextra $(LIBPNG_CFLAGS) $(ZLIB_CFLAGS) LIBS ?= $(LIBPNG_LIBS) $(ZLIB_LIBS) -lm PREFIX ?= /usr/local @@ -17,6 +17,7 @@ all: hicolor hicolor: cli.c hicolor.h $(CC) $< -o $@ $(CFLAGS) $(LIBS) + clean: clean-no-ext clean-exe clean-exe: -rm -f hicolor.exe