*: build with C99

It's 2017, let's not stick with C89 (also for some reason the Travis
environment has a different -std= default value than my local machine).

Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
Aleksa Sarai 2017-04-12 07:24:03 +10:00
parent 5589f929c0
commit 35a6403604
No known key found for this signature in database
GPG key ID: 9E18AA267DDB8DB4
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ src = $(wildcard *.c)
obj = $(src:.c=.o) obj = $(src:.c=.o)
override LIBS += $(shell pkg-config --libs glib-2.0) override LIBS += $(shell pkg-config --libs glib-2.0)
override CFLAGS += -Wall -Wextra $(shell pkg-config --cflags glib-2.0) override CFLAGS += -std=c99 -Wall -Wextra $(shell pkg-config --cflags glib-2.0)
conmon: $(obj) conmon: $(obj)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) $(CC) -o $@ $^ $(CFLAGS) $(LIBS)

View file

@ -2,7 +2,7 @@ src = $(wildcard *.c)
obj = $(src:.c=.o) obj = $(src:.c=.o)
override LIBS += override LIBS +=
override CFLAGS += -Os -Wall -Wextra -static override CFLAGS += -std=c99 -Os -Wall -Wextra -static
pause: $(obj) pause: $(obj)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) $(CC) -o $@ $^ $(CFLAGS) $(LIBS)