1 PYINCLUDE:=$(shell python2.5-config --includes)
2 PYLIB:=$(shell python2.5-config --lib)
4 MACHINE:=$(shell uname -m)
5 CFLAGS=-Wall -g -O2 -Werror $(PYINCLUDE) -g -fPIC
9 CFLAGS += -arch $(MACHINE)
15 all: bup-split bup-join bup-save bup-init bup-server bup-index bup-tick \
16 bup randomgen chashsplit.so
18 randomgen: randomgen.o
19 $(CC) $(CFLAGS) -o $@ $<
21 chashsplit.so: chashsplitmodule.o
22 $(CC) $(CFLAGS) $(SHARED) -o $@ $< $(PYLIB)
24 runtests: all runtests-python runtests-cmdline
27 ./wvtest.py $(wildcard t/t*.py)
33 PATH=/bin:/usr/bin $(MAKE) test
36 ./wvtestrun $(MAKE) runtests
39 $(CC) $(CFLAGS) (LDFLAGS) -o $@ $< $(LIBS)
54 gcc -c -o $@ $^ $(CPPFLAGS) $(CFLAGS)
57 rm -f *.o *.so *~ .*~ *.pyc */*.pyc */*~ \
59 out[12] out2[tc] tags[12] tags2[tc]