2011-11-02 15:45:32 -04:00
# Makefile for C source code
#
# Copyright (C) 2011 Colin Walters <walters@verbum.org>
#
2011-11-10 13:17:04 -05:00
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
2011-11-02 15:45:32 -04:00
#
2011-11-10 13:17:04 -05:00
# This library is distributed in the hope that it will be useful,
2011-11-02 15:45:32 -04:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2011-11-10 13:17:04 -05:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
2011-11-02 15:45:32 -04:00
#
2011-11-10 13:17:04 -05:00
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
2011-11-02 15:45:32 -04:00
bin_PROGRAMS += ostree
2011-11-14 15:39:38 -05:00
ostree_SOURCES = src/ostree/main.c \
2012-09-08 18:46:50 -04:00
src/ostree/ot-builtin-admin.c \
2012-12-19 17:52:46 -05:00
src/ostree/ot-builtins.h \
2012-03-05 11:32:48 -05:00
src/ostree/ot-builtin-cat.c \
2012-04-16 21:21:50 -04:00
src/ostree/ot-builtin-config.c \
2011-11-14 15:39:38 -05:00
src/ostree/ot-builtin-checkout.c \
2011-11-18 07:29:13 -05:00
src/ostree/ot-builtin-checksum.c \
2011-11-14 15:39:38 -05:00
src/ostree/ot-builtin-commit.c \
src/ostree/ot-builtin-diff.c \
src/ostree/ot-builtin-fsck.c \
2015-02-25 13:55:14 -05:00
src/ostree/ot-builtin-gpg-sign.c \
2011-11-14 15:39:38 -05:00
src/ostree/ot-builtin-init.c \
2012-05-01 17:43:26 -04:00
src/ostree/ot-builtin-pull-local.c \
2013-08-14 11:47:30 +02:00
src/ostree/ot-builtin-log.c \
2011-11-27 20:10:48 -05:00
src/ostree/ot-builtin-ls.c \
2012-02-24 10:23:35 -05:00
src/ostree/ot-builtin-prune.c \
2013-06-29 14:51:08 -04:00
src/ostree/ot-builtin-refs.c \
2011-11-14 15:39:38 -05:00
src/ostree/ot-builtin-remote.c \
2013-08-14 12:42:13 +02:00
src/ostree/ot-builtin-reset.c \
2011-11-14 15:39:38 -05:00
src/ostree/ot-builtin-rev-parse.c \
2014-07-31 18:50:19 -04:00
src/ostree/ot-builtin-summary.c \
2011-11-14 15:39:38 -05:00
src/ostree/ot-builtin-show.c \
2013-08-15 09:17:37 -04:00
src/ostree/ot-builtin-static-delta.c \
2011-11-30 09:21:14 -05:00
src/ostree/ot-main.h \
src/ostree/ot-main.c \
2013-08-14 11:25:32 +02:00
src/ostree/ot-dump.h \
src/ostree/ot-dump.c \
2013-08-29 17:23:20 +02:00
src/ostree/ot-editor.c \
src/ostree/ot-editor.h \
2011-11-02 15:45:32 -04:00
$(NULL)
2011-11-14 15:08:09 -05:00
2012-09-08 18:46:50 -04:00
# Admin subcommand
ostree_SOURCES += \
2012-12-09 17:01:51 -05:00
src/ostree/ot-admin-builtin-init-fs.c \
2012-09-08 18:46:50 -04:00
src/ostree/ot-admin-builtin-diff.c \
src/ostree/ot-admin-builtin-deploy.c \
2013-07-23 09:19:24 -04:00
src/ostree/ot-admin-builtin-undeploy.c \
2014-03-17 12:28:36 -04:00
src/ostree/ot-admin-builtin-instutil.c \
2013-07-15 16:13:12 -04:00
src/ostree/ot-admin-builtin-cleanup.c \
2012-12-19 17:52:46 -05:00
src/ostree/ot-admin-builtin-os-init.c \
2015-01-16 13:07:26 -05:00
src/ostree/ot-admin-builtin-set-origin.c \
2013-06-29 11:45:53 -04:00
src/ostree/ot-admin-builtin-status.c \
2014-01-18 17:42:24 -05:00
src/ostree/ot-admin-builtin-switch.c \
2012-12-19 17:52:46 -05:00
src/ostree/ot-admin-builtin-upgrade.c \
2012-09-25 19:13:05 -04:00
src/ostree/ot-admin-builtins.h \
2014-03-17 12:28:36 -04:00
src/ostree/ot-admin-instutil-builtin-selinux-ensure-labeled.c \
2014-03-17 19:24:56 -04:00
src/ostree/ot-admin-instutil-builtin-set-kargs.c \
2014-10-11 08:59:06 -04:00
src/ostree/ot-admin-instutil-builtin-grub2-generate.c \
2014-03-17 12:28:36 -04:00
src/ostree/ot-admin-instutil-builtins.h \
2012-09-08 18:46:50 -04:00
src/ostree/ot-admin-functions.h \
src/ostree/ot-admin-functions.c \
$(NULL)
2015-04-29 11:09:40 -04:00
# Remote subcommand
ostree_SOURCES += \
src/ostree/ot-remote-builtins.h \
src/ostree/ot-remote-builtin-add.c \
src/ostree/ot-remote-builtin-delete.c \
src/ostree/ot-remote-builtin-list.c \
src/ostree/ot-remote-builtin-show-url.c \
$(NULL)
2014-05-08 09:16:36 -04:00
ostree_bin_shared_cflags = $(AM_CFLAGS) -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree -I$(srcdir)/src/ostree \
$(NULL)
2015-02-12 16:24:50 +01:00
ostree_bin_shared_ldadd = libglnx.la libbsdiff.la libotutil.la libostree-kernel-args.la libostree-1.la
2011-11-30 09:21:14 -05:00
2015-02-17 17:38:36 -05:00
ostree_CFLAGS = $(ostree_bin_shared_cflags) $(OT_INTERNAL_GIO_UNIX_CFLAGS) -I$(srcdir)/libglnx
2012-06-07 17:21:55 -04:00
ostree_LDADD = $(ostree_bin_shared_ldadd) $(OT_INTERNAL_GIO_UNIX_LIBS)
2011-11-30 09:21:14 -05:00
2012-08-14 13:11:45 -04:00
if USE_LIBSOUP
2013-07-09 20:31:55 -04:00
ostree_SOURCES += \
src/ostree/ot-builtin-pull.c \
src/ostree/ot-builtin-trivial-httpd.c \
$(NULL)
2013-05-30 18:32:46 -04:00
ostree_CFLAGS += $(OT_INTERNAL_SOUP_CFLAGS)
ostree_LDADD += $(OT_INTERNAL_SOUP_LIBS)
2011-11-14 15:08:09 -05:00
endif