summaryrefslogtreecommitdiff
path: root/jobmon/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'jobmon/Makefile')
-rw-r--r--jobmon/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/jobmon/Makefile b/jobmon/Makefile
new file mode 100644
index 0000000..9fa9050
--- /dev/null
+++ b/jobmon/Makefile
@@ -0,0 +1,11 @@
+# Use EXTRA_FLAGS on the command line for additional options (-g, -static, etc.)
+all: netmon
+netmon: netmon.c
+ $(CC) -Wall $(CFLAGS) $(EXTRA_FLAGS) -o $@ $<
+install-netmon: netmon
+ install -m 0555 netmon /usr/sbin/netmon
+ install -m 0555 netmon.rc /etc/rc.d/netmon
+ @echo "-> Enable netmon service manually with rcctl(8)"
+install: install-netmon
+clean:
+ rm -f netmon