mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-11 09:18:20 +03:00
ced22f6c9b
Working on the libcurl backend, I hit the issue that the trivial-httpd program depends on libsoup. I briefly considered having two versions, but libcurl is client only, and moreover trivial-httpd is no longer trivial - it has various features which are used by the test suite extensively. Hence, what we'll do is build it as a separate binary which links to libsoup, and use it during the tests. We *also* currently still provide `ostree trivial-httpd` since some things use it like `rpm-ostree-toolbox` and the Cockpit tests. After those are ported to use some other webserver, I plan to add a build-time option to drop it. Closes: #636 Approved by: jlebon
130 lines
4.4 KiB
Plaintext
130 lines
4.4 KiB
Plaintext
# Makefile for C source code
|
|
#
|
|
# Copyright (C) 2011 Colin Walters <walters@verbum.org>
|
|
#
|
|
# 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.
|
|
#
|
|
# This library 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
|
|
# Lesser General Public License for more details.
|
|
#
|
|
# 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.
|
|
|
|
bin_PROGRAMS += ostree
|
|
|
|
ostree_SOURCES = src/ostree/main.c \
|
|
src/ostree/ot-builtin-admin.c \
|
|
src/ostree/ot-builtins.h \
|
|
src/ostree/ot-builtin-cat.c \
|
|
src/ostree/ot-builtin-config.c \
|
|
src/ostree/ot-builtin-checkout.c \
|
|
src/ostree/ot-builtin-checksum.c \
|
|
src/ostree/ot-builtin-commit.c \
|
|
src/ostree/ot-builtin-diff.c \
|
|
src/ostree/ot-builtin-export.c \
|
|
src/ostree/ot-builtin-fsck.c \
|
|
src/ostree/ot-builtin-gpg-sign.c \
|
|
src/ostree/ot-builtin-init.c \
|
|
src/ostree/ot-builtin-pull-local.c \
|
|
src/ostree/ot-builtin-log.c \
|
|
src/ostree/ot-builtin-ls.c \
|
|
src/ostree/ot-builtin-prune.c \
|
|
src/ostree/ot-builtin-refs.c \
|
|
src/ostree/ot-builtin-remote.c \
|
|
src/ostree/ot-builtin-reset.c \
|
|
src/ostree/ot-builtin-rev-parse.c \
|
|
src/ostree/ot-builtin-summary.c \
|
|
src/ostree/ot-builtin-show.c \
|
|
src/ostree/ot-builtin-static-delta.c \
|
|
src/ostree/ot-main.h \
|
|
src/ostree/ot-main.c \
|
|
src/ostree/ot-dump.h \
|
|
src/ostree/ot-dump.c \
|
|
src/ostree/ot-editor.c \
|
|
src/ostree/ot-editor.h \
|
|
src/ostree/parse-datetime.h \
|
|
src/ostree/parse-datetime.c \
|
|
$(NULL)
|
|
|
|
# Admin subcommand
|
|
ostree_SOURCES += \
|
|
src/ostree/ot-admin-builtin-init-fs.c \
|
|
src/ostree/ot-admin-builtin-diff.c \
|
|
src/ostree/ot-admin-builtin-deploy.c \
|
|
src/ostree/ot-admin-builtin-undeploy.c \
|
|
src/ostree/ot-admin-builtin-instutil.c \
|
|
src/ostree/ot-admin-builtin-cleanup.c \
|
|
src/ostree/ot-admin-builtin-os-init.c \
|
|
src/ostree/ot-admin-builtin-set-origin.c \
|
|
src/ostree/ot-admin-builtin-status.c \
|
|
src/ostree/ot-admin-builtin-switch.c \
|
|
src/ostree/ot-admin-builtin-upgrade.c \
|
|
src/ostree/ot-admin-builtin-unlock.c \
|
|
src/ostree/ot-admin-builtins.h \
|
|
src/ostree/ot-admin-instutil-builtin-selinux-ensure-labeled.c \
|
|
src/ostree/ot-admin-instutil-builtin-set-kargs.c \
|
|
src/ostree/ot-admin-instutil-builtin-grub2-generate.c \
|
|
src/ostree/ot-admin-instutil-builtins.h \
|
|
src/ostree/ot-admin-functions.h \
|
|
src/ostree/ot-admin-functions.c \
|
|
$(NULL)
|
|
|
|
# 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-gpg-import.c \
|
|
src/ostree/ot-remote-builtin-list.c \
|
|
src/ostree/ot-remote-builtin-show-url.c \
|
|
src/ostree/ot-remote-builtin-refs.c \
|
|
src/ostree/ot-remote-builtin-summary.c \
|
|
$(NULL)
|
|
|
|
if USE_LIBSOUP
|
|
ostree_SOURCES += \
|
|
src/ostree/ot-remote-builtin-add-cookie.c \
|
|
src/ostree/ot-remote-builtin-delete-cookie.c \
|
|
src/ostree/ot-remote-builtin-list-cookies.c \
|
|
$(NULL)
|
|
endif
|
|
|
|
src/ostree/parse-datetime.c: src/ostree/parse-datetime.y Makefile
|
|
$(AM_V_GEN) $(YACC) $< -o $@
|
|
|
|
EXTRA_DIST += src/ostree/parse-datetime.y
|
|
CLEANFILES += src/ostree/parse-datetime.c
|
|
|
|
ostree_bin_shared_cflags = $(AM_CFLAGS) -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree \
|
|
-I$(srcdir)/src/ostree -I$(srcdir)/libglnx $(OT_INTERNAL_GIO_UNIX_CFLAGS) \
|
|
-DPKGLIBEXECDIR=\"$(pkglibexecdir)\"
|
|
ostree_bin_shared_ldadd = $(AM_LDFLAGS) libglnx.la libotutil.la libostree-1.la \
|
|
$(OT_INTERNAL_GIO_UNIX_LIBS)
|
|
|
|
ostree_CFLAGS = $(ostree_bin_shared_cflags)
|
|
ostree_LDADD = $(ostree_bin_shared_ldadd) libbsdiff.la libostree-kernel-args.la $(LIBSYSTEMD_LIBS)
|
|
|
|
|
|
if USE_LIBSOUP
|
|
ostree_SOURCES += src/ostree/ot-builtin-pull.c src/ostree/ot-builtin-trivial-httpd.c
|
|
ostree_CFLAGS += $(OT_INTERNAL_SOUP_CFLAGS)
|
|
ostree_LDADD += $(OT_INTERNAL_SOUP_LIBS)
|
|
|
|
pkglibexec_PROGRAMS += ostree-trivial-httpd
|
|
ostree_trivial_httpd_SOURCES = src/ostree/ostree-trivial-httpd.c
|
|
ostree_trivial_httpd_CFLAGS = $(ostree_bin_shared_cflags) $(OT_INTERNAL_SOUP_CFLAGS)
|
|
ostree_trivial_httpd_LDADD = $(ostree_bin_shared_ldadd) $(OT_INTERNAL_SOUP_LIBS)
|
|
endif
|
|
|
|
if USE_LIBARCHIVE
|
|
ostree_CFLAGS += $(OT_DEP_LIBARCHIVE_CFLAGS)
|
|
ostree_LDADD += $(OT_DEP_LIBARCHIVE_LIBS)
|
|
endif
|