diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2022-05-29 00:12:16 +0200 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2022-09-01 22:36:00 +0200 |
commit | fa07a92c476ed898fee7052f47884e2199532157 (patch) | |
tree | 5c10698f05bb4cbd3434fd8c38800f5238873bf4 /camlibs/template | |
parent | 22a8459c687d6bddbf74afcfaebddd72d09a1212 (diff) | |
download | libgphoto2-fa07a92c476ed898fee7052f47884e2199532157.tar.gz |
camlib build var cleanup
Consistently use the same notation and formatting for all
camlib Makefile-files, which uses
* common $(camlib_cflags)
* common $(camlib_cppflags)
* common $(camlib_dependencies)
* common $(camlib_ldflags)
* common $(camlib_libadd)
and then groups additional related definitions together,
making it obvious when e.g. bar_la_LIBADD adds FOO_LIBS
but bar_la_CPPFLAGS forgot to add FOO_CFLAGS.
Diffstat (limited to 'camlibs/template')
-rw-r--r-- | camlibs/template/Makefile-files | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/camlibs/template/Makefile-files b/camlibs/template/Makefile-files index 1e7796827..50932bc67 100644 --- a/camlibs/template/Makefile-files +++ b/camlibs/template/Makefile-files @@ -1,4 +1,4 @@ -# -*- Makefile -*- +# -*- Makefile-automake -*- # If you use this as template for a real camlib (say 'foobar.la'), # make sure to change the "noinst_" at the beginning of the following @@ -16,15 +16,19 @@ # Also, do not forget to add any *.c source files containing # translated strings to POTFILES.in. -EXTRA_DIST += template/ChangeLog +EXTRA_DIST += %reldir%/ChangeLog -EXTRA_DIST += template/README.template -noinst_DATA += template/README.template +EXTRA_DIST += %reldir%/README.template +noinst_DATA += %reldir%/README.template -noinst_LTLIBRARIES += template.la +noinst_LTLIBRARIES += template.la -template_la_SOURCES = template/template.c -template_la_CFLAGS = $(AM_CFLAGS) $(NO_UNUSED_CFLAGS) $(CFLAGS) -template_la_LDFLAGS = $(camlib_ldflags) -template_la_DEPENDENCIES = $(camlib_dependencies) -template_la_LIBADD = $(camlib_libadd) +template_la_SOURCES = %reldir%/template.c + +template_la_CFLAGS = $(camlib_cflags) +template_la_CPPFLAGS = $(camlib_cppflags) +template_la_DEPENDENCIES = $(camlib_dependencies) +template_la_LDFLAGS = $(camlib_ldflags) +template_la_LIBADD = $(camlib_libadd) + +template_la_CFLAGS += $(NO_UNUSED_CFLAGS) |