summaryrefslogtreecommitdiff
path: root/camlibs/docupen
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2022-05-29 00:12:16 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2022-09-01 22:36:00 +0200
commitfa07a92c476ed898fee7052f47884e2199532157 (patch)
tree5c10698f05bb4cbd3434fd8c38800f5238873bf4 /camlibs/docupen
parent22a8459c687d6bddbf74afcfaebddd72d09a1212 (diff)
downloadlibgphoto2-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/docupen')
-rw-r--r--camlibs/docupen/Makefile-files35
1 files changed, 25 insertions, 10 deletions
diff --git a/camlibs/docupen/Makefile-files b/camlibs/docupen/Makefile-files
index 6c35aaa26..25a47fa0c 100644
--- a/camlibs/docupen/Makefile-files
+++ b/camlibs/docupen/Makefile-files
@@ -1,14 +1,29 @@
-# -*- Makefile -*-
+# -*- Makefile-automake -*-
-EXTRA_DIST += docupen/ChangeLog
+EXTRA_DIST += %reldir%/ChangeLog
-#EXTRA_DIST += docupen/README.docupen
-#camlibdoc_DATA += docupen/README.docupen
+#EXTRA_DIST += docupen/README.docupen
+#camlibdoc_DATA += docupen/README.docupen
-EXTRA_LTLIBRARIES += docupen.la
-docupen_la_SOURCES = docupen/docupen.c docupen/cache.c docupen/huffman.c docupen/image.c docupen/calibration.c docupen/docupen.h docupen/huffman.h
-docupen_la_CFLAGS = $(AM_CFLAGS) $(NO_UNUSED_CFLAGS) $(CFLAGS) @LIBGD_CFLAGS@
-docupen_la_LDFLAGS = $(camlib_ldflags)
-docupen_la_DEPENDENCIES = $(camlib_dependencies)
-docupen_la_LIBADD = $(camlib_libadd) @LIBGD_LIBS@
+EXTRA_LTLIBRARIES += docupen.la
+
+docupen_la_SOURCES =
+docupen_la_SOURCES += %reldir%/cache.c
+docupen_la_SOURCES += %reldir%/calibration.c
+docupen_la_SOURCES += %reldir%/docupen.c
+docupen_la_SOURCES += %reldir%/docupen.h
+docupen_la_SOURCES += %reldir%/huffman.c
+docupen_la_SOURCES += %reldir%/huffman.h
+docupen_la_SOURCES += %reldir%/image.c
+
+docupen_la_CFLAGS = $(camlib_cflags)
+docupen_la_CPPFLAGS = $(camlib_cppflags)
+docupen_la_DEPENDENCIES = $(camlib_dependencies)
+docupen_la_LDFLAGS = $(camlib_ldflags)
+docupen_la_LIBADD = $(camlib_libadd)
+
+docupen_la_CFLAGS += $(NO_UNUSED_CFLAGS)
+
+docupen_la_CFLAGS += @LIBGD_CFLAGS@
+docupen_la_LIBADD += @LIBGD_LIBS@