commit: 064ef36538dd93de544ba8c01c7629a1b3d1ecf1
parent 7534795c969e1040f414b9026c2e10090c3d5803
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 9 Jul 2021 02:58:08 +0200
Use c99 instead of c11 by default
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Makefile.common b/Makefile.common
@@ -25,10 +25,10 @@ Makefile.config:
test: $(EXE_test)
.c:
- $(CC) -std=c11 $(CFLAGS) -o $@ $< $(LDFLAGS)
+ $(CC) -std=c99 $(CFLAGS) -o $@ $< $(LDFLAGS)
.c.o:
- $(CC) -std=c11 $(CFLAGS) -c -o $@ $<
+ $(CC) -std=c99 $(CFLAGS) -c -o $@ $<
.PHONY: clean
clean:
diff --git a/bin/Makefile b/bin/Makefile
@@ -12,13 +12,13 @@ BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man
lolcat: lolcat.c Makefile
- $(CC) -std=c11 $(CFLAGS) -o $@ $< -lm $(LDFLAGS)
+ $(CC) -std=c99 $(CFLAGS) -o $@ $< -lm $(LDFLAGS)
xcd: xcd.c Makefile
- $(CC) -std=c11 $(CFLAGS) -o $@ $< -lm $(LDFLAGS)
+ $(CC) -std=c99 $(CFLAGS) -o $@ $< -lm $(LDFLAGS)
humanize: humanize.c Makefile
- $(CC) -std=c11 $(CFLAGS) `pkg-config --cflags libbsd-overlay` -o $@ $< `pkg-config --libs libbsd-overlay` $(LDFLAGS)
+ $(CC) -std=c99 $(CFLAGS) `pkg-config --cflags libbsd-overlay` -o $@ $< `pkg-config --libs libbsd-overlay` $(LDFLAGS)
install:
mkdir -p ${DESTDIR}${BINDIR}/