From a180a18eebf452ca7605c400f4205a2831a2b6b2 Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Fri, 30 Nov 2012 18:13:53 +0200 Subject: [PATCH] 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 --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.44.0