Browse Source

Build all common objects into a library.

Use an intermediate build-time library to regroup all the object files
shared between gfsec-use and gfsec-split.
master
Damien Goutte-Gattat 3 months ago
parent
commit
b4608a16f1
  1. 1
      .gitignore
  2. 24
      src/Makefile.am

1
.gitignore

@ -16,6 +16,7 @@ stamp-*
# Built files
src/*.o
src/.deps
src/libgfsec.a
src/gfsec-use
src/gfsec-split
src/gfsec-split-gpg

24
src/Makefile.am

@ -1,21 +1,23 @@
bin_PROGRAMS = gfsec-use gfsec-split
common_sources = util.c util.h secret.c secret.h \
secretcfg.c secretcfg.h gfsec-errors.h \
schemes.h scheme-module.c scheme-module.h \
scheme-libmtp.c scheme-libmtp.h \
scheme-gio.c scheme-gio.h \
scheme-file.c scheme-file.h \
scheme-libcurl.c scheme-libcurl.h \
support.c support.h
noinst_LIBRARIES = libgfsec.a
gfsec_use_SOURCES = gfsec-use.c $(common_sources)
libgfsec_a_SOURCES = util.c util.h secret.c secret.h \
secretcfg.c secretcfg.h gfsec-errors.h \
schemes.h scheme-module.c scheme-module.h \
scheme-libmtp.c scheme-libmtp.h \
scheme-gio.c scheme-gio.h \
scheme-file.c scheme-file.h \
scheme-libcurl.c scheme-libcurl.h \
support.c support.h
gfsec_split_SOURCES = gfsec-split.c $(common_sources)
gfsec_use_SOURCES = gfsec-use.c
gfsec_split_SOURCES = gfsec-split.c
AM_CPPFLAGS = -I$(top_srcdir)/lib
AM_LDFLAGS = -L$(top_builddir)/lib
LDADD = -lgfsecret
LDADD = libgfsec.a -lgfsecret
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@

Loading…
Cancel
Save