Skip to content

Commit

Permalink
build(make): build with -std=c99
Browse files Browse the repository at this point in the history
  • Loading branch information
dbohdan committed Oct 4, 2024
1 parent e2245fb commit 227cf57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ 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

all: hicolor

hicolor: cli.c hicolor.h
$(CC) $< -o $@ $(CFLAGS) $(LIBS)

clean: clean-no-ext clean-exe
clean-exe:
-rm -f hicolor.exe
Expand Down

0 comments on commit 227cf57

Please sign in to comment.