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 randomgen chashsplit.so
17 randomgen: randomgen.o
18 $(CC) $(CFLAGS) -o $@ $<
20 chashsplit.so: chashsplitmodule.o
21 $(CC) $(CFLAGS) $(SHARED) -o $@ $< $(PYLIB)
24 ./wvtest.py $(wildcard t/t*.py)
30 PATH=/bin:/usr/bin $(MAKE) test
32 test: all runtests-cmdline
33 ./wvtestrun $(MAKE) runtests
36 $(CC) $(CFLAGS) (LDFLAGS) -o $@ $< $(LIBS)
51 gcc -c -o $@ $^ $(CPPFLAGS) $(CFLAGS)
54 rm -f *.o *.so *~ .*~ *.pyc */*.pyc */*~ \
56 out[12] out2[tc] tags[12] tags2[tc]