X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=Makefile;h=c72b237ffa3078951bce17351789c44070048e96;hb=3f546df67723e2ff4c7132a80af99cba8f134408;hp=8f556502501f3adc845cc3c362cc7019177a0966;hpb=11255058cf9fd706c9dc35ab8e2f7d2d4ca777a8;p=xonotic%2Fgmqcc.git diff --git a/Makefile b/Makefile index 8f55650..c72b237 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ DESTDIR := +OPTIONAL:= PREFIX := /usr/local BINDIR := $(PREFIX)/bin DATADIR := $(PREFIX)/share @@ -9,7 +10,7 @@ CYGWIN = $(findstring CYGWIN, $(UNAME)) MINGW = $(findstring MINGW32, $(UNAME)) CC ?= clang -CFLAGS += -Wall -Wextra -Werror -I. -fno-strict-aliasing -fsigned-char +CFLAGS += -Wall -Wextra -Werror -I. -fno-strict-aliasing -fsigned-char $(OPTIONAL) ifneq ($(shell git describe --always 2>/dev/null),) CFLAGS += -DGMQCC_GITINFO="\"$(shell git describe --always)\"" endif @@ -17,16 +18,16 @@ endif # but also turn off the STUPID ONES ifeq ($(CC), clang) CFLAGS += \ - -Weverything \ - -Wno-padded \ - -Wno-format-nonliteral \ - -Wno-disabled-macro-expansion \ - -Wno-conversion \ - -Wno-missing-prototypes \ - -Wno-float-equal \ - -Wno-cast-align \ - -Wno-missing-variable-declarations \ - -Wno-unknown-warning-option + -Weverything \ + -Wno-padded \ + -Wno-format-nonliteral \ + -Wno-disabled-macro-expansion \ + -Wno-conversion \ + -Wno-missing-prototypes \ + -Wno-float-equal \ + -Wno-cast-align \ + -Wno-missing-variable-declarations \ + -Wno-unknown-warning-option else #Tiny C Compiler doesn't know what -pedantic-errors is # and instead of ignoring .. just errors. @@ -38,7 +39,7 @@ else endif ifeq ($(track), no) - CFLAGS += -DNOTRACK + CFLAGS += -DNOTRACK endif OBJ_D = util.o code.o ast.o ir.o conout.o ftepp.o opts.o fs.o utf8.o correct.o @@ -86,11 +87,21 @@ endif #gource flags GOURCEFLAGS= \ - --date-format "%d %B, %Y" \ + --date-format "%d %B, %Y" \ --seconds-per-day 0.01 \ --auto-skip-seconds 1 \ --title "GMQCC" \ + --key \ + --camera-mode overview \ + --highlight-all-users \ + --file-idle-time 0 \ + --hide progress,mouse \ + --stop-at-end \ + --max-files 99999999999 \ + --max-file-lag 0.000001 \ + --bloom-multiplier 1.3 \ -1280x720 + #ffmpeg flags for gource FFMPEGFLAGS= \ -y \ @@ -139,7 +150,6 @@ SPLINTFLAGS = \ -kepttrans \ -unqualifiedtrans \ +matchanyintegral \ - -bufferoverflowhigh \ +voidabstract \ -nullassign \ -unrecog \ @@ -189,6 +199,9 @@ splint: @ splint $(SPLINTFLAGS) *.c *.h gource: + @ gource $(GOURCEFLAGS) + +gource-record: @ gource $(GOURCEFLAGS) -o - | ffmpeg $(FFMPEGFLAGS) gource.mp4 depend: