we need to link with libssl for libgit
[webgit] / Makefile.am
1 #  Copyright (C)
2 #    2007,               Christian Thaeter <ct@pipapo.org>
3 #
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.
8 #
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.
13 #
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.
17
18 AUTOMAKE_OPTIONS = gnu
19
20 git/libgit.a:
21         cd $(top_srcdir)/git; make libgit.a && cp libgit.a $(abs_top_builddir)/git/
22
23 ctgit_srcdir = $(top_srcdir)/src
24
25 bin_PROGRAMS = ctgit
26
27 ctgit_CFLAGS = $(CFLAGS) -std=gnu99 -Wall -Wextra
28
29 ctgit_SOURCES =                                 \
30         $(ctgit_srcdir)/ctgit.c                 \
31         $(ctgit_srcdir)/options.c               \
32         $(ctgit_srcdir)/query.c                 \
33         $(ctgit_srcdir)/actions.c               \
34         $(ctgit_srcdir)/age.c                   \
35         $(ctgit_srcdir)/summary.c               \
36         $(ctgit_srcdir)/repo.c                  \
37         $(ctgit_srcdir)/object.c                \
38         $(ctgit_srcdir)/log.c
39
40 noinst_HEADERS =                                \
41         $(ctgit_srcdir)/ctgit.h                 \
42         $(ctgit_srcdir)/options.h               \
43         $(ctgit_srcdir)/query.h                 \
44         $(ctgit_srcdir)/actions.h               \
45         $(ctgit_srcdir)/age.h                   \
46         $(ctgit_srcdir)/summary.h               \
47         $(ctgit_srcdir)/repo.h                  \
48         $(ctgit_srcdir)/object.h                \
49         $(ctgit_srcdir)/log.h
50
51 ctgit_LDADD = -lcwa -lssl git/libgit.a
52
53 #### test suite
54 ##check_PROGRAMS =
55
56 ##tests_srcdir = $(top_srcdir)/tests
57 ##TESTS = $(tests_srcdir)/test.sh
58
59 ##check_PROGRAMS +=