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 \
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 \
2011-11-15 00:39:38 +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 \
src/ostree/ot-builtin-rev-parse.c \
src/ostree/ot-builtin-show.c \
2012-05-15 04:46:41 +04:00
src/ostree/ot-builtin-write-refs.c \
2011-11-30 18:21:14 +04:00
src/ostree/ot-main.h \
src/ostree/ot-main.c \
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 \
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 \
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 \
2013-07-07 20:42:02 +04:00
src/ostree/ot-admin-cleanup.c \
src/ostree/ot-admin-util.c \
2012-09-09 02:46:50 +04:00
src/ostree/ot-admin-functions.h \
src/ostree/ot-admin-functions.c \
2013-06-29 19:45:53 +04:00
src/ostree/ot-admin-deploy.h \
src/ostree/ot-admin-deploy.c \
src/ostree/ot-bootloader.h \
src/ostree/ot-bootloader.c \
src/ostree/ot-bootloader-syslinux.h \
src/ostree/ot-bootloader-syslinux.c \
src/ostree/ot-config-parser.h \
src/ostree/ot-config-parser.c \
src/ostree/ot-deployment.h \
src/ostree/ot-deployment.c \
src/ostree/ot-ordered-hash.h \
src/ostree/ot-ordered-hash.c \
2012-09-09 02:46:50 +04:00
$(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\"
2011-11-30 18:21:14 +04:00
ostree_bin_shared_ldadd = libotutil.la libostree.la
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
2011-12-24 03:46:19 +04:00
MANPAGES += doc/ostree.1