From: Timo Kokkonen Date: Fri, 30 Nov 2012 16:13:53 +0000 (+0200) Subject: Makefile: Adjust default targets X-Git-Url: http://git.itanic.dy.fi/?p=rrdd;a=commitdiff_plain;h=a180a18eebf452ca7605c400f4205a2831a2b6b2 Makefile: Adjust default targets The "all" target will now build all parsers in addition to the main executable. The "default" target builds only the main executable, thus default setup will not have libownet build requirement. Signed-off-by: Timo Kokkonen --- diff --git a/Makefile b/Makefile index 871bcd6..cdf6dd7 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,8 @@ RRDD_OBJS= main.o process.o rrdtool.o parser.o built_in_parsers.o string.o \ ONEWIRE_PARSER_OBJS = onewire_parser.o +ALL_PARSERS = onewire_parser.so + ALL_OBJS = $(RRDD_OBJS) $(ONEWIRE_PARSER_OBJS) ALL_DEBS = $(patsubst %.o,.%.o.d,$(ALL_OBJS)) @@ -20,7 +22,9 @@ else QUIET_LINK = @echo " LINK " $@; endif -all: rrdd +default: rrdd + +all: rrdd $(ALL_PARSERS) rrdd: $(RRDD_OBJS) $(QUIET_LINK)$(CC) -o rrdd $(RRDD_OBJS) -lconfig -ldl -rdynamic