build and link with libgit.a, crude hack for now
authorChristian Thaeter <ct@pipapo.org>
Mon, 17 Dec 2007 12:15:31 +0000 (13:15 +0100)
committerChristian Thaeter <ct@pipapo.org>
Mon, 17 Dec 2007 12:15:31 +0000 (13:15 +0100)
Makefile.am

index b0c00f4..dc6e33a 100644 (file)
 #  along with this program; if not, write to the Free Software
 #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-AUTOMAKE_OPTIONS=gnu
+AUTOMAKE_OPTIONS = gnu
+
+git/libgit.a:
+       cd $(top_srcdir)/git; make libgit.a && cp libgit.a $(abs_top_builddir)/git/
+
+SUBDIRS = cwa
 
 ctgit_srcdir = $(top_srcdir)/src
 
 bin_PROGRAMS = ctgit
 
-ctgit_CFLAGS = $(CFLAGS) -std=gnu99 -Wall -Wextra
+ctgit_CFLAGS = $(CFLAGS) -std=gnu99 -Wall -Wextra -Icwa/libcwa -Icwa
 
 ctgit_SOURCES =                                        \
        $(ctgit_srcdir)/ctgit.c                 \
@@ -35,7 +40,7 @@ noinst_HEADERS =                              \
        $(ctgit_srcdir)/query.h                 \
        $(ctgit_srcdir)/actions.h
 
-ctgit_LDADD = -lcwa
+ctgit_LDADD = cwa/libcwa.a git/libgit.a
 
 #### test suite
 ##check_PROGRAMS =