]> arthur.barton.de Git - bup.git/blobdiff - Makefile
Add a C module to do the rolling checksum.
[bup.git] / Makefile
index 081bd4d77adeff0b8dec9f00eff1dd8fb0564371..b66798cc8e668552201bd16eef720150a90de158 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
-CFLAGS=-Wall -g -Werror
+CFLAGS=-Wall -g -Werror -I/usr/include/python2.5 -g -fwrapv -fPIC
 
 default: all
 
-all: hashsplit hashjoin datagen
+all: hashsplit hashjoin datagen hashsplit.so
 
 hashsplit: hashsplit.o
 
@@ -10,6 +10,9 @@ datagen: datagen.o
 
 hashjoin: hashjoin.sh
 
+hashsplit.so: hashsplitmodule.o
+       $(CC) -shared -Wl,-Bsymbolic-functions -o $@ $<
+
 test: hashsplit hashjoin
        ./hashsplit.py <testfile1 >tags1
        ./hashsplit.py <testfile2 >tags2
@@ -32,5 +35,5 @@ test: hashsplit hashjoin
        gcc -c -o $@ $^ $(CPPFLAGS) $(CFLAGS)
 
 clean:
-       rm -f *.o *~ hashsplit hashjoin hsplit hjoin datagen \
+       rm -f *.o *.so *~ hashsplit hashjoin hsplit hjoin datagen \
                out[12] tags[12] .*~