11 include ../../config.mak.uname
12 -include ../../config.mak.autogen
13 -include ../../config.mak
15 ifeq ($(uname_S),Darwin)
17 ifeq ($(shell test -d /sw/lib && echo y),y)
18 CFLAGS += -I/sw/include
22 ifndef NO_DARWIN_PORTS
23 ifeq ($(shell test -d /opt/local/lib && echo y),y)
24 CFLAGS += -I/opt/local/include
25 LDFLAGS += -L/opt/local/lib
32 ifdef NEEDS_CRYPTO_WITH_SSL
38 CFLAGS += $(PTHREADS_CFLAGS)
39 EXTLIBS += $(PTHREAD_LIBS)
42 ifdef HAVE_CLOCK_GETTIME
43 CFLAGS += -DHAVE_CLOCK_GETTIME
51 GIT_LIB = ../../libgit.a
52 VCSSVN_LIB = ../../vcs-svn/lib.a
53 XDIFF_LIB = ../../xdiff/lib.a
55 LIBS = $(VCSSVN_LIB) $(GIT_LIB) $(XDIFF_LIB)
57 QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
60 ifneq ($(findstring $(MAKEFLAGS),w),w)
61 PRINT_DIR = --no-print-directory
66 ifneq ($(findstring $(MAKEFLAGS),s),s)
68 QUIET_CC = @echo ' ' CC $@;
69 QUIET_LINK = @echo ' ' LINK $@;
70 QUIET_SUBDIR0 = +@subdir=
71 QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \
72 $(MAKE) $(PRINT_DIR) -C $$subdir
76 svn-fe$X: svn-fe.o $(VCSSVN_LIB) $(XDIFF_LIB) $(GIT_LIB)
77 $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $(EXTLIBS) -o $@ svn-fe.o $(LIBS)
79 svn-fe.o: svn-fe.c ../../vcs-svn/svndump.h
80 $(QUIET_CC)$(CC) $(CFLAGS) -I../../vcs-svn -o $*.o -c $<
82 svn-fe.html: svn-fe.txt
83 $(QUIET_SUBDIR0)../../Documentation $(QUIET_SUBDIR1) \
84 MAN_TXT=../contrib/svn-fe/svn-fe.txt \
88 $(QUIET_SUBDIR0)../../Documentation $(QUIET_SUBDIR1) \
89 MAN_TXT=../contrib/svn-fe/svn-fe.txt \
91 $(MV) ../../Documentation/svn-fe.1 .
93 ../../vcs-svn/lib.a: FORCE
94 $(QUIET_SUBDIR0)../.. $(QUIET_SUBDIR1) vcs-svn/lib.a
96 ../../xdiff/lib.a: FORCE
97 $(QUIET_SUBDIR0)../.. $(QUIET_SUBDIR1) xdiff/lib.a
100 $(QUIET_SUBDIR0)../.. $(QUIET_SUBDIR1) libgit.a
103 $(RM) svn-fe$X svn-fe.o svn-fe.html svn-fe.xml svn-fe.1
105 .PHONY: all clean FORCE