From: Sebastian Date: Tue, 20 Aug 2013 16:08:28 +0000 (+0200) Subject: Add -lpthread to MY_LIB_INC instead of changing the rule X-Git-Url: http://sraa.de/git/?a=commitdiff_plain;h=ab5d754cbf8cf3906f40f70915d4cdb011256090;p=jump.git Add -lpthread to MY_LIB_INC instead of changing the rule --- 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