summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-20 13:12:21 +0000
committerRoy Marples <roy@marples.name>2007-04-20 13:12:21 +0000
commitc52f2164502544c17811e47fc3236fe87aa7fc5b (patch)
tree61d8fd8bb068f00ac8cdfa2fec14f479c754c285 /src/Makefile
parenta316a1fa7222ea845c546c02cefb71632616d862 (diff)
downloadopenrc-c52f2164502544c17811e47fc3236fe87aa7fc5b.tar.gz
openrc-c52f2164502544c17811e47fc3236fe87aa7fc5b.tar.bz2
openrc-c52f2164502544c17811e47fc3236fe87aa7fc5b.tar.xz
Added the rc-abort command, #175106 thanks to Daniel Drake.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index e255f19..4b39bbe 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -5,6 +5,9 @@ CC ?= gcc
CFLAGS ?= -Wall -O2 -pipe
+check_gcc=$(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
+ then echo "$(1)"; else echo "$(2)"; fi)
+
# Loads of nice flags to ensure our code is good
CFLAGS += -pedantic -std=c99 \
-Wall -Wunused -Wimplicit -Wshadow -Wformat=2 \
@@ -48,7 +51,7 @@ RCLINKS = einfon einfo ewarnn ewarn eerrorn eerror ebegin eend ewend \
mark_service_stopping mark_service_stopped \
mark_service_inactive mark_service_wasinactive \
mark_service_coldplugged \
- get_options save_options \
+ get_options save_options rc-abort \
is_runlevel_start is_runlevel_stop service_started_daemon
# Quick hack to make my life easier on BSD and Linux