CC=cc CC_OPTS=-g -O2 INCLUDES=-Ilibsvn_delta -I/usr/local/include/subversion-1 -I/usr/local/apr/include/apr-0 .SUFFIXES: .c .o .c.o: $(CC) $(CC_OPTS) $(INCLUDES) -o $@ -c $< LIBSVN_DELTA_DEPS = libsvn_delta/compose_delta.o libsvn_delta/default_editor.o libsvn_delta/svndiff.o libsvn_delta/text_delta.o libsvn_delta/vdelta.o libsvn_delta/xdelta.o libsvn_delta/xml_output.o libsvn_delta/cancel.o libsvn_delta/path_driver.o libsvn_delta/xml_parse.o libsvn_delta.a: $(LIBSVN_DELTA_DEPS) ar r $@ $? # need to add libsvn_delta/xml_parse.o as target as soon as xml_output # is working SVNPATCH_DEPS = main.o libsvn_delta.a svnpatch: $(SVNPATCH_DEPS) $(CC) $(CC_OPTS) $(INCLUDES) -o svnpatch main.o libsvn_delta.a -L/usr/local/apr/lib -L/usr/local/lib -lsvn_wc-1 -lsvn_subr-1 -lapr-0 -laprutil-0 clean: rm -f svnpatch $(SVNPATCH_DEPS) $(LIBSVN_DELTA_DEPS) all: svnpatch .PHONY: all clean