From fa07a92c476ed898fee7052f47884e2199532157 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Sun, 29 May 2022 00:12:16 +0200 Subject: 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. --- camlibs/sx330z/Makefile-files | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'camlibs/sx330z') diff --git a/camlibs/sx330z/Makefile-files b/camlibs/sx330z/Makefile-files index 462ba0ec5..7ed3c2a1a 100644 --- a/camlibs/sx330z/Makefile-files +++ b/camlibs/sx330z/Makefile-files @@ -1,9 +1,17 @@ -# -*- Makefile -*- +# -*- Makefile-automake -*- -EXTRA_LTLIBRARIES += sx330z.la -EXTRA_DIST += sx330z/ChangeLog +EXTRA_DIST += %reldir%/ChangeLog -sx330z_la_SOURCES = sx330z/library.c sx330z/sx330z.c sx330z/sx330z.h -sx330z_la_LDFLAGS = $(camlib_ldflags) -sx330z_la_DEPENDENCIES = $(camlib_dependencies) -sx330z_la_LIBADD = $(camlib_libadd) + +EXTRA_LTLIBRARIES += sx330z.la + +sx330z_la_SOURCES = +sx330z_la_SOURCES += %reldir%/library.c +sx330z_la_SOURCES += %reldir%/sx330z.c +sx330z_la_SOURCES += %reldir%/sx330z.h + +sx330z_la_CFLAGS = $(camlib_cflags) +sx330z_la_CPPFLAGS = $(camlib_cppflags) +sx330z_la_DEPENDENCIES = $(camlib_dependencies) +sx330z_la_LDFLAGS = $(camlib_ldflags) +sx330z_la_LIBADD = $(camlib_libadd) -- cgit v1.2.1