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 <timo.t.kokkonen@iki.fi>
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))
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