g13: Re-factor high level create code.
[gnupg.git] / g13 / Makefile.am
index a8ae9eb..62437e5 100644 (file)
 
 ## Process this file with automake to produce Makefile.in
 
+EXTRA_DIST = ChangeLog-2011
+
 bin_PROGRAMS = g13
+sbin_PROGRAMS = g13-syshelp
 
-AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/common
+AM_CPPFLAGS = -I$(top_srcdir)/common
 
 include $(top_srcdir)/am/cmacros.am
 
-AM_CFLAGS =  $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(PTH_CFLAGS)
+AM_CFLAGS =  $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(NPTH_CFLAGS)
 
 g13_SOURCES = \
        g13.c g13.h \
+       g13-common.c g13-common.h \
        keyblob.h \
        utils.c utils.h \
        server.c server.h \
        create.c create.h \
        mount.c mount.h \
        mountinfo.c mountinfo.h \
-       call-gpg.c call-gpg.h \
+       call-syshelp.c call-syshelp.h \
        runner.c runner.h \
        backend.c backend.h \
        be-encfs.c be-encfs.h \
        be-truecrypt.c be-truecrypt.h
 
-g13_LDADD = $(libcommonpth) ../gl/libgnu.a \
-       $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(PTH_LIBS) \
+g13_LDADD = $(libcommonpth) \
+       $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(NPTH_LIBS) \
+       $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
+
+
+g13_syshelp_SOURCES = \
+       g13-syshelp.c g13-syshelp.h \
+       g13-common.c g13-common.h \
+       keyblob.h \
+       utils.c utils.h \
+       sh-cmd.c \
+       sh-blockdev.c \
+       sh-dmcrypt.c
+
+g13_syshelp_LDADD = $(libcommon) \
+       $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) \
        $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)