From ab5d754cbf8cf3906f40f70915d4cdb011256090 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 20 Aug 2013 18:08:28 +0200 Subject: [PATCH] Add -lpthread to MY_LIB_INC instead of changing the rule --- dol_example1/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dol_example1/Makefile b/dol_example1/Makefile index a2e8a23..81b3c74 100644 --- a/dol_example1/Makefile +++ b/dol_example1/Makefile @@ -58,9 +58,9 @@ systemc/src/sc_application: systemc/src/Makefile.new systemc/src/Makefile.new: systemc/src/Makefile @$(ECHO) "\t[GEN]\t$@" - @$(SED) -e 's@^SYSTEMC_INC.*@SYSTEMC_INC = -I $(SYSTEMC_INC)@' \ + @$(SED) -e 's@^SYSTEMC_INC.*@SYSTEMC_INC = -I$(SYSTEMC_INC)@' \ -e 's@^SYSTEMC_LIB.*@SYSTEMC_LIB = $(SYSTEMC_LIB)@' \ - -e 's@# -lpthread@-lpthread #@' \ + -e 's@^MY_LIB_INC.*@& -lpthread@' \ systemc/src/Makefile > systemc/src/Makefile.new systemc/src/Makefile: $(PROGRAM)_flattened.xml -- 2.30.2