diff options
author | Helmut Grohne <helmut@subdivi.de> | 2008-06-21 11:33:06 +0000 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2008-06-21 11:33:06 +0000 |
commit | f481beb2dc4e6db37ea79f32960cbfa4a148eb90 (patch) | |
tree | 9c1f37c19b727d34fd8ab23e6e10b8866d46bb43 /Makefile | |
download | munin-plugins-busybox-f481beb2dc4e6db37ea79f32960cbfa4a148eb90.tar.gz |
initial tree
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..56a56f6 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +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:main + for l in ${LINKS}; do test -f $$l || ln -s main $$l; done +main:${OBJS} + ${CC} ${CFLAGS} $^ -o $@ +clean: + rm -f main ${OBJS} ${LINKS} +.PHONY:all clean |