Add -lpthread to MY_LIB_INC instead of changing the rule
authorSebastian <basti@sraa.de>
Tue, 20 Aug 2013 16:08:28 +0000 (18:08 +0200)
committerSebastian <basti@sraa.de>
Tue, 20 Aug 2013 16:08:28 +0000 (18:08 +0200)
dol_example1/Makefile

index a2e8a2306dafb32c362725ffe3783b9db77c9890..81b3c74ada3852a03b244a0a62f326c508873633 100644 (file)
@@ -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