2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
contrib-munin/tools/munin-plugins-busybox/Makefile
2013-01-28 13:29:19 +01:00

17 lines
558 B
Makefile

CC=gcc
CFLAGS=-W -Wall -pedantic -Wextra -g -O2
OBJS=main.o common.o cpu.o entropy.o forks.o fw_packets.o interrupts.o load.o \
open_files.o open_inodes.o processes.o swap.o uptime.o
LINKS=cpu entropy forks fw_packets interrupts load open_files open_inodes \
processes swap uptime
%.o:%.c
${CC} ${CFLAGS} -c $< -o $@
all:munin-plugins-busybox
for l in ${LINKS}; do test -f $$l || ln -s munin-plugins-busybox $$l; done
munin-plugins-busybox:${OBJS}
${CC} ${CFLAGS} $^ -o $@
clean:
rm -f munin-plugins-busybox ${OBJS} ${LINKS}
.PHONY:all clean