From: Michael Stapelberg Date: Wed, 2 May 2012 18:00:50 +0000 (+0200) Subject: makefile: use LDFLAGS when linking test.commands_parser (Thanks Marcus) X-Git-Tag: 4.3~236^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4e734bf33132cf8ad0e2e668d1d24da8589ca2ea;p=i3%2Fi3 makefile: use LDFLAGS when linking test.commands_parser (Thanks Marcus) --- diff --git a/Makefile b/Makefile index 25290b81..192d3d78 100644 --- a/Makefile +++ b/Makefile @@ -67,7 +67,7 @@ include/GENERATED_tokens.h: include/GENERATED_call.h # and once as an object file for i3. src/commands_parser.o: src/commands_parser.c ${HEADERS} ${CMDPARSE_HEADERS} echo "[i3] CC $<" - $(CC) $(CPPFLAGS) $(CFLAGS) -DTEST_PARSER -DLOGLEVEL="((uint64_t)1 << $(shell awk '/$(shell basename $< .c)/ { print NR; exit 0; }' loglevels.tmp))" -o test.commands_parser $< $(LIBS) + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DTEST_PARSER -DLOGLEVEL="((uint64_t)1 << $(shell awk '/$(shell basename $< .c)/ { print NR; exit 0; }' loglevels.tmp))" -o test.commands_parser $< $(LIBS) $(CC) $(CPPFLAGS) $(CFLAGS) -DLOGLEVEL="((uint64_t)1 << $(shell awk '/$(shell basename $< .c)/ { print NR; exit 0; }' loglevels.tmp))" -c -o $@ $< src/cfgparse.yy.o: src/cfgparse.l src/cfgparse.y.o ${HEADERS}