aboutsummaryrefslogtreecommitdiffstats
path: root/mk/cc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/cc.mk')
-rw-r--r--mk/cc.mk28
1 files changed, 0 insertions, 28 deletions
diff --git a/mk/cc.mk b/mk/cc.mk
deleted file mode 100644
index fcf0535..0000000
--- a/mk/cc.mk
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 2008 Roy Marples <roy@marples.name>
-
-# Setup some good default CFLAGS
-CFLAGS?= -Os
-
-# Default to using the C99 standard
-CSTD?= c99
-_CSTD_SH= if test -n "${CSTD}"; then echo "-std=${CSTD}"; else echo ""; fi
-_CSTD!= ${_CSTD_SH}
-CFLAGS+= ${_CSTD}$(shell ${_CSTD_SH})
-
-# Try and use some good cc flags if we're building from git
-_CCFLAGS= -pedantic -Wall -Wunused -Wimplicit -Wshadow -Wformat=2 \
- -Wmissing-declarations -Wno-missing-prototypes -Wwrite-strings \
- -Wbad-function-cast -Wnested-externs -Wcomment -Winline \
- -Wchar-subscripts -Wcast-align -Wno-format-nonliteral \
- -Wdeclaration-after-statement -Wsequence-point -Wextra
-_CC_FLAGS_SH= if ! test -d .git; then echo ""; else for f in ${_CCFLAGS}; do \
- if ${CC} $$f -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
- then printf "%s" "$$f "; fi \
- done; fi
-_CC_FLAGS!= ${_CC_FLAGS_SH}
-CFLAGS+= ${_CC_FLAGS}$(shell ${_CC_FLAGS_SH})
-
-_GGDB_SH= if test "${DEBUG}" = "yes"; then echo "-ggdb -DDEBUG"; else echo ""; fi
-_GGDB!= ${_GGDB_SH}
-GGDB= ${_GGDB}$(shell ${_GGDB_SH})
-CFLAGS+= ${GGDB}