@cryptotaxi247 / netdata-1 / commits / 5aa081ec4

simple makefile

Costa Tsaousis (ktsaou) committed May 5, 2014 at 02:13 UTC 5aa081ec4084191d05980a4789236113aa859d22
1 file changed +26
Makefile new
+26
@@ -0,0 +1,26 @@
1 +
2 +ifdef debug
3 +CFLAGS=-Wall -Wextra -ggdb
4 +else
5 +CFLAGS=-Wall -Wextra -O3
6 +endif
7 +
8 +all: netdata plugins
9 +
10 +netdata: netdata.c
11 + $(CC) $(CFLAGS) -o netdata netdata.c -lpthread -lz
12 +
13 +plugins: plugins.d/apps.plugin
14 +
15 +plugins.d/apps.plugin: apps_plugin.c
16 + $(CC) $(CFLAGS) -o plugins.d/apps.plugin apps_plugin.c
17 +
18 +clean:
19 + rm -f *.o netdata plugins.d/apps.plugin core
20 +
21 +install: plugins
22 + cp apps.plugin plugins.d/
23 +
24 +getconf:
25 + mv conf.d/netdata.conf conf.d/netdata.conf.old
26 + wget -O conf.d/netdata.conf "http://localhost:19999/netdata.conf"