-diff -wru multifast-v1.0.0/ahocorasick/Makefile multifast-v1.0.0-modified/ahocorasick/Makefile
+diff -ru multifast-v1.0.0/ahocorasick/Makefile multifast-v1.0.0-patched/ahocorasick/Makefile
 --- multifast-v1.0.0/ahocorasick/Makefile	2012-09-02 19:02:49.000000000 -0400
-+++ multifast-v1.0.0-modified/ahocorasick/Makefile	2012-11-28 15:01:32.877168721 -0500
-@@ -1,5 +1,5 @@
- LIBNAME := libahocorasick.a
++++ multifast-v1.0.0-patched/ahocorasick/Makefile	2012-12-06 14:26:39.363963248 -0500
+@@ -1,15 +1,33 @@
+-LIBNAME := libahocorasick.a
 -CFLAGS := -Wall
-+CFLAGS := -Wall -fPIC
++PREFIX ?= /usr/local
++INSTALL_INC := $(PREFIX)/include/ahocorasick
++INSTALL_LIB := $(PREFIX)/lib
++
++RANLIB ?= ranlib
++
++LIBNAME ?= libahocorasick.a
++CFLAGS  := --pedantic -fPIC -O2
  HEADERS := actypes.h ahocorasick.h node.h
  
  $(LIBNAME): ahocorasick.o node.o
-diff -wru multifast-v1.0.0/ahocorasick/actypes.h multifast-v1.0.0-modified/ahocorasick/actypes.h
---- multifast-v1.0.0/ahocorasick/actypes.h	2012-11-28 16:45:19.486989737 -0500
-+++ multifast-v1.0.0-modified/ahocorasick/actypes.h	2012-11-28 16:45:35.377238349 -0500
+-	ar -cvq $(LIBNAME) ahocorasick.o node.o
++	$(AR) -cvq $@ $^
++	$(RANLIB) $@
+ 
+ ahocorasick.o: ahocorasick.c $(HEADERS)
+-	cc -c ahocorasick.c $(CFLAGS)
++	$(CC) -c $< $(CFLAGS)
+ 
+ node.o: node.c $(HEADERS)
+-	cc -c node.c $(CFLAGS)
++	$(CC) -c $< $(CFLAGS)
+ 
+ clean:
+-	rm -f ahocorasick.o node.o $(LIBNAME)
++	rm -f -- ahocorasick.o node.o $(LIBNAME)
++
++install: $(LIBNAME) $(HEADERS)
++	cp $(LIBNAME) $(INSTALL_LIB)
++	mkdir -p $(INSTALL_INC)
++	cp $(HEADERS) $(INSTALL_INC)
++
++uninstall:
++	rm -f -- $(INSTALL_LIB)/$(LIBNAME)
++	rm -rf -- $(INSTALL_INC)
++
++.PHONY: clean install uninstall
+diff -ru multifast-v1.0.0/ahocorasick/actypes.h multifast-v1.0.0-patched/ahocorasick/actypes.h
+--- multifast-v1.0.0/ahocorasick/actypes.h	2012-09-02 15:19:00.000000000 -0400
++++ multifast-v1.0.0-patched/ahocorasick/actypes.h	2012-12-06 14:16:47.818054233 -0500
 @@ -61,8 +61,8 @@
  **/
  typedef struct

 	ac_automata_finalize() you can not add new patterns to the automata. */
 } AC_ERROR_t;
 

 } AC_TEXT_t;
 
 /* AC_MATCH_t:
@@ -108,7 +108,7 @@
 	ACERR_DUPLICATE_PATTERN, /* Duplicate patterns */
 	ACERR_LONG_PATTERN, /* Pattern length is longer than AC_PATTRN_MAX_LENGTH */
