1 PYINCLUDE:=$(shell python2.5-config --includes)
2 PYLIB:=$(shell python2.5-config --lib)
3 OS:=$(shell uname | sed 's/[-_].*//')
4 MACHINE:=$(shell uname -m)
5 CFLAGS=-Wall -g -O2 -Werror $(PYINCLUDE) -g
13 CFLAGS += -arch $(MACHINE)
24 all: bup-split bup-join bup-save bup-init bup-server bup-index bup-tick \
25 bup memtest randomgen$(EXT) chashsplit$(SOEXT)
27 randomgen$(EXT): randomgen.o
28 $(CC) $(CFLAGS) -o $@ $<
30 chashsplit$(SOEXT): chashsplitmodule.o
31 $(CC) $(CFLAGS) $(LDFLAGS) $(SHARED) -o $@ $< $(PYLIB)
33 runtests: all runtests-python runtests-cmdline
36 ./wvtest.py $(wildcard t/t*.py)
42 PATH=/bin:/usr/bin $(MAKE) test
45 ./wvtestrun $(MAKE) runtests
48 $(CC) $(CFLAGS) (LDFLAGS) -o $@ $< $(LIBS)
67 gcc -c -o $@ $^ $(CPPFLAGS) $(CFLAGS)
70 rm -f *.o *.so *.dll *.exe *~ .*~ *.pyc */*.pyc */*~ \
72 out[12] out2[tc] tags[12] tags2[tc]