2 # 2007, 2008 Christian Thaeter <ct@pipapo.org>
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License as
6 # published by the Free Software Foundation; either version 2 of the
7 # License, or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 AUTOMAKE_OPTIONS = gnu
20 $(top_srcdir)/git/libgit.a: $(top_srcdir)/git/*.c
21 cd $(top_srcdir)/git; make libgit.a
23 $(abs_top_builddir)/git/libgit.a: $(top_srcdir)/git/libgit.a
24 mkdir -p $(abs_top_builddir)/git
25 cp $(top_srcdir)/git/libgit.a $(abs_top_builddir)/git/
27 $(top_srcdir)/git/xdiff/lib.a: $(top_srcdir)/git/xdiff/*.c
28 cd $(top_srcdir)/git; make xdiff/lib.a
30 $(abs_top_builddir)/git/xdiff/lib.a: $(top_srcdir)/git/xdiff/lib.a
31 mkdir -p $(abs_top_builddir)/git/xdiff
32 cp $(top_srcdir)/git/xdiff/lib.a $(abs_top_builddir)/git/xdiff/
34 webgit_srcdir = $(top_srcdir)/src
38 webgit_CFLAGS = $(CFLAGS) -std=gnu99 -Wall -Wextra
41 $(webgit_srcdir)/webgit.c \
42 $(webgit_srcdir)/options.c \
43 $(webgit_srcdir)/query.c \
44 $(webgit_srcdir)/actions.c \
45 $(webgit_srcdir)/age.c \
46 $(webgit_srcdir)/summary.c \
47 $(webgit_srcdir)/repo.c \
48 $(webgit_srcdir)/object.c \
49 $(webgit_srcdir)/object_commit.c \
50 $(webgit_srcdir)/object_tree.c \
51 $(webgit_srcdir)/object_blob.c \
52 $(webgit_srcdir)/object_tag.c \
53 $(webgit_srcdir)/branch.c \
54 $(webgit_srcdir)/tag.c \
55 $(webgit_srcdir)/log.c \
56 $(webgit_srcdir)/rxpd_client.c
59 $(webgit_srcdir)/webgit.h \
60 $(webgit_srcdir)/options.h \
61 $(webgit_srcdir)/query.h \
62 $(webgit_srcdir)/actions.h \
63 $(webgit_srcdir)/age.h \
64 $(webgit_srcdir)/summary.h \
65 $(webgit_srcdir)/repo.h \
66 $(webgit_srcdir)/object.h \
67 $(webgit_srcdir)/branch.h \
68 $(webgit_srcdir)/tag.h \
69 $(webgit_srcdir)/log.h \
70 $(webgit_srcdir)/rxpd_client.h
72 webgit_DEPENDENCIES = $(abs_top_builddir)/git/libgit.a $(abs_top_builddir)/git/xdiff/lib.a
74 webgit_LDADD = -lcwa -lssl git/libgit.a git/xdiff/lib.a
79 ##tests_srcdir = $(top_srcdir)/tests
80 ##TESTS = $(tests_srcdir)/test.sh