2 # 2007, 2008, Christian Thaeter <ct@pipapo.org>
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU Affero General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (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 Affero General Public License for more details.
14 # You should have received a copy of the GNU Affero General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 AUTOMAKE_OPTIONS = gnu
19 $(top_srcdir)/git/libgit.a: $(top_srcdir)/git/*.c
20 cd $(top_srcdir)/git; make libgit.a
22 $(abs_top_builddir)/git/libgit.a: $(top_srcdir)/git/libgit.a
23 mkdir -p $(abs_top_builddir)/git
24 cp $(top_srcdir)/git/libgit.a $(abs_top_builddir)/git/
26 $(top_srcdir)/git/xdiff/lib.a: $(top_srcdir)/git/xdiff/*.c
27 cd $(top_srcdir)/git; make xdiff/lib.a
29 $(abs_top_builddir)/git/xdiff/lib.a: $(top_srcdir)/git/xdiff/lib.a
30 mkdir -p $(abs_top_builddir)/git/xdiff
31 cp $(top_srcdir)/git/xdiff/lib.a $(abs_top_builddir)/git/xdiff/
33 webgit_srcdir = $(top_srcdir)/src
37 webgit_CFLAGS = $(CFLAGS) -std=gnu99 -Wall -Wextra
40 $(webgit_srcdir)/webgit.c \
41 $(webgit_srcdir)/options.c \
42 $(webgit_srcdir)/query.c \
43 $(webgit_srcdir)/actions.c \
44 $(webgit_srcdir)/age.c \
45 $(webgit_srcdir)/summary.c \
46 $(webgit_srcdir)/repo.c \
47 $(webgit_srcdir)/object.c \
48 $(webgit_srcdir)/object_commit.c \
49 $(webgit_srcdir)/object_tree.c \
50 $(webgit_srcdir)/object_blob.c \
51 $(webgit_srcdir)/object_tag.c \
52 $(webgit_srcdir)/branch.c \
53 $(webgit_srcdir)/tag.c \
54 $(webgit_srcdir)/log.c \
55 $(webgit_srcdir)/rxpd_client.c
58 $(webgit_srcdir)/webgit.h \
59 $(webgit_srcdir)/options.h \
60 $(webgit_srcdir)/query.h \
61 $(webgit_srcdir)/actions.h \
62 $(webgit_srcdir)/age.h \
63 $(webgit_srcdir)/summary.h \
64 $(webgit_srcdir)/repo.h \
65 $(webgit_srcdir)/object.h \
66 $(webgit_srcdir)/branch.h \
67 $(webgit_srcdir)/tag.h \
68 $(webgit_srcdir)/log.h \
69 $(webgit_srcdir)/rxpd_client.h
71 webgit_DEPENDENCIES = $(abs_top_builddir)/git/libgit.a $(abs_top_builddir)/git/xdiff/lib.a
73 webgit_LDADD = -lcwa -lssl git/libgit.a git/xdiff/lib.a
78 ##tests_srcdir = $(top_srcdir)/tests
79 ##TESTS = $(tests_srcdir)/test.sh