*: 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:
parent
5589f929c0
commit
35a6403604
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue