equal
deleted
inserted
replaced
57 $(CC) -o $@ $(objs) $(LDFLAGS) |
57 $(CC) -o $@ $(objs) $(LDFLAGS) |
58 |
58 |
59 clean: remove_fixes |
59 clean: remove_fixes |
60 rm -f $(objs) $(exe) |
60 rm -f $(objs) $(exe) |
61 |
61 |
62 fixes: $(fixbackups) |
62 fixes:: $(fixbackups) |
63 |
63 |
64 source/pl_elfexecutable.h.original: |
64 source/pl_elfexecutable.h.original: |
65 cp $(basename $@) $@ && \ |
65 cp $(basename $@) $@ && \ |
66 sed -e 's|using std::hash_map;|using __gnu_cxx::hash_map;|g' -i $(basename $@) |
66 sed -e 's|using std::hash_map;|using __gnu_cxx::hash_map;|g' -i $(basename $@) |
67 |
67 |
82 sed -e 's|ParseCapability1(b, e, aCapabilities, invert);|ParseCapability1(\&*b, \&*e, aCapabilities, invert);|g' \ |
82 sed -e 's|ParseCapability1(b, e, aCapabilities, invert);|ParseCapability1(\&*b, \&*e, aCapabilities, invert);|g' \ |
83 -e 's|memcpy(symbol, p, len);|memcpy(symbol, \&*p, len);|g' -i $(basename $@) |
83 -e 's|memcpy(symbol, p, len);|memcpy(symbol, \&*p, len);|g' -i $(basename $@) |
84 |
84 |
85 |
85 |
86 remove_fixes: |
86 remove_fixes: |
87 for file in $(fixbackups); do if [ -f $$file ]; then mv -f $$file $${file%original}; fi; done |
87 for file in $(fixbackups); do if [ -f $$file ]; then mv -f $$file $${file%\.original}; fi; done |
88 |
88 |