Skip to content
Snippets Groups Projects
Commit 263ad9cc authored by Simon McVittie's avatar Simon McVittie
Browse files

init-project: Split out the part that is per-library

parent 471622b6
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -120,7 +120,8 @@ dist_pkgdata_DATA = data/capsule-shim.mk \
data/shim-.gitignore \
data/shim-Makefile.am \
data/shim-README.in \
data/shim-configure.ac.in
data/shim-configure.ac.in \
data/shim-target-Makefile.am
BUILT_SOURCES = $(top_srcdir)/.version
......
......@@ -191,9 +191,6 @@ echo Initialising configure.ac;
sed \
-e "1,/^\$/d" \
-e "s,@TARGET@,$escaped_target," \
-e "s,@AMTARGET@,$automake_target," \
-e "s,@LIB@,$escaped_lib," \
-e "s,@RUNTIME_TREE@,$escaped_runtime_tree," \
-e "s,@SEARCH_TREE@,$escaped_search_tree," \
-e "s,@PACKAGE@,${lcbase}-proxy," \
......@@ -203,6 +200,15 @@ sed \
echo Initialising Makefile.am;
sed \
-e "1,/^\$/d" \
-e "s,@RUNTIME_TREE@,$escaped_runtime_tree," \
-e "s,@SEARCH_TREE@,$escaped_search_tree," \
-e "s,@PACKAGE@,${lcbase}-proxy," \
-e "s,@VER@,$ver," \
< "$CAPSULE_MKINC/shim-Makefile.am" \
> Makefile.am;
sed \
-e "1,/^\$/d" \
-e "s,@TARGET@,$escaped_target," \
......@@ -213,8 +219,8 @@ sed \
-e "s,@SEARCH_TREE@,$escaped_search_tree," \
-e "s,@PACKAGE@,${lcbase}-proxy," \
-e "s,@VER@,$ver," \
< "$CAPSULE_MKINC/shim-Makefile.am" \
> Makefile.am;
< "$CAPSULE_MKINC/shim-target-Makefile.am" \
>> Makefile.am;
cp "$CAPSULE_MKINC/shim-.gitignore" .gitignore
......
......@@ -6,20 +6,12 @@ AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = -std=c99 -D_GNU_SOURCE -Wall -Werror
AM_CFLAGS += $(CAPSULE_CFLAGS)
CAPSULE_SONAMES := @TARGET@
CAPSULE_VERSION_@AMTARGET@ := @VER@
AM_CAPSULE_MKSTUBLIB_FLAGS :=
lib_LTLIBRARIES = lib@LIB@.la
nodist_lib@AMLIB@_la_SOURCES = shim/@TARGET@.c
lib@AMLIB@_la_LDFLAGS = $(shim_ldflags_@AMTARGET@)
lib@AMLIB@_la_LIBADD = $(CAPSULE_LIBS)
CLEANFILES = $(nodist_lib@AMLIB@_la_SOURCES) \
$(nodist_lib@AMLIB@_la_SOURCES:.c=.map)
BUILT_SOURCES = $(nodist_lib@AMLIB@_la_SOURCES)
CAPSULE_SONAMES :=
lib_LTLIBRARIES =
CLEANFILES =
BUILT_SOURCES =
include @CAPSULE_MKINC@/disabled.mk
include @CAPSULE_MKINC@/capsule-shim.mk
# vim:set ft=automake:
# Processed by capsule-init-project. Everything before the first blank
# line is removed during processing; the second blank line is to
# provide some spacing between target libraries.
# -------- @TARGET@ --------
CAPSULE_SONAMES += @TARGET@
CAPSULE_VERSION_@AMTARGET@ := @VER@
lib_LTLIBRARIES += lib@LIB@.la
nodist_lib@AMLIB@_la_SOURCES = shim/@TARGET@.c
lib@AMLIB@_la_LDFLAGS = $(shim_ldflags_@AMTARGET@)
lib@AMLIB@_la_LIBADD = $(CAPSULE_LIBS)
CLEANFILES += $(nodist_lib@AMLIB@_la_SOURCES) \
$(nodist_lib@AMLIB@_la_SOURCES:.c=.map)
BUILT_SOURCES += $(nodist_lib@AMLIB@_la_SOURCES)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment