aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--COPYING2
-rw-r--r--Makefile8
-rw-r--r--src/got-diminished-cerberus.c2
-rw-r--r--src/got-diminished-login.c2
-rw-r--r--src/got-diminished-ssh.c2
5 files changed, 11 insertions, 5 deletions
diff --git a/COPYING b/COPYING
index 5a92862..bf9f165 100644
--- a/COPYING
+++ b/COPYING
@@ -1,6 +1,6 @@
got-diminished – Extension for gates-of-tartaros to minimise memory usage after logging in
-Copyright © 2013 Mattias Andrée (maandree@member.fsf.org)
+Copyright © 2013, 2014 Mattias Andrée (maandree@member.fsf.org)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/Makefile b/Makefile
index 5b5b0d7..4c2efbf 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,12 @@ DATA = /share
LICENSES = $(PREFIX)$(DATA)/licenses
OPTIMISE = -Os
+WARN = -Wall -Wextra -pedantic -Wdouble-promotion -Wformat=2 -Winit-self -Wmissing-include-dirs \
+ -Wfloat-equal -Wmissing-prototypes -Wmissing-declarations -Wtrampolines -Wnested-externs \
+ -Wno-variadic-macros -Wdeclaration-after-statement -Wundef -Wpacked -Wunsafe-loop-optimizations \
+ -Wbad-function-cast -Wwrite-strings -Wlogical-op -Wstrict-prototypes -Wold-style-definition \
+ -Wvector-operation-performance -Wstack-protector -Wunsuffixed-float-constants -Wcast-align \
+ -Wsync-nand -Wshadow -Wredundant-decls -Winline -Wcast-qual -Wsign-conversion -Wstrict-overflow
BINS = login ssh cerberus
_BINS = $(foreach B, $(BINS), bin/got-diminished-$(B))
@@ -25,7 +31,7 @@ got-diminished: src/got-diminished
bin/%: src/%.c
@mkdir -p bin
- gcc $(OPTIMISE) -o "$@" "$<"
+ gcc $(OPTIMISE) $(WARN) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o "$@" "$<"
.PHONY: install
diff --git a/src/got-diminished-cerberus.c b/src/got-diminished-cerberus.c
index 37fb060..739155a 100644
--- a/src/got-diminished-cerberus.c
+++ b/src/got-diminished-cerberus.c
@@ -1,7 +1,7 @@
/**
* got-diminished – Extension for gates-of-tartaros to minimise memory usage after logging in
*
- * Copyright © 2013 Mattias Andrée (maandree@member.fsf.org)
+ * Copyright © 2013, 2014 Mattias Andrée (maandree@member.fsf.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/got-diminished-login.c b/src/got-diminished-login.c
index d0d12f9..c37b94b 100644
--- a/src/got-diminished-login.c
+++ b/src/got-diminished-login.c
@@ -1,7 +1,7 @@
/**
* got-diminished – Extension for gates-of-tartaros to minimise memory usage after logging in
*
- * Copyright © 2013 Mattias Andrée (maandree@member.fsf.org)
+ * Copyright © 2013, 2014 Mattias Andrée (maandree@member.fsf.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/got-diminished-ssh.c b/src/got-diminished-ssh.c
index 13ce600..f6c12ac 100644
--- a/src/got-diminished-ssh.c
+++ b/src/got-diminished-ssh.c
@@ -1,7 +1,7 @@
/**
* got-diminished – Extension for gates-of-tartaros to minimise memory usage after logging in
*
- * Copyright © 2013 Mattias Andrée (maandree@member.fsf.org)
+ * Copyright © 2013, 2014 Mattias Andrée (maandree@member.fsf.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by