aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-11 07:15:02 +0000
committerRoy Marples <roy@marples.name>2007-04-11 07:15:02 +0000
commitf754c661f57225b92ab72ce8867607341efa0c53 (patch)
treebdab51fe000b4f254e9e936f460b92e11d99cb41 /src/Makefile
parentffc96d8d892cf5b5433eadb5a305d64ab23b274d (diff)
Add new service hooks, remove pmake stuff from our Makefile and fix rc_services_in_state for scheduled.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/Makefile b/src/Makefile
index 8996ce44..99aa07fb 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -5,19 +5,6 @@ CC ?= gcc
CFLAGS ?= -Wall -O2 -pipe
-# Saying that, this function only works with GNU Make :/
-check_gcc=$(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
- then echo "$(1)"; else echo "$(2)"; fi)
-
-# Luckily we can do this more long winded thing with pmake used by the BSDs
-# FIXME: Look into making this into a loop
-WAFTST != if $(CC) -Wextra -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
- then echo "-Wdeclaration-after-statement"; fi
-WSEQ != if $(CC) -Wextra -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
- then echo "-Wsequence-point"; fi
-WEXTRA != if $(CC) -Wextra -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
- then echo "-Wextra"; fi
-
# Loads of nice flags to ensure our code is good
CFLAGS += -pedantic -std=c99 \
-Wall -Wunused -Wimplicit -Wshadow -Wformat=2 \
@@ -26,7 +13,7 @@ CFLAGS += -pedantic -std=c99 \
-Wchar-subscripts -Wcast-align -Wno-format-nonliteral \
$(call check_gcc, -Wdeclaration-after-statement) \
$(call check_gcc, -Wsequence-point) \
- $(call check_gcc, -Wextra) $(WAFTST) $(WSEQ) $(WEXTRA)
+ $(call check_gcc, -Wextra)
# For debugging. -Werror is pointless due to ISO C issues with dlsym
#CFLAGS += -ggdb