2011-11-02 23:45:32 +04:00
# Makefile for C source code
#
# Copyright (C) 2011 Colin Walters <walters@verbum.org>
#
2011-11-10 22:17:04 +04: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 23:45:32 +04:00
#
2011-11-10 22:17:04 +04:00
# This library is distributed in the hope that it will be useful,
2011-11-02 23:45:32 +04:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2011-11-10 22:17:04 +04:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
2011-11-02 23:45:32 +04:00
#
2011-11-10 22:17:04 +04: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 23:45:32 +04:00
bin_PROGRAMS += ostree
2011-11-15 00:39:38 +04:00
ostree_SOURCES = src/ostree/main.c \
2013-10-24 17:10:34 +04:00
src/ostree/ot-builtins-common.h \
src/ostree/ot-builtins-common.c \
2012-09-09 02:46:50 +04:00
src/ostree/ot-builtin-admin.c \
2012-12-20 02:52:46 +04:00
src/ostree/ot-builtins.h \
2012-03-05 20:32:48 +04:00
src/ostree/ot-builtin-cat.c \
2012-04-17 05:21:50 +04:00
src/ostree/ot-builtin-config.c \
2011-11-15 00:39:38 +04:00
src/ostree/ot-builtin-checkout.c \
2011-11-18 16:29:13 +04:00
src/ostree/ot-builtin-checksum.c \
2011-11-15 00:39:38 +04:00
src/ostree/ot-builtin-commit.c \
src/ostree/ot-builtin-diff.c \
src/ostree/ot-builtin-fsck.c \
src/ostree/ot-builtin-init.c \
2012-05-02 01:43:26 +04:00
src/ostree/ot-builtin-pull-local.c \
2013-08-14 13:47:30 +04:00
src/ostree/ot-builtin-log.c \
2011-11-28 05:10:48 +04:00
src/ostree/ot-builtin-ls.c \
2012-02-24 19:23:35 +04:00
src/ostree/ot-builtin-prune.c \
2013-06-29 22:51:08 +04:00
src/ostree/ot-builtin-refs.c \
2011-11-15 00:39:38 +04:00
src/ostree/ot-builtin-remote.c \
2013-08-14 14:42:13 +04:00
src/ostree/ot-builtin-reset.c \
2011-11-15 00:39:38 +04:00
src/ostree/ot-builtin-rev-parse.c \
src/ostree/ot-builtin-show.c \
2013-08-15 17:17:37 +04:00
src/ostree/ot-builtin-static-delta.c \
2011-11-30 18:21:14 +04:00
src/ostree/ot-main.h \
src/ostree/ot-main.c \
2013-08-14 13:25:32 +04:00
src/ostree/ot-dump.h \
src/ostree/ot-dump.c \
2013-08-29 19:23:20 +04:00
src/ostree/ot-editor.c \
src/ostree/ot-editor.h \
2011-11-02 23:45:32 +04:00
$(NULL)
2011-11-15 00:08:09 +04:00
2012-09-09 02:46:50 +04:00
# Admin subcommand
ostree_SOURCES += \
2012-12-10 02:01:51 +04:00
src/ostree/ot-admin-builtin-init-fs.c \
2012-09-09 02:46:50 +04:00
src/ostree/ot-admin-builtin-diff.c \
src/ostree/ot-admin-builtin-deploy.c \
2013-07-23 17:19:24 +04:00
src/ostree/ot-admin-builtin-undeploy.c \
2014-03-17 20:28:36 +04:00
src/ostree/ot-admin-builtin-instutil.c \
2013-07-16 00:13:12 +04:00
src/ostree/ot-admin-builtin-cleanup.c \
2012-12-20 02:52:46 +04:00
src/ostree/ot-admin-builtin-os-init.c \
2013-06-29 19:45:53 +04:00
src/ostree/ot-admin-builtin-status.c \
2014-01-19 02:42:24 +04:00
src/ostree/ot-admin-builtin-switch.c \
2012-12-20 02:52:46 +04:00
src/ostree/ot-admin-builtin-upgrade.c \
2012-09-26 03:13:05 +04:00
src/ostree/ot-admin-builtins.h \
2014-03-17 20:28:36 +04:00
src/ostree/ot-admin-instutil-builtin-selinux-ensure-labeled.c \
2014-03-18 03:24:56 +04:00
src/ostree/ot-admin-instutil-builtin-set-kargs.c \
2014-03-17 20:28:36 +04:00
src/ostree/ot-admin-instutil-builtins.h \
2012-09-09 02:46:50 +04:00
src/ostree/ot-admin-functions.h \
src/ostree/ot-admin-functions.c \
$(NULL)
2012-07-15 19:51:57 +04:00
ostree_bin_shared_cflags = $(AM_CFLAGS) -I$(srcdir)/src/libgsystem -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree -I$(srcdir)/src/ostree -DLOCALEDIR=\"$(datadir)/locale\"
2014-01-16 22:04:00 +04:00
ostree_bin_shared_ldadd = libotutil.la libostree-kernel-args.la libostree-1.la
2011-11-30 18:21:14 +04:00
2012-06-08 01:21:55 +04:00
ostree_CFLAGS = $(ostree_bin_shared_cflags) $(OT_INTERNAL_GIO_UNIX_CFLAGS)
ostree_LDADD = $(ostree_bin_shared_ldadd) $(OT_INTERNAL_GIO_UNIX_LIBS)
2011-11-30 18:21:14 +04:00
2012-08-14 21:11:45 +04:00
if USE_LIBSOUP
2013-07-10 04:31:55 +04:00
ostree_SOURCES += \
src/ostree/ot-builtin-pull.c \
src/ostree/ot-builtin-trivial-httpd.c \
$(NULL)
2013-05-31 02:32:46 +04:00
ostree_CFLAGS += $(OT_INTERNAL_SOUP_CFLAGS)
ostree_LDADD += $(OT_INTERNAL_SOUP_LIBS)
2011-11-15 00:08:09 +04:00
endif