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}
|
2013-02-09 13:28:59 +01:00
|
|
|
rm -Rf plugins
|
|
|
|
|
2013-02-09 14:11:56 +01:00
|
|
|
plugins: plugins/.munin-plugins-busybox.installed
|
|
|
|
|
|
|
|
plugins/.munin-plugins-busybox.installed:
|
2013-02-09 13:28:59 +01:00
|
|
|
mkdir -p plugins
|
|
|
|
cd ../munin-plugins-busybox && make
|
|
|
|
cd plugins && for i in $$(find ../../munin-plugins-busybox -type l); do ln -s $$i; done
|
2013-02-09 14:11:56 +01:00
|
|
|
touch plugins/.munin-plugins-busybox.installed
|
2013-02-09 13:28:59 +01:00
|
|
|
|
|
|
|
.PHONY: all clean plugins
|