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

19 lines
637 B
Makefile
Raw Normal View History

2008-06-21 13:33:06 +02:00
CC=gcc
CFLAGS=-W -Wall -pedantic -Wextra -g -O2
2009-01-22 15:30:31 +01:00
OBJS=main.o common.o cpu.o entropy.o forks.o fw_packets.o interrupts.o \
2013-02-05 13:12:43 +01:00
if_err_.o load.o open_files.o open_inodes.o processes.o swap.o threads.o \
uptime.o
2009-01-22 15:30:31 +01:00
LINKS=cpu entropy forks fw_packets interrupts if_err_eth0 load open_files \
2013-02-05 13:12:43 +01:00
open_inodes processes swap threads uptime
2008-06-21 13:33:06 +02:00
%.o:%.c
${CC} ${CFLAGS} -c $< -o $@
2008-06-21 13:45:12 +02:00
all:munin-plugins-busybox
2008-06-21 13:52:29 +02:00
strip -s munin-plugins-busybox
2008-06-21 13:45:12 +02:00
for l in ${LINKS}; do test -f $$l || ln -s munin-plugins-busybox $$l; done
munin-plugins-busybox:${OBJS}
2008-06-21 13:33:06 +02:00
${CC} ${CFLAGS} $^ -o $@
clean:
2008-06-21 13:45:12 +02:00
rm -f munin-plugins-busybox ${OBJS} ${LINKS}
2008-06-21 13:33:06 +02:00
.PHONY:all clean