2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
contrib-munin/tools/munin-node-c/Makefile

25 lines
546 B
Makefile
Raw Normal View History

2013-02-08 17:36:32 +01:00
CC=gcc
CFLAGS=-W -Wall -pedantic -Wextra -g -O2
OBJS=main.o
LINKS=
%.o: %.c
${CC} ${CFLAGS} -c $< -o $@
all: munin-node-c
munin-node-c: ${OBJS}
${CC} ${CFLAGS} $^ -o $@
clean:
rm -f munin-node-c ${OBJS} ${LINKS}
rm -Rf plugins
plugins: plugins/.munin-plugins-busybox.installed
plugins/.munin-plugins-busybox.installed:
mkdir -p plugins
cd ../munin-plugins-busybox && make
cd plugins && for i in $$(find ../../munin-plugins-busybox -type l); do ln -s $$i; done
touch plugins/.munin-plugins-busybox.installed
.PHONY: all clean plugins