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
6 ifneq ($(OS),CYGWIN_NT-5.1)
13 CFLAGS += -arch $(MACHINE)
16 ifeq ($(OS),CYGWIN_NT-5.1)
23 all: bup-split bup-join bup-save bup-init bup-server bup-index bup-tick \
24 bup randomgen chashsplit.$(SOEXT)
26 randomgen: randomgen.o
27 $(CC) $(CFLAGS) -o $@ $<
29 chashsplit.$(SOEXT): chashsplitmodule.o
30 $(CC) $(CFLAGS) $(LDFLAGS) $(SHARED) -o $@ $< $(PYLIB)
32 runtests: all runtests-python runtests-cmdline
35 ./wvtest.py $(wildcard t/t*.py)
41 PATH=/bin:/usr/bin $(MAKE) test
44 ./wvtestrun $(MAKE) runtests
47 $(CC) $(CFLAGS) (LDFLAGS) -o $@ $< $(LIBS)
62 gcc -c -o $@ $^ $(CPPFLAGS) $(CFLAGS)
65 rm -f *.o *.so *.dll *~ .*~ *.pyc */*.pyc */*~ \
67 out[12] out2[tc] tags[12] tags2[tc]