g13: Re-factor high level create code.
[gnupg.git] / g13 / Makefile.am
index 3143e8a..62437e5 100644 (file)
@@ -7,40 +7,57 @@
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 3 of the License, or
 # (at your option) any later version.
-# 
+#
 # GnuPG is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
-# 
+#
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, see <http://www.gnu.org/licenses/>.
 
 ## Process this file with automake to produce Makefile.in
 
-bin_PROGRAMS = g13 
+EXTRA_DIST = ChangeLog-2011
 
-AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/common
+bin_PROGRAMS = g13
+sbin_PROGRAMS = g13-syshelp
+
+AM_CPPFLAGS = -I$(top_srcdir)/common
 
 include $(top_srcdir)/am/cmacros.am
 
-AM_CFLAGS =  $(LIBGCRYPT_CFLAGS)  $(LIBASSUAN_PTH_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) ../jnlib/libjnlib.a ../gl/libgnu.a \
-       $(LIBGCRYPT_LIBS) $(LIBASSUAN_PTH_LIBS) $(PTH_LIBS) \
-       $(GPG_ERROR_LIBS) $(LIBINTL)
+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)