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 \
16 bup randomgen chashsplit.so
18 randomgen: randomgen.o
19 $(CC) $(CFLAGS) -o $@ $<
21 chashsplit.so: chashsplitmodule.o
22 $(CC) $(CFLAGS) $(SHARED) -o $@ $< $(PYLIB)
25 ./wvtest.py $(wildcard t/t*.py)
31 PATH=/bin:/usr/bin $(MAKE) test
33 test: all runtests-cmdline
34 ./wvtestrun $(MAKE) runtests
37 $(CC) $(CFLAGS) (LDFLAGS) -o $@ $< $(LIBS)
52 gcc -c -o $@ $^ $(CPPFLAGS) $(CFLAGS)
55 rm -f *.o *.so *~ .*~ *.pyc */*.pyc */*~ \
57 out[12] out2[tc] tags[12] tags2[tc]